Home > other >  Why python set the pure digital list can be arranged
Why python set the pure digital list can be arranged

Time:12-17

` ` ` python

Import the random

For I in range (10) :
Num1=[random randint (1100) for the x in the range (100)]
Print (" disorderly, "num1)
A=set (num1)
Print (" set ", a)
Print (" after "list, the list (a))

` ` `

What sort of I don't understand, and 31 sorting within the success rate is very severe,

But sometimes the set of a disorderly order

But the above code sorting the success rate is very high,


Who save me
  • Related