见下图可以添加或者去掉默认编码,
路径:File—settings—Editor—File and Code Templates —Python Script
添加# -- coding: utf-8 -- 或者# *coding:utf-8 *
如果想去掉在这里删除掉就可以。
pycharm默认添加utf-8编码

相关文章:

  • 2021-11-30
  • 2021-11-20
  • 2021-11-20
  • 2021-09-11
  • 2021-11-30
  • 2021-11-20
  • 2018-10-27
  • 2021-09-11
猜你喜欢
  • 2021-11-20
  • 2021-09-25
  • 2021-11-03
  • 2021-11-20
  • 2021-12-22
  • 2021-11-02
  • 2021-11-30
相关资源
相似解决方案