Commit 471a06bd by BellCodeEditor

save project

parent a6f3fe60
import func import func
def sum(money):
h = 0
for i in money:
h = h + i
return h
print("这位人的总分是")
\ No newline at end of file
...@@ -21,7 +21,8 @@ def sum(money): ...@@ -21,7 +21,8 @@ def sum(money):
for i in money: for i in money:
h = h + i h = h + i
return h return h
result = l()
#print("您一共消费了" + str(pay) + "元!扫码还是现金") price = new_input()
\ No newline at end of file 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