标签:排序 iterable sort uil 相同 lis style 区别 nbsp
1 a = [1,2,3,5,2,6,8,0] 2 print(a.sort())# None 3 print(a)# [0, 1, 2, 2, 3, 5, 6, 8] 4 a = [1,2,3,5,2,6,8,0] 5 print(sorted(a)) # [0, 1, 2, 2, 3, 5, 6, 8] 6 7 print(a) # [1, 2, 3, 5, 2, 6, 8, 0]
标签:排序 iterable sort uil 相同 lis style 区别 nbsp
原文地址:https://www.cnblogs.com/JerryZao/p/9433026.html