Commit 1e54e39a by BellCodeEditor

save project

parent c24c1421
Showing with 6 additions and 2 deletions
...@@ -12,4 +12,8 @@ def count(): ...@@ -12,4 +12,8 @@ def count():
total.append(price) total.append(price)
return total return total
result=count() result=count()
print(result) print(result)
\ No newline at end of file sum_pruice=0
for i in result:
sum_pruice=sum_pruice+i
print('您需要支付:'+str(sum_pruice)+'元')
\ 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