2.19

世梦發表於2024-10-27

import numpy.random as nr
x1 = list(range(9,21))
nr.shuffle(x1)
x2 = sorted(x1)
x3 = sorted(x1, reverse=True)
x4 = sorted(x1, key = lambda item: len(str(item)))
print(x1); print(x2); print(x3); print(x4)