Commit a33d5530 by BellCodeEditor

save project

parent d0e71576
Showing with 9 additions and 6 deletions
b=0
def suanjiage():
total = []
while True:
......@@ -13,9 +12,14 @@ def suanjiage():
else:
total.append(unit)
return total
def aaa(bbb):
b = 0
for i in bbb:
b+=i
return b
##############################
a=suanjiage()
print(a)
for i in a:
b+=i
print("总价为:",b)
\ No newline at end of file
sum_list=aaa(a)
print(sum_list)
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