看板 [ Python ]
討論串[問題] unicodedecodeerror
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓1(1推 0噓 0→)留言1則,0人參與, 最新作者chuanmaotou (0xFFFFFFFF)時間10年前 (2015/07/06 22:50), 編輯資訊
0
0
0
內容預覽:
如果是要存成json,在寫入檔案的時候,用這樣輸出:. with open('filename.json', 'w', encoding='utf8') as output:. output.write(json.dumps(meta_data, ensure_ascii=False)). 標這個顏
(還有97個字)

推噓0(0推 0噓 4→)留言4則,0人參與, 最新作者l1221l (一一二二一一)時間10年前 (2015/07/06 15:48), 編輯資訊
0
0
0
內容預覽:
試著使用word2vector. 他們官網提供了train好的資料. 但是是binary 1的bin檔. 想轉成可閱讀的形式. en = content.decode('utf-8'). print(en). 看到的是. UnicodeDecodeError: 'utf-8' codec can't
(還有826個字)
首頁
上一頁
1
下一頁
尾頁