当前位置:网站首页>UnicodeDecodeError: ‘gbk‘ codec can‘t decode byte 0xad in position 2: illegal multibyte sequence
UnicodeDecodeError: ‘gbk‘ codec can‘t decode byte 0xad in position 2: illegal multibyte sequence
2022-06-09 17:10:00 【bin elf】
file=open('b.txt','r') #file对象对应磁盘上的b.txt文件
print(file.readlines())
file.close()修改
file=open('b.txt','r',encoding='utf-8') #file对象对应磁盘上的b.txt文件
print(file.readlines())
file.close()
边栏推荐
- ARM指令集复习 | 基本指令用法
- Ppt icon download
- RSA加密和解密工具
- 安装idea
- Detailed explanation of toolbar buttons in the user interface of autorunner automated test tool -alltesting | Zezhong cloud test
- 使用tesseract识别图片中的文字
- R 安装/更新 package 报错:failed to lock directory ‘/home/anaconda3/envs/R4.1.2/lib/R/library’
- 【华东师范大学】初试复试考研资料分享
- Written test question Huawei computer test ~ to be continued
- 面试题—华为机试之知识点补充
猜你喜欢

谷歌浏览器书签保存在哪里以及书签导入导出方法

腾讯云数据库TDSQL|像这样的高考,其实我们每天都在经历

CREMB Pro 后台子管理员 403 问题分析

ARM指令集复习 | 基本指令用法

图解 Google V8 # 06:原型链:V8是如何实现对象继承的?

iis怎么打开md文件(is无法打开md文件报错怎么解决)

八连冠!浪潮云连续8年蝉联中国政务云市场第一位

关于在C#中因没有添加:mysql.data.dll 而报错这件事

Unity-获取XML文件的内容信息

Having written code in Huawei for more than ten years, a programmer's self-cultivation
随机推荐
Cloud security daily 220609: Cisco cloud application policy infrastructure controller found privilege upgrade vulnerability, which needs to be upgraded as soon as possible
GTF/GFF文件的差异及其相互转换(转载)
Word 教程,如何在 Word 中更改行距?
SBIO | 浙大陈云组综述农业中细菌与真菌的互作机制
How to solve warning: there was an error checking the latest version of pip
iis怎么打开md文件(is无法打开md文件报错怎么解决)
构建绵羊(非常见物种)BSgenome参考基因组
【长时间序列预测】Aotoformer 代码详解之[1]数据预处理及数据读取
Small program startup performance optimization practice
笔试题—华为机试~待续
C语言选举人投票功能
Top level templates (including contract, tender, graduation defense and other templates in all aspects of work)
Leetcode 1957. Delete characters to make the string better (yes, one pass)
nlp网络中两种残差结构对网络的影响
Differences between gtf/gff documents and their mutual conversion (Reprint)
Unity-获取XML文件的内容信息
Pyepics -- alarm: respond when a PV is out of range
小程序启动性能优化实践
JLINK RTT 能打开却不能在桌面显示问题和BIN文件输出注意事项
OpenCV的imshow()查看图片的像素值