Commit fc646f06 by BellCodeEditor

save project

parent 743d02bc
Showing with 10 additions and 3 deletions
......@@ -9,9 +9,16 @@ def func():
if unit== -1:
print("陈序结束")
break
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