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
......@@ -13,14 +13,14 @@ def ssssss():
total.append(unit)
finally:
print("-"*30)
return total
return total
def h(money):
def sum(money):
count=0
for i in money:
count=count+i
return count
return count
price = ssssss()
pay = h(price)
pay = sum(price)
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