在java中使python像系统调用一样

Java中有
Python的popen2吗? 最佳答案 我相信Process对象就是你要找的东西. Javadoc
here.你使用它像Process myProcess = System.getRuntime().exec(“cmd here”));它允许您获取标准和错误输出流.

点赞