Commit 59af40d7 by BellCodeEditor

save project

parent 17abe562
Showing with 8 additions and 3 deletions
......@@ -4,11 +4,15 @@ def new_input():
while True:
try:
unit= input("请输入:")
if unit== 'q':
break
else:
int(unit)
total.append(unit)
except:
if unit== 'q':
break
print('请输入数字!')
else:
total.append(unit)
new_input()
print(total)
\ 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