python 查看所有的關鍵字


一 查看所有的關鍵字:help("keywords")

復制代碼
Here is a list of the Python keywords.  Enter any keyword to get more help.

and                 elif                import              return
as                  else                in                  try
assert              except              is                  while
break               finally             lambda              with
class               for                 not                 yield
continue            from                or
def                 global              pass
del                 if                  raise
復制代碼

 

 

二 其他

查看python所有的modules:help("modules")

單看python所有的modules中包含指定字符串的modules: help("modules yourstr")

查看python中常見的topics: help("topics")

查看python標准庫中的module:import os.path + help("os.path")

查看python內置的類型:help("list")

查看python類型的成員方法:help("str.find") 

查看python內置函數:help("open")


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM