1、locals() 和globals() 是python 的內建函數,他們提供了字典的形式訪問局部變量和全局變量的方式。 def test(arg): a=1 b=2 data_dict = {} p.
確定! 回上一頁