Commit a33d5530 by BellCodeEditor

save project

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