//PythonInterpreter interpreter ,python模擬器
java執行指定的jpython函數(帶參數)
PyFunction func = (PyFunction) interpreter.get(“func1”, PyFunction.class);
PyObject pyobj = func.__call__( Py.java2py(“param0”), Py.java2py(“param1”));
----------------------------------------
java給jpython變量賦值
interpreter.set(“變量名”, “變量值”);
java 從jpython獲取變量值
PyObject py = interpreter.get(“變量名”);