Python new project automatically adds introduction and utf-8 encoding

Do you think you have to write it every time you create a new project? # coding:utf-8It feels very annoying

Now! Lazy (fu) people (li) tutorial is here, let's look at the renderings first

Insert picture description here

Chinese Version

Enter the settings as shown in the figure,
Insert picture description here
and then paste the following content into it, is it very simple

"""
 -*- coding:utf-8 -*- 
Author:${USER}
Age:24
Call:199**9**9*9
Email:[email protected]
Time: ${DATE} ${TIHE}
Software: ${PRODUCT_NAME}
"""

Insert picture description here

English version

After entering the settings, find the Editornext one File and Code Templatesand then it will be the same as above.
Insert picture description here

How about the tuition? If you think it is useful, please like it and support it.

Guess you like

Origin blog.csdn.net/weixin_45728976/article/details/109565611