Commit 46a41e9b by BellCodeEditor

save project

parent 3bfcff54
import func import func
e=func.new_input() e=func.new_input()
f=func.sum() f=func.sum(e)
print("总价是"+str(f))
\ No newline at end of file
file=open(r"C:\Users\玛酷\Desktop\book.txt","w",encoding="utf-8")
file.write("34567")
file.close()
\ No newline at end of file
...@@ -20,8 +20,4 @@ def sum(money): ...@@ -20,8 +20,4 @@ def sum(money):
count = 0 count = 0
for i in money: for i in money:
count = count + i count = count + i
return count return count
\ No newline at end of file
price = new_input()
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