99问答网
所有问题
python xlrd 读取中文内容excel. 读出来一个cell内容是\u6a21\u5757\u540d\u79f0 怎么转中文print出来啊
如题所述
举报该问题
推荐答案 推荐于2018-05-18
这个我试了一下
s=u'\u6a21\u5757\u540d\u79f0'
s.encode('gbk')
print s.encode('gbk') #输出结果
模块名称
温馨提示:答案为网友推荐,仅供参考
当前网址:
http://99.wendadaohang.com/zd/evBtjBOOj.html
其他回答
第1个回答 2012-05-20
>>> print u'\u6a21\u5757\u540d\u79f0'
模块名称
相似回答
大家正在搜
相关问题
如何用python读取excel生成word文档
python主要有几大应用领域,python操作EXCEL,...
怎样在Excel中使用python脚本
如何用python操作excel
买什么手提电脑好。主要用于办公软件例如Excel ps Py...
Python语言打开Excel文件?
python excel怎么增加sheet
如何用python创建excel表格