Commit bb7d9ba5 by BellCodeEditor

save project

parent 8937ac58
Showing with 13 additions and 8 deletions
import
d=func.new_iput()
p=func.sum(d)
print("这位选手的总分为"+str(p)+"分")
\ No newline at end of file
...@@ -13,11 +13,10 @@ def new_input(): ...@@ -13,11 +13,10 @@ def new_input():
return total return total
def sum(money): def sum(money):
c=0 c = 0
for i in range: for i in money:
c=c+1 c = c+i
return c return c
p=new_input p = new_input()
pay=sum(p) pay = sum(p)
print("您一共消费了"+str(z)+"扫码还是现金呢") 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