https://blog.csdn.net/jianglianye21/article/details/83504046 https://www.geek-share.com/detail/2764656029.html https://www.cnblogs.com/Zfc-Cjk/p/10842307.html
FileWriter fstream = new FileWriter("/Users/kk999/Desktop/token.csv",true);//定义本地文件路径 BufferedWriter out = new BufferedWriter(fstream); out.write("${access_token}");//写入token out.write(","); //换列 out.write("${phone}");//写入手机号 out.write(System.getProperty("line.separator"));//换行 out.close(); fstream.close();