Commit c8c53345 by BellCodeEditor

save project

parent 9e22716a
...@@ -12,5 +12,12 @@ def now_input(): ...@@ -12,5 +12,12 @@ def now_input():
else: else:
total.append(unit) total.append(unit)
print("_"*30) print("_"*30)
range return total
now_input()
\ No newline at end of file def sum(money):
count = 0
for i in money:
count = count +i
price=now_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