我尝试这个:链接
C#:
private void Form1_Load(object sender, EventArgs e)
{
var ipy = Python.CreateRuntime();
dynamic test = ipy.UseFile(@"C:\Users\Admin\Desktop\Test.py");
textBox1.Text = test.Simple();
}
Python:
def Simple():
print "Hello from Python"
没有错误,当我运行它时,文本框保持空白。我做错了什么?