Commit 6ad9adf5 by BellCodeEditor

save project

parent a77e1b8d
Showing with 11 additions and 2 deletions
...@@ -11,6 +11,15 @@ def jiage(): ...@@ -11,6 +11,15 @@ def jiage():
print("输入整数") print("输入整数")
else: else:
total.appendu(unit) total.appendu(unit)
finally:
print("=====================")
return total return total
resuit= jiage() def sum(money):
print(resuit) count=0
for i in money:
count=count+i
return count
print= jiage()
pay=sum(print)
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