Python读写文件

写文件须要先打开,而后写入,最后关闭web open() open()很简单,通常用法:svg file = open(./text.log,'r') file = open(./text.log,'w') file = open(./text.log,'rb') file = open(./text.log,'wb') 接下来的读写才是重点,并会稍微讲解r,w,rb,wb的功能code read
相关文章
相关标签/搜索