Commit 243b26af by BellCodeEditor

save project

parent fb43caf2
Showing with 1187 additions and 0 deletions
...@@ -421,6 +421,1184 @@ ...@@ -421,6 +421,1184 @@
def dddd(): def dddd():
total = [] total = []
while True: while True:
...@@ -437,3 +1615,12 @@ def dddd(): ...@@ -437,3 +1615,12 @@ def dddd():
print("-"*30) print("-"*30)
print(total) print(total)
dddd() dddd()
def sum(money):
count=0
for i in money:
count=count+i
return count
a=dddd()
m=sum(a)
print("您一共花了"+str(m)+"元")
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