Commit 73822f3e by BellCodeEditor

save project

parent a6652302
......@@ -2,9 +2,15 @@ def new_input():
tota=[]
while True:
a=input("请输入:,q退出")
if a==q:
if a=="q":
break
else:
tota.append(a)
try:
a=int(a)
except:
print("要输入整数啊")
else:
tota.append(a)
print(tota)
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