jythonとPythonInterpreterを使用するjug.javaというJavaファイルを作成しました。これはコードです: import org.python.util.PythonInterpreter;
import org.python.core.PyObject;
public class Jug{
public void main(String[] args) {
私はjavaでPythonコードを実行するためにorg.python.util.PythonInterpreterクラスを使用しています。私のコードのスニペットを見てください。 PythonInterpreter pythonInterpreter = new PythonInterpreter(null, new PySystemState());
ByteArrayOutputStream