2018年3月6日

集合

摘要: _autor_: Administrator #date: 2018/2/26 s = set('hello world')#集合只能通过set方式创建 print(s) s2 = set(['hello world','qw',2]) print(s2) s2.add('hjk') # 添加一个元素 s2.update('qwe') #添加一系列元素 s2.remove(2) #删除指定... 阅读全文

posted @ 2018-03-06 10:22 游乐 阅读(76) 评论(0) 推荐(0) 编辑

导航