Commit 2c7acd2e by BellCodeEditor

save project

parent abeaa468
Showing with 10 additions and 2 deletions
...@@ -14,4 +14,12 @@ def 价格(): ...@@ -14,4 +14,12 @@ def 价格():
total.append(unit) total.append(unit)
print('^3^') print('^3^')
return total return total
价格() def sum(money):
\ No newline at end of file count=0
for i in money:
count=count+i
return count
总价=价格()
pay=sum(总价)
print('支付宝收款'+str(pay)+'元!')
\ 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