Home > other >  Using Chinese character encoding stil open TXT file
Using Chinese character encoding stil open TXT file

Time:03-29

Using Chinese character encoding error opening TXT file, please god help see
With the open (' result. TXT, encoding='gb18030', errors='ignore') as fp:
Fp. Seek (5)
The line=fp. Readline ()
Print (line)
运行结果是乱码:湡镄勬垜璇曡绷浜嗘按e???嗗ぇ鎾掓棪鍙戦(涓版坠锷ㄩ榾镓嫔姩阒镓嫔姩阒
  • Related