Commit 62ff9be0 by BellCodeEditor

save project

parent 3f22fec8
Showing with 10 additions and 2 deletions
def a=[]
def b():
while True:
c=input("请输入") c=input("请输入")
if c=="q": if c=="q":
break break
else: else:
a.append(c) try:
c=int(c)
except:
print("请输入数字")
else:
a.append(c)
print(a) print(a)
b() b()
\ 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