Python 動態執行字符串代碼片段(也可以是文件),一般會用到 exec, eval。 ... exec "global a; print a,b" in g // g 同時代表global 與local 變量 ...
確定! 回上一頁