1 The Dir function can view the properties of an object, and in Str, for example, enter Dir (str) to see the properties of Str. The following figure
2 How to view the Help document for a property of an object. How to view the capitalize properties of STR, you can use __doc__, using the method of print (srt.capitalize__doc__), as shown in the following figure
3 View Object properties can also use the Help function, using the method of Help (Str.capitalize), the following figure
4. View detailed documentation for an object with help, such as a detailed document that looks at the STR type, can be used with (str). If there is a lot of content in the document, help lists part of all the documentation 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.