Commit d7ae9f3c by BellCodeEditor

save project

parent f04fc467
Showing with 7 additions and 1 deletions
...@@ -5,6 +5,11 @@ def caidan(): ...@@ -5,6 +5,11 @@ def caidan():
if a=="q": if a=="q":
break break
else: else:
t.append(a) try:
a=int(a)
except:
print("重新输入!")
else:
t.append(a)
print(t) print(t)
caidan() caidan()
\ 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