摘要:
集合: 1.不同元素组成 2.无序 3.集合中的元素必须是不可变类型 s = {1, 2, 3 } #定义集合 s = set('hello') print(s) s.pop() #指定删除 s.remove("") s.remove("sss") #删除元素不存在会报错 s.discard('sb 阅读全文
posted @ 2018-11-04 19:40 郑幸福 阅读(203) 评论(0) 推荐(0)
posted @ 2018-11-04 19:40 郑幸福 阅读(203) 评论(0) 推荐(0)