Commit fc646f06 by BellCodeEditor

save project

parent 743d02bc
Showing with 9 additions and 2 deletions
...@@ -13,5 +13,12 @@ def func(): ...@@ -13,5 +13,12 @@ def func():
else: else:
total.append(unit) total.append(unit)
return total return total
def sum(x):
count=0
for i in x:
count=count+i
return count
a=func() a=func()
print(a) jiage=sum(a)
\ No newline at end of file print("总共:"+str(jiage)+"亿元")
\ 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