📜  python排序整数列表 - Python代码示例

📅  最后修改于: 2022-03-11 14:45:44.745000             🧑  作者: Mango

代码示例2
numbers = [1, 5, -2, 4]
# Sort in ascending order, applied in place
numbers.sort()
# Sort in descending order, applied in place
numbers.sort(descending=True)