📅  最后修改于: 2022-03-11 14:45:44.745000             🧑  作者: Mango
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)