Commit 0fae2445 by BellCodeEditor

save project

parent 60a73302
Showing with 6 additions and 1 deletions
......@@ -5,9 +5,14 @@ def new_input():
unit= int(input("请输入:"))
except:
print("sb")
else:
if unit== 'q':
break
else:
try:
unit = int( unit )
except:
print("请输入数字")
else:
total.append(unit)
print(total)
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