码迷,mamicode.com
首页 > 编程语言 > 详细

[Python]PyCharm在创建py文件时自动添加头部注释

时间:2020-02-26 22:47:24      阅读:86      评论:0      收藏:0      [点我收藏+]

标签:--   edit   输入   width   创建   bin   pre   png   template   

在Pycharm主界面找到

  File ----->> Setting ----->> Editor ----->> File and Code Templates ----->> Python Script

如图界面

技术图片

 

 

 

在右部编辑区域输入

1 #!/usr/bin/env python
2 # -*- coding: utf-8 -*-
3 # @File  : ${NAME}.py
4 # @Author: auther‘s name
5 # @Date  : ${DATE}
6 # @Desc  :
7 # @Contact : xxxxxxxx@gmail.com 

可仿照格式自行添加所需注释内容

[Python]PyCharm在创建py文件时自动添加头部注释

标签:--   edit   输入   width   创建   bin   pre   png   template   

原文地址:https://www.cnblogs.com/zlc364624/p/12369441.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!