python学习第三天-集合
摘要:
增: add a = {1,2,3} a.add(4) print(a) #{1, 2, 3, 4} 删: discard、remove、pop a = {1,2,3} a.remove(1) print(a) a.discard(1) print(a) a.discard(2) print(a) 阅读全文
posted @ 2020-07-06 22:49 Hello_Thanos 阅读(124) 评论(0) 推荐(0) 编辑