python函数

数组sort函数

spam = ['a', 'z', 'A', 'Z']
spam.sort(key=str.lower)

>>['a', 'A', 'z', 'Z']
原文地址:https://www.cnblogs.com/bingxing/p/8541582.html