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!