python r+ 是追加写

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

posted @ 2020-05-27 10:43  Bravo_Jack  阅读(513)  评论(0)    收藏  举报