當前位置:成語大全網 - 新華字典 - python xlrd 讀取中文內容excel. 讀出來壹個cell內容是\u6a21\u5757\u540d\u79f0 怎麽轉中文print出來啊

python xlrd 讀取中文內容excel. 讀出來壹個cell內容是\u6a21\u5757\u540d\u79f0 怎麽轉中文print出來啊

這個我試了壹下

s=u'\u6a21\u5757\u540d\u79f0'

s.encode('gbk')

print s.encode('gbk') #輸出結果

模塊名稱