PyCharm 自动添加作者及时间

打开pycharm,快捷键ctrl + alt + s 打开模板设置自己所需内容

完整打开路径:file>settings>editor>code style>file and code templates>python script

#!/usr/bin/python
# -*- coding: UTF-8 -*-
# @date: ${DATE} ${TIME}
# @name: ${NAME}
# @author:vickey-wu

官网设置模板的链接:https://www.jetbrains.com/help/pycharm/2017.1/creating-and-editing-file-templates.html

原文地址:https://www.cnblogs.com/vickey-wu/p/6838851.html