源代码
thisset = {"apple", "banana", "cherry"} x = thisset.pop() print(x) #removed item print(thisset) #the set after removal
运行结果