Commit ae8d6871 by BellCodeEditor

save project

parent 20eeb55f
Showing with 7 additions and 2 deletions
......@@ -14,7 +14,12 @@ def jiage():
finally:
print('-'*30)
return total
new_total=jiage()
print(new_total)
def sum(money):
a=0
for i in money:
a=a+i
return a
zongjia=sum(new_total)
print('一共'+str(zongjia)+'元')
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