标签:color nbsp als net sorted ber art log string
target: numbers = [‘2‘, ‘4‘, ‘1‘, ‘3‘]
numbers = list(map(int, numbers))
排序:
从小到大排序:
numbers = sorted(numbers, reverse = False)
从大到小排序:
numbers = sorted(numbers, reverse = True)
参考:
https://blog.csdn.net/liao392781/article/details/80592761
标签:color nbsp als net sorted ber art log string
原文地址:https://www.cnblogs.com/sea-stream/p/10463726.html