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():
return total
def sum(money):
c=0
for i in range:
c=c+1
return c
p=new_input
pay=sum(p)
print("您一共消费了"+str(z)+"扫码还是现金呢")
c = 0
for i in money:
c = c+i
return c
p = new_input()
pay = sum(p)
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