使用python2的时候, 新建的.py文件第一行都要写上# -*- coding: utf-8 -*-
这种繁琐的事情, 应该让PyCharm自动完成。
~/资源库/Preferences/PyCharm2016.3/fileTemplates/internal/Python Script.py
Python Script.py`里写入任何你想在新建py文件的模版代码。
使用python2的时候, 新建的.py文件第一行都要写上# -*- coding: utf-8 -*-
这种繁琐的事情, 应该让PyCharm自动完成。
~/资源库/Preferences/PyCharm2016.3/fileTemplates/internal/Python Script.py
Python Script.py`里写入任何你想在新建py文件的模版代码。