1、设置PyCharm工具的编码格式:
File -->> setting -->> File Encodings -->> IDE encoding:utf-8
2、设置模板文件编码类型:
File -->> Setting -->> File and Code Templates
在模块里顶部加入下面语句
#!/usr/bin/env python
# coding=utf-8
file -->> setting -->> inspections -->> PEP 8 coding style violation
1、临时设置。
右键单击行号处,勾选 Show Line Numbers。
2、临时设置。
View -->> Active Editor,勾选 Show Line Numbers。
3、永久设置。
File -->> Settings -->> Editor -->> Appearance ,勾选 Show Line Numbers。