java代码转换成python代码,本人不会,求大神帮忙
importjava.io.*;publicclassdoscmd3{publicstaticvoidmain(Stringargs[]){try{Processp=Ru...
import java.io.*;
public class doscmd3
{
public static void main(String args[])
{
try
{
Process p=Runtime.getRuntime().exec("cmd /c aws start");
p.waitFor();
BufferedReader reader=new BufferedReader(
new InputStreamReader(p.getInputStream())
);
String line;
while((line = reader.readLine()) != null)
{
System.out.println(line);
}
}
catch(IOException e1) {}
catch(InterruptedException e2) {}
System.out.println("Done");
}
} 展开
public class doscmd3
{
public static void main(String args[])
{
try
{
Process p=Runtime.getRuntime().exec("cmd /c aws start");
p.waitFor();
BufferedReader reader=new BufferedReader(
new InputStreamReader(p.getInputStream())
);
String line;
while((line = reader.readLine()) != null)
{
System.out.println(line);
}
}
catch(IOException e1) {}
catch(InterruptedException e2) {}
System.out.println("Done");
}
} 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询