Home  >  Article  >  Backend Development  >  Pycharm automatically adds examples of file header comments when creating py files.

Pycharm automatically adds examples of file header comments when creating py files.

不言
不言Original
2018-05-07 16:25:324344browse

This article mainly introduces the example of Pycharm automatically adding file header comments when creating py files. It has certain reference value. Now I share it with you. Friends in need can refer to it

1.Select File -> Settings

##2.Select File and Code Templates -> Files -> Python Script

Style of editing code

#!/usr/bin/env python
# encoding: utf-8
'''
@author: caopeng
@license: (C) Copyright 2013-2017, Node Supply Chain Manager Corporation Limited.
@contact: deamoncao100@gmail.com
@software: garner
@file: ${NAME}.py
@time: ${DATE} ${TIME}
@desc:
'''

3. Create a new python, the file is as follows

Related Recommended:

Detailed explanation of automatic import module of Pycharm editor skills

##

The above is the detailed content of Pycharm automatically adds examples of file header comments when creating py files.. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn