From 317f033060feb8346dc662485d1f015512260f08 Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sat, 20 May 2023 08:58:43 +0800 Subject: [PATCH] auto save --- tesx.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tesx.py diff --git a/tesx.py b/tesx.py new file mode 100644 index 0000000..3c92d9e --- /dev/null +++ b/tesx.py @@ -0,0 +1,13 @@ +# input("请输入一个十位的整数:") +# 输入一个十位的整数 +# 输出这个十位数的个位数 +# 14 +# 30 +# 17 +a=[7,3,5,2,4,6] +b=len(a) +for i in range(0,b-1): + for j in range(0,b-1-i): + if a[j]>a[j+1]: + a[j],a[j+1]=a[j+1],a[j] + print(a) \ No newline at end of file -- libgit2 0.25.0