Python view keywords and help information

Source: Internet
Author: User

1. View all Keywords

>>> Help (' keywords ') are here a list of the Python keywords. Enter any keyword to get more help.              False def if Raisenone del Import                  Returntrue Elif in Tryand else is Whileas except Lambda Withassert finally non            Local yieldbreak for Notclass from Orcontinue Global pass>>> Import keyword>>> keyword.iskeyword (' if ') true>>> Keyword.kwlis t[' False ', ' None ', ' True ', ' and ', ' as ', ' assert ', ' Break ', ' class ', ' Continue ', ' Def ', ' del ', ' elif ', ' Else ', ' except ', ' F ' Inally ', ' for ', ' from ', ' global ', ' if ', ' import ', ' in ', ' was ', ' lambda ', ' nonlocal ', ' not ', ' or ', ' Pass ', ' raise ', ' return ' , ' Try ', ' while ', ' with ', ' yield ']>>> Keyword.iskeyword (' of ') false>>> 

  

2. See other Help

    • Help (' modules ') # View all Python modules
    • Help (' Modules B ') # View Python for all modules that contain the specified string modules
    • Help (' Topics ') # View common topics in Python
    • Help (' Os.path ') # View the module in the Python standard library
    • Help (' list ') # View Python built-in types
    • Heop (' Str.find ') # View member methods for Python types
    • Help (' Open ') # View Python built-in functions

Python view keywords and help information

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.