「os.system()」の版間の差分
提供: Wikiducca
(ページの作成: PythonでUNIXのコマンドを使う。 <pre> >>> import os >>> os.system("uptime") 21:14:32 up 1 day, 5:26, 1 user, load average: 0.00, 0.00, 0.00 0 >>> </pre> [[Category...) |
細 (1版) |
(相違点なし)
|
2011年10月14日 (金) 02:23時点における版
PythonでUNIXのコマンドを使う。
>>> import os >>> os.system("uptime") 21:14:32 up 1 day, 5:26, 1 user, load average: 0.00, 0.00, 0.00 0 >>>