diys.py 150 Bytes Edit 1 2 3 4 5 6 7 8 def sum(money): a=0 for i in money: a=a+i return a price=new_input() pay=sum(price) print('你消费了'+str(pay)+'元')