当一个集合中的全部类型为数值时,pop()将升序输出,这一点不明白,集合不是无序的吗?
translation:
When all the types in a collection are numeric, pop() will output in ascending order.I don't know why, isn't the set unordered?
s = {2,5,3,7,0}
for i in range(5):
print(s.pop())
output: 0 2 3 5 7