💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、豆包、星火、月之暗面及文生图、文生视频 广告
本节参考了以下文章: [Python 五个知识点搞定作用域](http://python.jobbole.com/86465/) [这一篇把Python 作用域的疑惑终于解决了](http://www.360doc.com/content/18/0125/20/52317628_725082394.shtml) [Python变量作用域](https://zhuanlan.zhihu.com/p/25842174) [详解python命名空间和作用域](https://www.cnblogs.com/zhangxinhe/p/6963462.html) [Python命名空间的本质](http://www.cnblogs.com/windlaughing/archive/2013/05/26/3100362.html) [python命名空间](https://blog.csdn.net/u012436149/article/details/72819539) [Python中的LEGB规则](https://www.cnblogs.com/GuoYaxiang/p/6405814.html) 官方文档在此: [Python Scopes and Namespaces](https://docs.python.org/3/tutorial/classes.html#python-scopes-and-namespaces) [Scopes and Namespaces Example](https://docs.python.org/3/tutorial/classes.html#scopes-and-namespaces-example)