Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
python pandas 读取中文
Experiences and Insight
909
views ·
1
replies ·
To
floor
Go
lovechang1986
deepin
2016-08-13 18:42
Author
我在windows下使用python的第三方库pandas读取相同的文件,文件中为中文
在deepin中读取就成了乱码,请问如何解决啊?
Reply
Like 0
Favorite
View the author
All Replies
Lyvnee
deepin
2016-08-13 19:16
#1
需要设定参数encoding,也就是编码方式,如果你不设定编码方式,默认是utf8,如果文件是gbk编码的,需要使用encoding='gbk'
Reply
Like 0
View the author
Please
sign
in first
Featured Collection
Change
Nuntia - Modern IMAP/SMTP mail client for Deepin (Beta tester wanted!)
[Tutorial] deepin25 WSL Offline Installation Guide
UOS AI 2.8 Released! Three New Intelligent Agents & Major Evolution
Solid Q&A | deepin 25 Common Questions – The Immutable System Edition
New Thread
Popular Ranking
Change
Adding a Dancing Spectrum Bar to the Deepin Taskbar | deepin-spectrum
Popular Events
More
在deepin中读取就成了乱码,请问如何解决啊?