Commit c6391e63 by BellCodeEditor

save project

parent dc7a4bdf
Showing with 11 additions and 3 deletions
......@@ -12,5 +12,13 @@ def b():
else:
total.append(unit)
return total
a=b()
print(a)
\ No newline at end of file
def c(d):
e=0
for i in d:
e=e+i
return e
f=b()
g=c(f)
print("一共消费了"+str(g)+"元。")
\ 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