排序
x = [3,4,0,2,1]
y = sorted(x)
print y
# output : 0 1 2 3 4
print x
# output : 3 4 0 2 1
x.sort()
print x
# output : 0 1 2 3 4
x.reverse()
print x
# output : 4 3 2 1 0
排序
x = [3,4,0,2,1]
y = sorted(x)
print y
# output : 0 1 2 3 4
print x
# output : 3 4 0 2 1
x.sort()
print x
# output : 0 1 2 3 4
x.reverse()
print x
# output : 4 3 2 1 0