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

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

不言
Release: 2018-05-07 16:25:32
Original
4440 people have browsed it

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:
'''
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template