Each file requires python top notes, today introduced a method that only need to set the method once, the next time a new python file automatically appears at the top of the comment

Each file requires python top notes, today introduced a method that only need to set the method once, the next time a new python file automatically appears at the top of the comment

Copy the following code in the file ----- settings ------ file and code templats ---- python file, paste it into a blank service can automatically bring out the next time a new file

#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : ${DATE} ${TIME}
# @Author : XXX
# @Site : ${SITE}
# @File : ${NAME}.py
# @Software: ${PRODUCT_NAME}

 

 

Create a python file, view the results, as shown below, is not it great

 

Guess you like

Origin www.cnblogs.com/merry-0131/p/11269855.html