Commit eef686f8 by BellCodeEditor

save project

parent 79d1a84b
Showing with 16 additions and 1 deletions
def hello(name):
content='你好!' + name
return content
resu=hello("小依")
print(resu)
\ No newline at end of file
...@@ -12,9 +12,16 @@ def d(): ...@@ -12,9 +12,16 @@ def d():
else: else:
sb.append(unit) sb.append(unit)
return sb return sb
def sum(sb):
money=0
for i in sb:
money=money+i
return money
e=d() e=d()
print(e) f=sum(e)
print('一共',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