步骤:
打开pycharm–>File–>Settings–>Editor–>File and Code Templates

然后选择Python Script
输入:# -*- coding: utf-8 -*-
勾选:Enable Live Templates
如图,然后Apply点击ok就可以了
pycharm创建python文件自动加上# -*- coding: utf-8 -*-

相关文章:

  • 2021-04-04
  • 2021-12-20
  • 2022-01-08
  • 2021-09-24
  • 2022-12-23
猜你喜欢
  • 2021-05-29
  • 2022-12-23
  • 2022-12-23
  • 2022-01-12
  • 2022-01-22
  • 2022-12-23
  • 2021-11-25
相关资源
相似解决方案