Commit 23f4557c by BellCodeEditor

save project

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