我会这样:
Process p = Runtime.getRuntime().exec("python app.py");您还可以将参数作为命令行参数传递给python程序,如下所示:
Process p = Runtime.getRuntime().exec("python app.py arg1 arg2");
我会这样:
Process p = Runtime.getRuntime().exec("python app.py");您还可以将参数作为命令行参数传递给python程序,如下所示:
Process p = Runtime.getRuntime().exec("python app.py arg1 arg2");