Commit ce10c0c3 by BellCodeEditor

save project

parent 879819aa
Showing with 15 additions and 4 deletions
...@@ -12,7 +12,18 @@ def pop(): ...@@ -12,7 +12,18 @@ def pop():
else: else:
total.append(unit) total.append(unit)
finally: finally:
print("_"*30) print("================================")
return total return total
p1=pop()
print(p1)
\ No newline at end of file
def sum(money):
count=0
for i in money:
count=count+i
return count
price=pop()
pay=sum(price)
print("您一共花了"+str(pay))
\ 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