Commit e91c77bb by BellCodeEditor

save project

parent 19612661
Showing with 8 additions and 3 deletions
def bgylabshsgsgsgsgsgsgsfg(): def bg():
a=[] a=[]
while True: while True:
b=input() b=input()
if b=="q": if b=="q":
break break
else: else:
try:
b=int(b)
except:
print("请输入数字")
else:
a.append(b) a.append(b)
print(a) print(a)
bgylabshsgsgsgsgsgsgsfg() bg()
\ No newline at end of file \ 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