How do I use the help command in Python?

Source: Internet
Author: User

View all Python's Modules:help ("modules")

See the Modules:help ("Modules Yourstr") with the specified string in all Python modules

See the Common Topics:help ("topics") in Python

View Module:import Os.path + Help ("Os.path") in the Python standard library

View Python built-in types: Help ("List")

To view member methods for Python types: Help ("Str.find")

View Python built-in functions: Help ("open")/help (Open)

See sub-modules in other Python modules: Help (Maplotlib.pyplot) #前提是先要把该模块import进来,

If you are looking at the functions in this submodule, you can also go from the Package import module

For example, to see the scatter function in Pyplot in matplotlib, you need:

Import matplotlib  from Import Pyplot as Plthelp (plt.scatter)

Reference post: http://www.cnblogs.com/laifu/p/3633034.html

(go) How do I use the help command in Python?

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.