Can Python's set absence of ordering be considered random order?

前端 未结 5 2349
鱼传尺愫
鱼传尺愫 2020-12-06 01:30

I\'d like to know if the absence of element ordering of the Python\'s built-in set structure is \"random enough\". For instance, taking the iterator of a set, c

5条回答
  •  Happy的楠姐
    2020-12-06 02:00

    No, it is not random. It is "arbitrarily ordered", which means that you cannot depend on it being either ordered or random.

提交回复
热议问题