「オブジェクト名?」でオブジェクトの詳細が表示されます。
In [3]: spam = "eggs"
In [4]: spam?
Type: str
Base Class: <type 'str'>
String Form: eggs
Namespace: Interactive
Length: 4
Docstring:
str(object) -> string
Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
文字列変数の場合はこんな感じです。
In [5]: time.ctime?
Type: builtin_function_or_method
Base Class: <type 'builtin_function_or_method'>
String Form: <built-in function ctime>
Namespace: Interactive
Docstring:
ctime(seconds) -> string
Convert a time in seconds since the Epoch to a string in local time.
This is equivalent to asctime(localtime(seconds)). When the time tuple is
not present, current time as returned by localtime() is used.
モジュールの関数の場合はこんな感じ。time.ctime()?ではなくtime.ctime?として調べてください。
モジュールの場合も調べてみましょう。
In [6] time?
どうなりましたか?ずらずらっと詳細が出たはずです。「q」ボタンでシェルに戻ることができます。