Commit 86fa8580 by BellCodeEditor

save project

parent 8f264af8
Showing with 8 additions and 12 deletions
......@@ -2,15 +2,12 @@ def new_input()
total = []
while True:
unit= input("请输入:")
if unit== 'q':
break
try:
if unit== 'q':
break
else:
total.append(unit)
except:
print("输入整数")
else:
total.append(unit)
print(total)
try:
new_input()
except:
print("要输入整数奥")
else:
print(total)
print("程序结束")
\ No newline at end of file
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