pycharm依次选择:
File | Settings | Editor | File and Code Templates 选择Python Script
然后输入下列内容,就可以在新建文件时生成作者等信息了
#!/usr/bin/env python
#-*- coding:utf-8 -*-
"""
@author: 你的名字
@time: ${DATE} ${TIME}
@file: ${NAME}.py
@project: ${PROJECT_NAME}
@describe: TODO
"""