How to view the Python Help document in command-line mode---dir, assist, __doc__
1, the Dir function can view the properties of the object, the use of the method is very simple, for example, the str type, enter DIR (str) in the Python command window to see the properties of STR, as shown in:
2. How can I view the help document for an object's properties? To view the split property of STR, you can use __DOC__ with the method print (str.split.__doc__), as shown in:
3. You can also use the Help function to view a property of an object, using the method Str.split, as shown in:
4. To view detailed documentation of an object with help, such as viewing a detailed document of the STR type can be used in the helps (str). If the document has a lot of content, help lists all parts of the document and prompts "-more--" in the lower-left corner, press ENTER to display more information, and to return to command-line interaction mode, press CTRL + C.
How to view the Python Help document in command-line mode---dir, assist, __doc__