Commit bba87a05 by BellCodeEditor

save project

parent 4f9da3e1
Showing with 2 additions and 2 deletions
...@@ -5,4 +5,4 @@ for i in range(0,n-1):#i表示排序的轮数 ...@@ -5,4 +5,4 @@ for i in range(0,n-1):#i表示排序的轮数
if alist[j] < alist[j+1]: if alist[j] < alist[j+1]:
alist[j],alist[j+1]=alist[j+1],alist[j] alist[j],alist[j+1]=alist[j+1],alist[j]
print(alist) print(alist)
print("从小到大的顺序为:",alist) print("从大到小的顺序为:",alist)
\ No newline at end of file \ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment