标签:闭包 username return status world hello def
def hello(username):
username = '大西瓜'
def world(status):
return username+status
return world
def nihao(username):
username='小西瓜'
def world(status):
return username+status
return world
# world1 = hello('张三')
# world2 = hello('李四')
# print(world1('作业交了'))
# print(world2('作业没交'))
标签:闭包,
username,
return,
status,
world,
hello,
def
From: https://www.cnblogs.com/striveforward/p/18241111