C#调用python

首先下载最新的IrorPython(点击打开链接),目前最新的是2.7.8。安装。引用安装路径下的DLL(C:\Program Files\IronPython 2.7)新建一个Winfrom程序调用写好的Python代码ScriptEngine pyEngine = Python.CreateEngine();//创建Python解释器对象n ScriptSource so…