Commit e728c6a5 by BellCodeEditor

save project

parent 087d03f1
Showing with 16 additions and 3 deletions
...@@ -14,6 +14,15 @@ def new_input(): ...@@ -14,6 +14,15 @@ def new_input():
finally: finally:
print("_"*30) print("_"*30)
return total return total
def sum(ji):
count=0
for i in ji:
count=count+i
return count
# result=new_input()
# print(result[0])
price=new_input()
pay=sum(price)
print("你一共消费了"+str(pay)+"现金还是扫码")
result=new_input()
print(result[0])
\ No newline at end of file
def sum(money):
count=0
for i in money
count=count+1
return count
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