2019独角兽企业重金招聘Python工程师标准>>> File f = new File("d:"+File.separator+"1.bat"); FileOutputStream out = new FileOutputStream(f,false); String str = "hello world"; byte b[] = str.getBytes(); out.write(b); out.close(); 转载于:https://my.oschina.net/liangxiao/blog/117579