我正在编写C++代码,它应该调用底层的python脚本。为此,我使用的cpython。一些python脚本在python for .net的帮助下执行.net代码,当涉及到.net时,所有这些都失败了。我尝试构建测试应用来验证它失败的地方,发现它不能导入clr模块。当我运行这段代码时,它显示ImportError:没有名为clr的模块PyRun_SimpleString("import clr");
如果我进入python<
var engine = Python.CreateEngine();clr.AddReference("IronPython.StdLibpydoc.render_doc(str))";Debug.Assert(result.StartsWith("PythonLibrary Documentati