Commit ee8e8730 by BellCodeEditor

save project

parent f366388d
Showing with 6 additions and 4 deletions
...@@ -18,9 +18,11 @@ def a(): ...@@ -18,9 +18,11 @@ def a():
#如果程序不报错 #如果程序不报错
print(total) print(total)
return total return total
def d(xyz) def d(xyz):
e=0 e=0
for i in xyz: for i in xyz:
e=e+i
return e
c=a() c=a()
print(c) f=d(c)
\ No newline at end of file print('一共消费'+str(f)+'元')
\ 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