标题# 关于python的set()函数的总结 1、排除所有重复值 2、可以用减法删除值(但是在列表中没办法用减法) s=set(1,2,3,4) s=s-{1} print(s) 输出结果为 {2,3,4}