pycharm注释

文件注释

菜单 -> Settings -> Editor -> File and Code Tempaltes -> Python Script -> 填写注释内容

#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @File    : ${NAME}.py
# @Time    : ${DATE} ${TIME}
# @Author  : 作者名字
# @Description : 作者自己写

函数注释

菜单 -> Settings -> Tools -> Python Intrgrated Tools -> 右侧docstrings列表中选择reStructuredText

posted @ 2024-01-22 15:02  gverzh  阅读(21)  评论(0)    收藏  举报