一、错误问题

错误问题:Non-UTF-8 code starting with '\xbb' in file,如图所示:

Non-UTF-8 code starting with '\xbb' in file

 

二、分析问题

原因:程序文件夹中出现中文,运行的时候出现如下错误,导致出错的根源就是编码问题。

 

 三、解决方法

在脚本加上# -*- coding: gbk -*-   ,如图所示: 

Non-UTF-8 code starting with '\xbb' in file

 

相关文章:

  • 2021-09-11
  • 2021-09-15
  • 2022-01-28
  • 2022-12-23
  • 2022-01-28
  • 2022-02-20
  • 2021-09-29
  • 2022-12-23
猜你喜欢
  • 2021-08-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-14
  • 2022-03-04
  • 2021-05-09
相关资源
相似解决方案