Commit 15ab7ef5 by BellCodeEditor

save project

parent 7e732667
Showing with 3 additions and 9 deletions
......@@ -11,14 +11,7 @@ def new_input():
print("请输入一个数字")
else:
dd.append(unit)
finally:
print("=========================================")
print("you is SB/"*9)
return dd
def sum(money):
count = 0
for i in money:
count = count + i
return count
result = new_input()
pay = sum(price)
print("您一共消费了"+str(pay)+"元!")
print(result)
\ 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