摘要: 1 函数的作用域 变量查找顺序:L_E_G_B,作用域局部>外层作用域>当前模块中的全局>python内置作用域 x=10 (Global 全局变量) def f(): t=5 (enclosing外层作用域) def inner(): count=7(local 局部作用域) return 1 2 阅读全文
posted @ 2020-04-06 17:09 小将博杨 阅读(94) 评论(0) 推荐(0)