📜  python代码示例中的hashset

📅  最后修改于: 2022-03-11 14:45:53.050000             🧑  作者: Mango

代码示例1
myNewSet = set()

myNewSet.add("what have you done")
myNewSet.add("to earn your place")
myNewSet.add("in this crowded world?")


"what have you done" in myNewSet        # ->    true
myNewSet.remove("to earn your place")
# ->     myNewSet = {"what have you done", "in this crowded world?"}