1、locals() 和globals() 是python 的内建函数,他们提供了字典的形式访问局部变量和全局变量的方式。 示例代码:. def test(arg): a=1 b=2 data_dict = {} print ...
確定! 回上一頁