diff --git a/pythonProject/内置函数/sort.py b/pythonProject/内置函数/sort.py new file mode 100644 index 0000000..6641e49 --- /dev/null +++ b/pythonProject/内置函数/sort.py @@ -0,0 +1,4 @@ +a= [11,9,8,4,5,6,7,8,1,2] +a.sort(reverse=True) +print(a) +# 仅支持对list排序,会修改原list \ No newline at end of file