dir([object])
- 引数なしの場合:現在のローカルスコープにある名前のリストを返します。
- 引数ありの場合:そのオブジェクトの有効な属性のリストを返します。
dir()
dir(os)
help([object])
組み込みヘルプシステムを起動します。
help(os)
help(os.getcwd)
inspect.getsource(object)
オブジェクトのソースコードを返します。
import inspect
src = inspect.getsource(pytesseract.image_to_string)
print(src)
object?? (Jupyter Notebook)
オブジェクトのソースコードを返します。
pytesseract.image_to_string??
#dir #help #inspect #Python #組み込み関数