python读写文件
文件格式 r r+ w w+ a a+ read + + + + write + + + + + write after seek + + + create + + + + truncate + + position at start + + + + position at end + + 其中:tructate在打开文件时,该文件变为空(文件的所有内容都将被删除) 错误:io.UnsupportedOperation: can’t do nonzero end-relative seeks w改为wb即可 中文问题 添加:, encoding=’utf-8′