Commit d51777a1 by BellCodeEditor

save project

parent aaf6cd49
Showing with 14 additions and 14 deletions
if unit== 'q': # total = []
break # while True:
else: # unit= input("请输入:")
try: # if unit== 'q':
unit = int(unit) # break
except: # else:
print("请重新输入一个数字") # try:
else: # unit = int(unit)
total.append(unit) # except:
print("-"*30) # print("请重新输入一个数字")
print(total)total = [] # else:
while True: # total.append(unit)
unit= input("请输入:") # print("-"*30)
# print(total)
def new_input(): def new_input():
total = [] total = []
while True: while True:
......
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