Python
- docstring
- dunder メソッド(
__init__
など) str(1234)
: 文字列生成
Pythonの補完リスト
- PyCharm:
[1,2,3].ins
⇒ 補完リストにinsert
が出る - IPython:
[1,2,3].ins
⇒ 補完リストが出ない
IPython
?
のドキュメント検索で、*
が使える??
でソースが閲覧できる。%lsmagic
: magickコマンドの一覧print(_)
: 直前の結果を表示%cd
がcd
で使えるのは、automagick機能のため。%xmode Verbose
で、詳細なトレースバックを表示%timeit
: 複数回実行して測定してくれる。便利!