Commit 19b7d258 by BellCodeEditor

save project

parent bebff061
Showing with 9 additions and 4 deletions
...@@ -14,6 +14,11 @@ def now_jf(): ...@@ -14,6 +14,11 @@ def now_jf():
finally: finally:
print("$"*50) print("$"*50)
return total return total
rest=now_jf() def sum(hjf):
print(rest) count=0
now_jf() for i in hjf:
\ No newline at end of file count=count+i
return count
price=now_jf()
pihh=sum(price)
print("您一共消费"+str(pihh)+"元!扫码还是现金?")
\ 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