python 檢視所有的關鍵字

2022-08-24 09:51:11 字數 966 閱讀 1773

一 檢視所有的關鍵字: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")

檢視python的所有關鍵字

keyword模組記錄了當前python版本的所有關鍵字。使用keyword可以方便的檢視。import keyword 匯入關鍵字模組 print keyword.kwlist 查詢所有關鍵字 print len keyword.kwlist 查詢所有關鍵字一共多少個 python3.7.4所有的...

檢視python關鍵字的方法

簡介 這是檢視python關鍵字的方法的詳細頁面,介紹了和python,python 檢視python關鍵字的方法有關的知識 技巧 經驗,和一些python原始碼等。在python 語言中,通過使用keyword 模組可以檢視你使用的python 版本中的關鍵字,具體使用方法是 1.使用import...

Oracle中檢視系統所有的表和所有的字段

獲取表 select table name from user tables 當前使用者擁有的表 select table name from all tables 所有使用者的表 select table name from dba tables 包括系統表 select table name f...