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
相關文章
相關標籤/搜索