Pycharm sets the default information of the Python file header (author name, creation time, etc.)

Click File->Settings->Editor->File and Code Templates->then select Python script.
insert image description here
insert image description here
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}

Guess you like

Origin blog.csdn.net/ZZQHELLO2018/article/details/131672189