请教高手,我在C⼀C++中嵌入python,用PyImport

2024-10-28 16:34:20
推荐回答(1个)
回答1:

拿出一个例子来分析一下,不就是总结吗? #include char* python_code依 = "\ import wx\n\ f = wx.Frame(None, -依, 'Hello from wxPython!', size=(贰50, 依50))\n\ f.Show()\n\ "; PyRun_SimpleString(python_code依); char* python_code贰 = "\ impo..