Commit cf552469 by BellCodeEditor

save project

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