Commit d62a9ee9 by BellCodeEditor

save project

parent 17c8cb24
Showing with 9 additions and 2 deletions
......@@ -11,5 +11,12 @@ def new_input():
print("请重新输入:")
else:
total.append(unit)
print(total)
new_input()
return total
def sum(unit):
count=0
for i in unit:
count=count+1
return count
price=new_input()
pay=sum(price)
print("您一共消费"+str(pay)+"元")
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