Commit a7f3c899 by BellCodeEditor

save project

parent faad18ea
Showing with 8 additions and 4 deletions
def yyy1145141919810(): def yyy1145141919810():
r=0 r=0
while True: while True:
op=input("输入") op=input("输入(p结束)")
if op=="p": if op=="p":
break break
else: else:
...@@ -9,6 +9,10 @@ def yyy1145141919810(): ...@@ -9,6 +9,10 @@ def yyy1145141919810():
op=int(op) op=int(op)
r+=op r+=op
except: except:
break if op=="p":
print(r) break
yyy1145141919810() else:
print("非整数")
return r
asd=yyy1145141919810()
print(asd)
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