当前位置:网站首页>UnicodeDecodeError: ‘utf-8‘ codec can‘t decode byte 0xff in position 0: invalid start byte
UnicodeDecodeError: ‘utf-8‘ codec can‘t decode byte 0xff in position 0: invalid start byte
2022-07-27 17:10:00 【遨游的菜鸡】
UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xff in position 0: invalid start byte
报错代码:df=pd.read_csv("./ttt.txt",sep=",",encoding=“utf-8”)
解决办法就是将文档编码转为utf8,下面尝试了两种解决办法!
解决办法一(失败):
解决办法二(成功):
用Notepad++打开,然后转为utf-8编码,这样转是成功的。
参考:https://blog.csdn.net/datadev_sh/article/details/83541811
边栏推荐
- SQLServer 2008中事务日志已满问题处理
- Flink简介以及运行架构
- 【深度学习基础知识 - 50】PCA降维 主成成分分析
- 记一次无准备的实习面试
- [basic knowledge of in-depth learning - 40] Why does CNN have more advantages than DNN in the field of images
- VS2017#include 'xxx.h'
- Transaction log full problem handling in sqlserver 2008
- TSMC 5nm is about to mass produce: Apple A14 monopolizes 70% of the production capacity, and Huawei Kirin 1020 takes 30%
- Debian recaptured the "debian.community" domain name, but it's still not good to stop and rest
- Embedded C language pointer alias
猜你喜欢

下放三星3J1传感器:代码暗示Pixel 7人脸识别安全性将大增

MarqueeTextview(跑马灯)

注入攻击

Detailed interpretation of IEC104 protocol (I) protocol structure

Release Samsung 3J1 sensor: the code implies that the safety of pixel 7 face recognition will be greatly increased

应用程序池已被禁用

GestureDetector(手势识别)

【深度学习基础知识 - 42】逻辑回归详解

Binary search tree

Under the heat wave of Web3.0, the ecological shock of Mensa struck
随机推荐
DNSSEC verification with dig [verify DNSSEC with dig]
SQlife(数据库)
【日常积累 - 06】查看cuda和cudnn版本
Pytorch reports CUDA error: no kernel image is available for execution on the device error
High cost, difficult to implement, slow to take effect, what about open source security?
英特尔发布Horse Ridge芯片:22nm工艺,能够控制多个量子位
【深度学习基础知识 - 47】贝叶斯网络与朴素贝叶斯
Uncover the mystery of Qualcomm ultrasonic fingerprint being "cracked by film"
What's new in helix QAC 2022.2, the ace code static testing tool (1)
Combinatorics -- permutation and combination
揭秘高通超声波指纹被“贴膜破解”之谜
IDEA:解决代码没有提示问题
The first Xiaolong 765G! Redmi K30 5g release: support 5g dual-mode 120Hz screen, priced from 1999 yuan
Detailed explanation of the underlying data structure of redis
ToggleButton(按钮开关)
估值超156亿元!华勤通讯完成10亿元B轮融资!高通创投、英特尔资本领投
Binary search tree
几种无线协议简介
View pagoda PHP extension directory
MarqueeTextview(跑马灯)