python导入文本
0
import pandas as pds
ti=pds.read_table("C:/Users/My/Desktop/1.txt")
错误:UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb2 in position 10: invalid start byte
ti=pds.read_table("C:/Users/My/Desktop/1.txt")
错误:UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb2 in position 10: invalid start byte
没有找到相关结果
重要提示:提问者不能发表回复,可以通过评论与回答者沟通,沟通后可以通过编辑功能完善问题描述,以便后续其他人能够更容易理解问题.
3 个回复
ID王大伟 - 人生苦短,我选Python。 2018-04-27 回答
赞同来自:
ti=pds.read_table("C:/Users/My/Desktop/1.txt",encoding='gbk)
一只写程序的猿 - 一个圣骑士成熟的标志是不再向盲人解释阳光。公众号:Python攻城狮 2018-04-23 回答
赞同来自:
cdn007 - 喜欢自由空间! 2018-04-24 回答
赞同来自: