110,538
社区成员
发帖
与我相关
我的任务
分享
#!/usr/bin/env python
# coding:utf-8
import json
s1 = '{"name":"风轻情淡","age":28,"address":"深圳"}'
d1 = json.loads(s1, encoding="utf-8")
print(d1, type(d1))
try
{
ScriptEngine engine = Python.CreateEngine();
ScriptScope scope = engine.CreateScope();
ScriptSource script = engine.CreateScriptSourceFromFile(python1);
var result = script.Execute(scope);
}
catch (Exception e)
{
Console.WriteLine(e.Message);
}