Click File->Settings->Editor->File and Code Templates->then select Python script.
Then copy the following code into the box on the right, and then select apply to apply.
##!/usr/bin/python3
# -*- coding: utf-8 -*-
# @Time : ${DATE} ${TIME}
# @Author : 作者姓名
# @Email : 邮箱
# @File : ${NAME}.py
# @Project : ${PROJECT_NAME}