背景:每次新建的py文件,头部都有注释
# -*- conding: utf-8 -*-
# Author: xxx
# Datetime : 2019/12/12 10:25
# software: PyCharm
# usage:
步骤:
- 打开file - setting - editor -file and code templates
- 选中python script ,输入
# -*- conding: utf-8 -*- # Author: xxx # Datetime : ${DATE} ${TIME} # usage:
- apply - ok