次点击File->Settings->Editor->File and Code Templates->然后选择Python script.
后将下列代码复制到右边的框框中,然后选择apply应用,就可以啦
##!/usr/bin/python3
# -*- coding: utf-8 -*-
# @Time : ${DATE} ${TIME}
# @Author : 作者姓名
# @Email : 邮箱
# @File : ${NAME}.py
# @Project : ${PROJECT_NAME}