pycharm sets a script to automatically generate py file information when creating a new python

settings

Insert picture description here

Editor-File and Code Templates

Insert picture description here

Click Python Script

Insert picture description here

#Author:yuan
# -*- codeing = utf-8 -*-
# @Time :${DATE} ${TIME}
# @Author :${USER}
# @Site :${SITE}
# @File :${NAME}.py
# @software: ${PRODUCT_NAME}

Support Chinese:

# -*- codeing = utf-8 -*-

Date and time:

# @Time :${DATE} ${TIME}

Author:

# @Author :${USER}

Types of:

# @Site :${SITE}

py file name:

# @File :${NAME}.py

Software or platform used:

# @software: ${PRODUCT_NAME}
The above script will generate the following information every time a ph file is created

Insert picture description here

Here I recommend everyone to use the following concise script

	# -*- codeing = utf-8 -*-
	# @Author :$杨致远
	# @Time :${DATE} ${TIME}
	# @File :${NAME}.py
	# @software: ${PRODUCT_NAME}

Guess you like

Origin blog.csdn.net/qq_43808700/article/details/113245645