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