Commit db4c625a by BellCodeEditor

auto save

parent d958d16c
Showing with 6 additions and 12 deletions
#total = []
def x():
#while True:
try:
int(input("请输入:"))
except:
print("请输入整数")
else:
print()
print("程序结束")
x()
list1 = [12,34,45,6,77,8997,5,12.4556]
for j in range (0,len(list1)-1):
for i in range(j,len(list1)):
if list1[i] > list1[j]:
list1[i],list1[j] = list1[j],list1[i]
print(list1)
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