Commit 6dedf697 by BellCodeEditor

auto save

parent dc70412a
Showing with 10 additions and 0 deletions
.
\ No newline at end of file
def sum(money):
a=0
for i in money:
a=a+i
return a
price=new_input()
pay=sum(price)
print('你消费了'+str(pay)+'元')
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