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

前端 未结 5 2324
鱼传尺愫
鱼传尺愫 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条回答
  •  [愿得一人]
    2020-12-06 02:01

    Arbitrariness is central when designing programs, each of these freedoms that you reserve is like a joker card that you can use when you implement, develop, or rewrite your program. The more of these free-cards you collect, the more efficiency can you deliver from your code (probably), since you have more freedom to change it.

    It is not random, it's only freedom. If it's a better set that way, the order can be forwards on Wednesdays and "backwards" on Fridays.

提交回复
热议问题