From da06d657bc7972f39186fae69c83cf9910486f25 Mon Sep 17 00:00:00 2001 From: "yinjun.chen1" Date: Fri, 9 Oct 2026 10:15:36 +0800 Subject: [PATCH] no message --- pythonProject/内置函数/sort.py | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 pythonProject/内置函数/sort.py 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