Commit 13ecbe3d by BellCodeEditor

save project

parent dbc597a1
Showing with 12 additions and 1 deletions
...@@ -13,4 +13,14 @@ def SB(): ...@@ -13,4 +13,14 @@ def SB():
total.append(unit) total.append(unit)
print("_"*30) print("_"*30)
print(total) print(total)
SB()
def sun(A):
B=0
for i in A:
B=B+i
return B
price=SB()
C=sun(price)
print("="*384)
print("您一共消费了"+str(C)+"元")
\ 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