Commit f2630bd2 by BellCodeEditor

save project

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