Commit ca20accb by BellCodeEditor

save project

parent ebd5471c
Showing with 8 additions and 0 deletions
......@@ -14,3 +14,10 @@ def new_input():
return total
total = new_input()
print(total)
def sum_price(price_list):
sums = 0
for i in price_list:
sums = sums+i
return sums
cost = sum_price(total)
print("总的价格为",cost)
\ 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