摘要: 集合类型set基本使用 1、用途:去重(无法保证顺序) msg = "hello" res = set(msg) print(' ',join(res)) names = ['egon','lxx','lili','egon','egon'] print(list(set(names))) 只能针对 阅读全文
posted @ 2020-12-24 15:05 gwj02 阅读(97) 评论(0) 推荐(0)