2011-10-19から1日間の記事一覧

platformモジュールでOSを判定する

Pythonで動作OSの判定をどうやるか探していたら、標準モジュールのplatformを使えという情報をStackOverFlowで見つけた。 Reliably detect Windows in Python - Stack Overflow >>> import platform >>> platform.system() 'Windows' 簡単ですね。 15.13. pl…