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