例如,尝试使用python的完整路径
Process process = Runtime.getRuntime().exec("C:\Python\python.exe C:\Users\username\Desktop\demo\filename.py");
例如,尝试使用python的完整路径
Process process = Runtime.getRuntime().exec("C:\Python\python.exe C:\Users\username\Desktop\demo\filename.py");