Commit 6d929f4f by BellCodeEditor

save project

parent a6bfeefa
Showing with 10 additions and 3 deletions
...@@ -11,7 +11,13 @@ def hgvtfg(): ...@@ -11,7 +11,13 @@ def hgvtfg():
print('重输') print('重输')
else: else:
total.append(unit) total.append(unit)
return total return total
result=hgvtfg() def sum(money):
print(result) count=0
for i in money:
count=count+i
return count
price=hgvtfg()
pay=sum(price)
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