python r+ 是追加写

python r+ 是追加写
f=open('path','r+')
f.write(1)
f.write(2)
文件内容是12
不能被一些博客误导了

原文地址:https://www.cnblogs.com/lyzz1314/p/12971111.html