学習ノート
2021-05-05に更新

Pythonのhelp()メソッド

PythonのReplでhelp(method_name)と入力すると、そのメソッドのマニュアルを表示してくれることがわかった。

# Python 3.6.5 Repl

# replで help(method_name)を入力
>>> help(type)

# 表示
class type(object)
 |  type(object_or_name, bases, dict)
 |  type(object) -> the object's type
 |  type(name, bases, dict) -> a new type
 ...

表示はless形式、上下で移動し、抜けるときはqキー。


mkataoka73
学習ノート
所有者限定モードのためこのボードには投稿できません
コメント
学習ノート