Commit a85be29d by BellCodeEditor

save project

parent f8405e5a
Showing with 10 additions and 3 deletions
def new_input():
total = []
while True:
......@@ -14,4 +13,12 @@ def new_input():
total.append(unit)
return total
total = new_input()
print(total)
\ No newline at end of file
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