Commit 96cce10f by BellCodeEditor

save project

parent 501e4fc7
Showing with 15 additions and 12 deletions
......@@ -11,16 +11,20 @@ def sb():
print("输入一个数字")
else:
total.append(unit)
print("-"*25)
print(total)
sb()
finally:
print("-"*25)
return total
def a(money):
count=0
for i in money:
count=count+i
return count
f=sb()
l=a(f)
print("你一共消费了"+str(l)+"元\n卧槽")
# try:
# age=int(input("?"))
# except:
# print("整数")
# else:
# if age<18:
# print("NO")
# print("结束")
\ 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