Commit ea1bc746 by BellCodeEditor

save project

parent e2daa6fa
Showing with 10 additions and 2 deletions
...@@ -14,6 +14,13 @@ def new_input(): ...@@ -14,6 +14,13 @@ def new_input():
finally: finally:
print("_"*30) print("_"*30)
return total return total
result=new_input() def sum(money):
print(result) count=0
for i in count:
count+=1
return count
price=new_input()
pay=sum(result)
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