Commit 8145853d by BellCodeEditor

save project

parent 21da8501
Showing with 9 additions and 2 deletions
......@@ -12,4 +12,11 @@ def new_input():
else:
a.append(b)
return a
print(new_input())
\ No newline at end of file
def sum(money):
count = 0
for i in money:
count = count + int(i)
return count
price = new_input()
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