import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class JavaPythonUtils {
public static void testgunapi() throws InterruptedException, IOException {
Process pr = Runtime.getRuntime().exec("python D:/ideaPyWorkspaces/testapi/srccode/testgunapi.py");
BufferedReader in = new BufferedReader(new InputStreamReader(pr.getInputStream()));
String line;
while ((line = in.readLine()) != null) {
System.out.println(line);
}
in.close();
pr.waitFor();
}
}