Commit e91c77bb by BellCodeEditor

save project

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