摘要:
#作用域 def test1(): print(2) def test(): print(1) return test1 res=test()#运行test,返回结果赋值给res print(res())#相当于运行test1 name='lzx' def foo(): name='lcf' def bar(): print(name) ... 阅读全文
posted @ 2018-07-09 14:55
Lzxanthony
阅读(148)
评论(8)
推荐(0)

浙公网安备 33010602011771号