2012-03-13 メモ: PythonのIDLEでプログラムにコマンドライン引数を渡す方法 Python コマンドプロンプトからidle.pyを実行すると、引数を渡せます。idle.pyは、{PYTHON_HOME}\Lib\idlelib\にあります。 python idle.py -r scriptname.py arg1 arg2 arg3 環境 Windows 7(64bit)、公式のインストーラでインストールしたPython 2.7.2 参考(機械翻訳ですが、原文が英語ではないようなので、そのままリンク) http://jp.techerald.com/page/cuando-se-ejecuta-un-script-de-python-en-idle-hay-una-forma-de-pasar-argumentos-de-lnea-de-comandos-args.html