Commit 678b97c7 by BellCodeEditor

save project

parent d72144a5
Showing with 6 additions and 1 deletions
...@@ -4,7 +4,12 @@ while True: ...@@ -4,7 +4,12 @@ while True:
if a == 'q': if a == 'q':
break break
else: else:
try:
a == int(a)
except:
print("请输入数字")
else:
total.append(a)
print(total) print(total)
......
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