Python - can't import Set from sets (“no module named sets”)

前端 未结 3 1172
北海茫月
北海茫月 2021-01-03 19:46

I\'m trying to learn python and I was trying to write something simple. I am developing under Pydev (Eclipse) using OS X 10.8. I installed python 3.2 using the 64bits .dmg i

3条回答
  •  忘掉有多难
    2021-01-03 20:22

    You don't need the sets module anymore. set is a built-in class in Python 3 and can be used without import.

    my_set = set()
    

提交回复
热议问题