強制轉換為gbk編碼,上一步已經從utf-8轉換為unicode了,從unicode是編碼的過程,通過encode實現。 # encoding:utf-8. s = "中文". u = s.decode('utf-8').
確定! 回上一頁