3
Python PyCharm新建项目自动添加介绍和utf-8编码
source link: https://blog.51cto.com/domi/5859776
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Python PyCharm新建项目自动添加介绍和utf-8编码
精选 原创✅作者简介:热爱科研的算法开发者,Python、Matlab项目可交流、沟通、学习。
🍎个人主页:算法工程师的学习日志
你是不是觉得每次新建项目都要写一次# coding:utf-8
,感觉特烦人
呐!懒(fu)人(li)教程来啦,先看效果图吧
如图进入设置
然后将下列内容粘贴进去就行了,是不是很简单
# !/usr/bin/env python
# -*- encoding: utf-8 -*-
"""
@File : ${NAME}.py
@Contact: xxx
@Usage : xxxxxx
@Modify Time @Author @Version @Desciption
------------ ------- -------- -----------
${DATE} ${TIME} xxxxxxxxx 1.0 None
@TODO :
"""
# -*- encoding: utf-8 -*-
"""
@File : ${NAME}.py
@Contact: xxx
@Usage : xxxxxx
@Modify Time @Author @Version @Desciption
------------ ------- -------- -----------
${DATE} ${TIME} xxxxxxxxx 1.0 None
@TODO :
"""
以上内容可以按照自己所需,按照实际修改,
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK