摘要: 列表,字典,元组,集合的总结 阅读全文
posted @ 2022-01-21 16:36 淦的小陈 阅读(97) 评论(0) 推荐(0)
摘要: 集合的定义 #集合的命名 s = {1,2,3,4} print(s) 也可以使用set的方法定义集合。 #使用set方法命名数组 s1 = set(range(5)) print(s1,type(s1)) s2 = set("python") print(s2,type(s2)) 集合的相关操作 阅读全文
posted @ 2022-01-21 16:27 淦的小陈 阅读(85) 评论(1) 推荐(1)