当前位置:网站首页>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
边栏推荐
- 【深度学习基础知识 - 45】机器学习中常用的距离计算方法
- Map and set
- 英特尔发布Horse Ridge芯片:22nm工艺,能够控制多个量子位
- Unity-FairyGUI播放视频(Lua)
- 记一次无准备的实习面试
- [basic knowledge of deep learning - 47] Bayesian networks and naive Bayes
- What's new in helix QAC 2022.2, the ace code static testing tool (1)
- 英特尔推出全球最小的高分辨率激光雷达,售价仅349美元
- VS2017#include 'xxx.h'
- Release Samsung 3J1 sensor: the code implies that the safety of pixel 7 face recognition will be greatly increased
猜你喜欢

Introduction to socke programming
![[basic knowledge of deep learning - 37] solve the imbalance between positive and negative samples](/img/71/4052607951eb52862a6fd36366f216.png)
[basic knowledge of deep learning - 37] solve the imbalance between positive and negative samples

JS 寻找所有节点sibling childNodes children

Embedded C language structure

注入攻击

Use of jvisualvm

【深度学习基础知识 - 43】优势比的概念

A lock faster than read-write lock. Don't get to know it quickly

GestureOverlayView(手势识别2)

Flink简介以及运行架构
随机推荐
redis底层数据结构详解
Fabric上搭建Hyperledger caliper进行性能测试
[basic knowledge of deep learning - 39] comparison of BN, LN and WN
Low code implementation exploration (45) business parameters
Hyperledger caliper is built on fabric for performance test
Chinese character search Pinyin wechat applet project source code
嵌入式C语言结构体
Release Samsung 3J1 sensor: the code implies that the safety of pixel 7 face recognition will be greatly increased
influxDB系列(四)TSM引擎(存储原理)
Flink简介以及运行架构
【深度学习基础知识 - 50】PCA降维 主成成分分析
王牌代码静态测试工具Helix QAC 2022.2中的新增功能(2)
王牌代码静态测试工具Helix QAC 2022.2 中的新增功能(1)
Debian recaptured the "debian.community" domain name, but it's still not good to stop and rest
MySQL time zone problem
GestureOverlayView(手势识别2)
四大组件之ContentProvider
Remember an unprepared internship interview
【深度学习基础知识 - 37】解决正负样本不均衡 Focal Loss
开启和禁用hyper-v