python stata 交互
python from sfi import Data from sfi import Datetime from sfi import Frame from sfi import Macro from sfi import ValueLabel cca="北京" ac=cca.split(' ') for ii in ac: Macro.setLocal('x',ii) end disp "`x'" python: from sfi import Scalar from sfi import Data from sfi import Macro aa=Scalar.getString("r(k_drop)") aa=Macro.getValue(`zong') print(str(aa)) end