python3中把About和Abc用sort排序
假设About和Abc是一个字符串列表,可以使用sort方法对其进行排序:
words = ['About', 'Abc']
words.sort()
print(words)
输出结果为:
['Abc', 'About']
原文地址: https://www.cveoy.top/t/topic/bqh5 著作权归作者所有。请勿转载和采集!
安全问答是一个知识全球问答,包含丰富的问答知识
假设About和Abc是一个字符串列表,可以使用sort方法对其进行排序:
words = ['About', 'Abc']
words.sort()
print(words)
输出结果为:
['Abc', 'About']
原文地址: https://www.cveoy.top/t/topic/bqh5 著作权归作者所有。请勿转载和采集!