Commit f5507224 by BellCodeEditor

save project

parent d740548a
Showing with 9 additions and 0 deletions
...@@ -13,5 +13,13 @@ def new_input(): ...@@ -13,5 +13,13 @@ def new_input():
total.append(unit) total.append(unit)
print("-"*30) print("-"*30)
return total return total
def sum(money):
count=0
for i in money:
count = count+i
return coun
prict=new_input()
pay=sum(price)
print("你一共消费"+str(pay)+"元")
result=new_input() result=new_input()
print(result) print(result)
\ 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