Commit fc646f06 by BellCodeEditor

save project

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