Commit cf552469 by BellCodeEditor

save project

parent 2f7a9742
Showing with 7 additions and 6 deletions
......@@ -4,11 +4,12 @@ def new_input():
while True:
unit= int(input("请输入:"))
if unit== 'q':
break
try:
unit = int(unit)
except:
print("滚")
break
else:
print(total)
try:
unit = int(unit)
except:
print("滚")
else:
total.append(unit)
new_input()
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