集合
摘要:
集合使用{}表示,它是无序的, 不能使用索引, 内部不能有重复的元素 例: {1, 2, 4, 45, 5} 支持 len()函数 支持 in 和 not in 运算符 1 in {1, 2 ,4, 6} True 1 not in {1,2,5,6} False 集合使用,例: {1,2,43,5 阅读全文
posted @ 2018-12-31 23:18 lzxanran 阅读(68) 评论(0) 推荐(0)
posted @ 2018-12-31 23:18 lzxanran 阅读(68) 评论(0) 推荐(0)
posted @ 2018-12-31 23:08 lzxanran 阅读(78) 评论(0) 推荐(0)