Commit db4c625a by BellCodeEditor

auto save

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