当前位置:网站首页>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 19:57:00 【Roaming vegetable chicken】
UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xff in position 0: invalid start byte
Error code :df=pd.read_csv("./ttt.txt",sep=",",encoding=“utf-8”)
The solution is to convert the document code to utf8, Here are two solutions !
Solution one ( Failure ):
Solution two ( success ):
use Notepad++ open , Then turn to utf-8 code , This transformation is successful .
Reference resources :https://blog.csdn.net/datadev_sh/article/details/83541811
边栏推荐
- Radiogroup (radio box)
- JS 寻找所有节点sibling childNodes children
- Combinatorics -- permutation and combination
- 四大组件之ContentProvider
- No experts! Growth secrets for junior and intermediate programmers and "quasi programmers" who are still practicing in Universities
- 文件操作防护
- ACL11.12
- 成年人只有一份主业是要付出代价的,被人事劝退后,我哭了一整晚
- 被动收入:回归原始且安全的两种赚取方法
- GridView(实现表格显示图标)
猜你喜欢
随机推荐
FileOutputStream(文件储存)与FileInputStream(文件读取)
Normalization and standardization
【IoT】卫朋:6000+ 字解读 | 2022年产品人必备的7个产品管理工具(1.0版)
The valuation exceeds 15.6 billion yuan! Huaqin communication completed the round B financing of 1billion yuan! Qualcomm venture capital, Intel Capital led investment
Broadcastreceiver (broadcast)
全局函数
新库上线 | CnOpenData中国全部专利详细地址数据
Install Talib Library under Anaconda
focal loss
Publish your own NPM component library
Container summary
Version announcement | Apache Doris 1.1 release version officially released!
The go zero singleton service uses generics to simplify the registration of handler routes
11.2DHCP
顶级“黑客”能厉害到什么地步?无信号也能上网,专家:高端操作!
程序设计综合实验三
pytorch lstm+attention
JS event listening mouse keyboard form page onclick onkeydown onchange
BroadcastReceiver(广播)
Radiogroup (radio box)









