摘要:
出现类似问题,是这个字节超出了utf-8的表示范围,出现了解码错误 解决方案:设置encoding = 'ISO-8859-1' 比如: with open('./xxx.txt',encoding='ISO-8859-1') as f: print(f.read()) 阅读全文
posted @ 2021-10-26 17:44
eliwang
阅读(5328)
评论(0)
推荐(0)
摘要:
zipfile包是python中用来处理zip文件压缩和解压缩的 一、导包 import zipfile 二、zipfile.ZipFile类 z = ZipFile(file, mode="r", compression=ZIP_STORED, allowZip64=True,compressle 阅读全文
posted @ 2021-10-26 16:17
eliwang
阅读(3883)
评论(0)
推荐(0)

浙公网安备 33010602011771号