111,120
社区成员
发帖
与我相关
我的任务
分享
ScriptEngine pyEngine = Python.CreateEngine();
dynamic py = pyEngine.ExecuteFile(@"call.py");//读取脚本文件
IronPython.Runtime.PythonDictionary prediction = py.Test();//调用python中的方法
import sys
sys.path.append(r'D:\\Python3.7.0\\Lib')
sys.path.append(r'D:\\Python3.7.0\\Lib\\site-packages')
sys.path.append(r'D:\\python3.7.0\\lib\\site-packages\\requests-2.19.1-py3.7.egg')
sys.path.append(r'D:\\python3.7.0\\lib\\site-packages\\urllib3-1.23-py3.7.egg')
import requests
import json
//下面是具体的业务逻辑