我需要从该脚本访问运行 jython 脚本的 java 类吗?有什么帮助吗?
更新:像这样的东西:
//JAVA CLASS
class Test{
public String text;
public Test
{
PythonInterpreter pi = new PythonInterpreter(null);
pi.execfile("test.py");
}
}
所以 int test.py 我需要做一些事情来改变 Test 类中文本的值
#test.py
doSomething()
Text.test = "new value"
希望更清楚