标签:只读 就会 创建 读写 方式 article tps log net
r只读,r+读写,不创建;r+:可读可写,若文件不存在,报错
w如果文件已经存在,则不替换;
w 就是打开文件,文件如果不存在,就会新建一个文件;
w+: 可读可写,若文件不存在,创建
信息来源:https://blog.csdn.net/YMD8005/article/details/51944962
标签:只读 就会 创建 读写 方式 article tps log net
原文地址:https://www.cnblogs.com/luyanru66/p/9580546.html