如何允许exec在python的嵌套方法中访问自由变量? 我必须在python(2.6)的嵌套方法中访问exec中的自由变量 def outerF(): la = 5 def innerF(): str1 = "print( ...2024-05-14 已阅读: n次