上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 62 下一页
摘要: python 集合 阅读全文
posted @ 2021-01-18 13:14 Cupid05 阅读(50) 评论(0) 推荐(0) 编辑
摘要: python 字典 阅读全文
posted @ 2021-01-18 13:04 Cupid05 阅读(58) 评论(0) 推荐(0) 编辑
摘要: python 字典 d = {"name":"zhangsan","age":23,"sex":"男"}d["name"] #访问d["age"]=18 #修改del d["sex"] #删除单个del d #删除字典d.clear() #清空字典 元... 阅读全文
posted @ 2021-01-18 13:04 Cupid05 阅读(24) 评论(0) 推荐(0) 编辑
摘要: python 元组 tup = (1, 2, 3, 4, 5, 6, 7 )tup[0] #访问# 元组一旦创建不允许修改,如果非要修改的话,for..in 遍历重新赋值del tup # 单个元素值不允许删除,可删除整个元组tup[1:4] #截取 ... 阅读全文
posted @ 2021-01-18 11:39 Cupid05 阅读(21) 评论(0) 推荐(0) 编辑
摘要: python 元组 阅读全文
posted @ 2021-01-18 11:39 Cupid05 阅读(41) 评论(0) 推荐(0) 编辑
摘要: python列表 阅读全文
posted @ 2021-01-18 11:33 Cupid05 阅读(62) 评论(0) 推荐(0) 编辑
摘要: python列表 list = ['red', 'green', 'blue', 'yellow', 'white', 'black']list[0] #访问list[1] = "pink" #更新del list[3] #删除list[1:3] #... 阅读全文
posted @ 2021-01-18 11:33 Cupid05 阅读(13) 评论(0) 推荐(0) 编辑
摘要: python字符串内建函数 1、capitalize() 将字符串的第一个字母变成大写,其他字母变小写 str = "hello world"print ("str.capitalize() : ", str.capitalize())# str.c... 阅读全文
posted @ 2021-01-17 00:47 Cupid05 阅读(34) 评论(0) 推荐(0) 编辑
摘要: python字符串方法 阅读全文
posted @ 2021-01-17 00:47 Cupid05 阅读(64) 评论(0) 推荐(0) 编辑
摘要: python的基本数据类型 阅读全文
posted @ 2021-01-16 11:00 Cupid05 阅读(77) 评论(0) 推荐(0) 编辑
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 62 下一页