Commit e83889a4 by BellCodeEditor

save project

parent 08052fa5
import func
data = func.new_input()
score = func.sum(data)
print("总分是:"+str(score))
\ No newline at end of file
...@@ -16,11 +16,11 @@ def ssssss(): ...@@ -16,11 +16,11 @@ def ssssss():
return total return total
def h(money): def sum(money):
count=0 count=0
for i in money: for i in money:
count=count+i count=count+i
return count return count
price = ssssss() price = ssssss()
pay = h(price) pay = sum(price)
print("您一共消费了"+str(pay)+"元,扫码还是现金?") print("您一共消费了"+str(pay)+"元,扫码还是现金?")
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