Commit aaecce32 by BellCodeEditor

save project

parent 4d45c1ee
Showing with 14 additions and 10 deletions
total = [] def new_input():
while True: total = []
try: while True:
unit= input("请输入:") unit= int(input("请输入:"))
except:
print("重输")
else:
if unit== 'q': if unit== 'q':
break break
else: else:
total.append(unit) try:
print(total) unit = innt(unit)
\ No newline at end of file except:
print("重输")
else:
total.append(unit)
return total
prit(new_input())
\ 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