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