Commit 5f139716 by BellCodeEditor

save project

parent d5329395
Showing with 9 additions and 2 deletions
...@@ -5,6 +5,12 @@ def new_input(): ...@@ -5,6 +5,12 @@ def new_input():
if a=="q": if a=="q":
break break
else: else:
total.append(a) try:
print(total) a=int(a)
except:
print('重新输入')
else:
total.append(a)
print('*'*30)
print(total)
new_input() 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