Commit 687da473 by BellCodeEditor

save project

parent 4f75582c
Showing with 5 additions and 1 deletions
...@@ -3,7 +3,11 @@ def a(): ...@@ -3,7 +3,11 @@ def a():
while True: while True:
u=input("输入") u=input("输入")
if u=='q': if u=='q':
break break
try:
b=int(u)
except:
print('输入数字')
else: else:
t.append(u) t.append(u)
a() a()
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