Commit d4a4fc08 by BellCodeEditor

save project

parent 6d577d26
Showing with 16 additions and 9 deletions
a=[]
while True:
a=input("ni hao")
if a=="q":
break
else:
t.append(a)
print(a)
\ No newline at end of file
def new_input():
a=[]
while True:
a=input("ni hao")
if a=="q":
break
else:
try:
a=int(a)
except:
print("请")
else:
t.append(a)
print(a)
new_input()
\ 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