Commit 07080d7b by BellCodeEditor

save project

parent 32d8a4b5
Showing with 7 additions and 1 deletions
......@@ -5,6 +5,11 @@ def a():
if c == "q":
break
else:
b.append(c)
try:
c= int(c)
except:
print("请输入一个整数")
else:
b.append(c)
print(b)
a()
\ 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