1. コマンドラインと環境(Python のセットアップと利用)
https://docs.python.org/ja/3/using/cmdline.html
#Pythonのセットアップと利用 ドキュメント
インターフェイスオプション
-c
python -m
-
python <script>
その他のオプション
-i
スクリプトかコマンドを実行した後にインタラクティブモードに入ります。
このオプションはグローバル変数や、スクリプトが例外を発生させるときにそのスタックトレースを調べるのに便利です。
対話モードでスクリプト中の変数にアクセスできるため便利
環境変数 PYTHONINSPECT
-O
Remove assert statements and any code conditional on the value of __debug__.
「assert文を捨てる」(Pythonのassert文)
-OO
-Oに加えてdocstringを捨てる
-u
Force the stdout and stderr streams to be unbuffered. This option has no effect on the stdin stream.
環境変数 PYTHONUNBUFFERED