Commit ac8fada6 by BellCodeEditor

save project

parent c11abe5c
Showing with 7 additions and 5 deletions
......@@ -16,7 +16,9 @@ def new_inport():
#累加价格
def sum(money):
count=0
for i in money
result=new_inport()
print(result)
\ No newline at end of file
for i in money:
count=count+i
return count
price=new_inport()
pay=sum(price)
print("您一共消费:",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