Commit c34f4ce0 by BellCodeEditor

save project

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