Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How does pycharm insert documentation comments for functions

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces pycharm how to insert documentation notes for the function, the article is very detailed, has a certain reference value, interested friends must read it!

Pycharm inserts documentation comments for the function

S1 cursor over the function name, click on the small light bulb, the menu appears

S2 Select input documentation string stub, that is, insert document comments

S3 input the parameter comments of the function and return the value comments

Simple settings for pycharm function comments

There may be situations where function automatic annotations cannot be used after installing PyCharm.

You can modify it in the following path: File- > Settings- > Tools- > Python Intrgrated Tools- > Docstrings- > Docstring format

After modification, enter three "enter" at the bottom of the function and the corresponding format comments will be automatically added.

'' @ Project: python@File: TEST@Author: threeegg@foxmail.com@Data: 2021-3-22 10:26'''def newfunc (10:26'''def newfunc b): "" Args: a: B: Returns: "" pass above is all the content of the article "how to insert documentation comments for a function by pycharm". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report