Commit 1eeca66b by BellCodeEditor

save project

parent 32664915
Showing with 14 additions and 11 deletions
def result():
x=int(input("x"))
y=int(input("y"))
print("return前")
a=x+y
return(a)
b=x*y
print("return后")
a=result()
print(a)
\ No newline at end of file
def add_sum():
sb=[]
count=0
while True:
s=input("输钱,结束w\n")
if s=="w":
break
else:
sb.insert(0,int(s))
for i in sb:
count=count+i
return(count)
print(str(add_sum()))
\ 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