Commit bac50ca8 by BellCodeEditor

save project

parent 3003af75
Showing with 10 additions and 2 deletions
...@@ -12,4 +12,12 @@ def new_input(): ...@@ -12,4 +12,12 @@ def new_input():
else: else:
total.append(writ) total.append(writ)
print("~"*30) print("~"*30)
new_input() return total
\ No newline at end of file def sum(money):
count=0
for i in money:
count=count+1
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