python def say_hello(name): print("Hello, " + name + "!") import org.python.util.PythonInterpreter; import org.python.core.*; public class JythonExample { public static void main(String[] args) { PythonInterpreter interpreter = new PythonInterpreter(); PyFunction pyFunction = interpreter.get("say_hello", PyFunction.class); } }


上一篇:
下一篇:
切换中文