上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 16 下一页
摘要: 字典(Dictionary) 字典是一个无序、可变和有索引的集合。在 Python 中,字典用花括号编写,拥有键和值。 字典基础 #创建字典 dict thisdict={ "age":"18", "year":'2021', "month":"8" } #访问项目 #您可以通过在方括号内引用其键名 阅读全文
posted @ 2021-08-10 02:17 还有什么值得拥有 阅读(57) 评论(0) 推荐(0) 编辑
摘要: 集合(Set) 集合是无序和无索引的集合。在 Python 中,集合用花括号编写。 基础用法 #创建集合 (集合是无序的,因此您无法确定项目的显示顺序。) thisset={'apple','banana'} print(thisset)#{'banana', 'apple'} #for循环遍历集合 阅读全文
posted @ 2021-08-10 01:44 还有什么值得拥有 阅读(41) 评论(0) 推荐(0) 编辑
摘要: 元组(Tuple) 元组是有序且不可更改的集合。在 Python 中,元组是用圆括号编写的。 元组基础 #创建元组 thistuple=('apple','orange') print(thistuple)#('apple', 'orange') #访问tuple的项目 print(thistupl 阅读全文
posted @ 2021-08-10 01:21 还有什么值得拥有 阅读(49) 评论(0) 推荐(0) 编辑
摘要: Python 集合 Python 编程语言中有四种集合数据类型: 列表(List)是一种有序和可更改的集合。允许重复的成员。 元组(Tuple)是一种有序且不可更改的集合。允许重复的成员。 集合(Set)是一个无序和无索引的集合。没有重复的成员。 词典(Dictionary)是一个无序,可变和有索引 阅读全文
posted @ 2021-08-09 22:47 还有什么值得拥有 阅读(530) 评论(0) 推荐(0) 编辑
摘要: ::-webkit-scrollbar { display:none; width:0; height:0; color:transparent; } 阻止滚动的方法 page-meta 页面属性配置节点,用于指定页面的一些属性、监听页面事件。只能是页面内的第一个节点。可以配合 navigation 阅读全文
posted @ 2021-08-09 15:06 还有什么值得拥有 阅读(180) 评论(0) 推荐(0) 编辑
摘要: #pyhon 中的bool 布尔表示两值之一:True 或 False。 #bool()函数可让您评估任何值,并为您返回 True 或 False。该函数可用于确定对象是否具有某种数据类型: A='' B='hello' C=True D=False E=[] F=[1,2,3]#列表 list G 阅读全文
posted @ 2021-08-08 06:56 还有什么值得拥有 阅读(191) 评论(0) 推荐(0) 编辑
摘要: wx.ml <button class="btn" open-type="share" data-mode="teacher" data-type="1">hello world</button> wx.js 内wx 定义的分享方法 /** * 用户点击右上角分享 */ onShareAppMess 阅读全文
posted @ 2021-08-06 17:12 还有什么值得拥有 阅读(237) 评论(0) 推荐(0) 编辑
摘要: 字符串方法 Python 有一组可以在字符串上使用的内建方法。 注释:所有字符串方法都返回新值。它们不会更改原始字符串。 https://www.w3school.com.cn/python/python_strings.asp 下面列出几个常用的 其他需要在查询 len(str) 返回字符串的长度 阅读全文
posted @ 2021-08-06 16:24 还有什么值得拥有 阅读(1263) 评论(0) 推荐(0) 编辑
摘要: npm config set prefix "H:\nodejs\node_global" npm config set cache "H:\nodejs\node_cache" 阅读全文
posted @ 2021-08-02 14:11 还有什么值得拥有 阅读(360) 评论(0) 推荐(0) 编辑
摘要: wx.showModal({ title:'提示', content:'第一行内容\r\n第二行内容\r\n第三行内容\r\n第四行内容', success:function (res) { if (res.confirm) { console.log('用户点击确定') }else if (res 阅读全文
posted @ 2021-07-28 14:30 还有什么值得拥有 阅读(540) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 16 下一页