pycharm(mac) -- 随记

?:规范中提示:"byte literal contains characters > 255"

!:在代码头加入"# -*- coding: utf-8 -*-


 ?:创建文件(python、html、flask等文件)时写入部分默认内容,如python的头"# -*- coding: utf-8 -*-",减少不必要的重复工作

!:设置页面 - Editor - File and Code Templates,然后选择需要调整默认内容的文件类型进行修改


 ? 关闭单词检查,如截图中的下划线提醒

 !处理方式:进入偏好设置(preferences) - Editor - inspections - Spelling,去掉后面的勾选框即可。


原文地址:https://www.cnblogs.com/yiwanfan/p/11803938.html