How to view the documents that come with the python library
This article mainly introduces how to view the python library with its own documents, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let Xiaobian take you to understand.
After installing python third-party libraries, you often need to query their documentation. In fact, python comes with its own document viewer. You can view the documentation of all built-in and third-party libraries, which is not very detailed, but it is better than none at all.
In the command line window
Python-m pydoc-p 6000
A brief explanation:
Python-m pydoc means to open the pydoc module. Pydoc is the preferred tool for viewing python documents.
-p 6000 means to start server on port 6000
Then access http://localhost:6000/ in the browser
Although the article is very short, but quite practical, sometimes we often encounter do not know what properties and methods of the object created by this library, to check the source code, although it is possible, but sometimes it is not easy to look up, but python comes with this document library is very convenient and practical, who uses who knows.
Thank you for reading this article carefully. I hope the article "how to View the documents included in the python Library" shared by the editor will be helpful to you. At the same time, I also hope that you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!