第一次在Windows7平台下,执行 .py w文件,进入到test.py文件所在的目录下,python test.py 执行,发现报错了!

SyntaxError: (unicode error) ‘utf-8‘ codec can‘t decode byte 0xca in position 0: invalid continuati

是编码格式不对,个人用的是ultralEdit ,ultralEdit转换编码,转换成自己的需要的编码就行。

SyntaxError: (unicode error) ‘utf-8‘ codec can‘t decode byte 0xca in position 0: invalid continuati

记录一下,仅个人经验!

相关文章:

  • 2022-12-23
  • 2021-08-14
  • 2021-06-07
  • 2022-12-23
  • 2021-06-11
  • 2021-08-29
  • 2021-09-28
  • 2021-06-26
猜你喜欢
  • 2021-08-08
  • 2021-06-16
  • 2021-12-14
  • 2021-05-22
  • 2021-07-03
  • 2021-10-12
  • 2021-12-09
相关资源
相似解决方案