当我运行我的 python 脚本时,我收到以下警告
DeprecationWarning: the sets module is deprecated
我该如何解决这个问题?
最佳答案
停止使用 sets
模块,或切换到未弃用的旧版 python。
根据pep-004 , sets
自 v2.6 起已弃用,替换为内置 set
and frozenset
types .
关于python - 设置模块不推荐使用的警告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2040616/