1. python字母顺序排序
1. (按字母顺序排列)——sort()函数
例:
cars=['bmw','audi','toyota','subaru']
cars.sort()
print(cars)
输出得到
['audi', 'bmw', 'subaru', 'toyota']