注意跳过开头 3 个字节的 BOM 1234 with codecs.open(filePath, 'r+', 'utf-8') as f: content = f.read() f.seek(3, 0) f.write(statisticStr + content) 赞微海报分享
近期评论