在文件头部加上:

# -*- coding: utf-8 -*-
运行python程序时出现错误“SyntaxError: Non-ASCII character '\xe8' in file variable.py on line 1, but no encod”

 

 

 

相关文章:

  • 2021-08-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-25
  • 2022-12-23
猜你喜欢
  • 2022-01-03
  • 2021-04-17
  • 2021-09-16
  • 2022-12-23
  • 2021-12-11
  • 2021-12-02
相关资源
相似解决方案