Understanding set order

前端 未结 0 606
庸人自扰
庸人自扰 2020-11-27 19:47

I know that set is an unordered collection in Python.

But I do not fully grasp this:

list1 = [8,5,9]
set(list1)
# {5, 8, 9} - it seems to order it


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题