摘要: 今日学习内容列表、字典、元组、集合等类型的操作方法。 列表 列表类型今天补充了count、clear、reverse、sort l = [1,2,3,4,5,6,7] #count res = l.count(1) # count的作用是列表中某个元素出现的次数 print(res) #clear 阅读全文
posted @ 2019-07-04 21:46 云上3000 阅读(194) 评论(0) 推荐(0)