Commit 8f9b88dd by BellCodeEditor

save project

parent dec0bfb5
Showing with 8 additions and 2 deletions
......@@ -13,5 +13,11 @@ def new_input():
total.append(money)
print("_"*30)
return total
def sum(money):
s=0
for i in money:
s+=i
return s
result=new_input()
print(result)
\ No newline at end of file
pay=sum(result)
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