PyCharm 设置Python 文件头部模板

1. 菜单栏-> File -> Settings -> Editor -> File and Code Templates ->Python Script

 2.配置头文件内容,内容根据自己情况设置;

##!/usr/bin/python
# -*- coding: utf-8 -*-
# @Time    : ${DATE} ${TIME}
# @Author  : Hunk
# @Email   : qiang.liu@ikooo.cn
# @File    : ${NAME}.py
# @Software: ${PRODUCT_NAME}

原文地址:https://www.cnblogs.com/mengyu/p/7753504.html