Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 PhpStorm 中,您可以/**在任何函数/方法/类之前和按下回车键之后编写,您将获得自动完成的文档注释,其中包含参数、异常和返回语句。PyCharm 中是否存在类似的功能?我试过写''',但它不适合我。
/**
'''
Alt+ Enter(激活意图操作),插入文档字符串 stub。
在输入函数标题(例如 def myfunc(...))和下面的冒号 (:) 后按 enter,然后输入 """(3 个双引号),然后再次按 enter。