Commit 772b73a4 by BellCodeEditor

save project

parent 6d88eca4
Showing with 31 additions and 0 deletions
def a():
b =0
while True:
c=input("请输入(q退出):")
if c =="q":
break
else:
try:
c=int(c)
b+=c
except:
print("s")
print(b)
a()
\ No newline at end of file
def a():
bb = []
while True:
c=input("请输入(q退出):")
if c =="q":
break
else:
try:
c=int(c)
bb.append(c)
except:
print("s")
return bb
a1=a
print(a1)
\ 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