file=open("ceshi.text","r+")
res=file.read()
file.write("hah212121212121xxxc")
print(res)
file=open("ceshi.text","r+")
file
puthonj基础知识:文件的读取和写入
![](https://img-home.csdnimg.cn/images/20240611030827.png)
file=open("ceshi.text","r+")
res=file.read()
file.write("hah212121212121xxxc")
print(res)
file=open("ceshi.text","r+")
file