{"author_url":"https://blog.hatena.ne.jp/takuya_1st/","url":"https://takuya-1st.hatenablog.jp/entry/2014/08/23/022031","type":"rich","published":"2014-08-23 02:20:31","provider_url":"https://hatena.blog","version":"1.0","blog_url":"https://takuya-1st.hatenablog.jp/","provider_name":"Hatena Blog","height":"190","width":"100%","image_url":null,"categories":["python","subprocess","python\u3067\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8"],"blog_title":"\u305d\u308c\u30de\u30b0\u3067\uff01","title":" python\u3067\u30b3\u30de\u30f3\u30c9\u5b9f\u884c\u3059\u308b\u306b\u306f","description":"\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u4ee3\u308f\u308a\u306bPython\u3067\u66f8\u3044\u3066\u307f\u308b \u30b3\u30de\u30f3\u30c9\u5b9f\u884c\u3092\u3059\u308b \u30b3\u30ec\u3092\u4f7f\u3044\u307e\u3059\u3002 import subprocess import shlex ret = subprocess.check_output(shlex.split(\"date -I\")).decode(\"UTF-8\").strip() print(ret) \u8a73\u3057\u304f\u66f8\u3044\u3066\u3044\u304d\u307e\u3059\u3002 subprocess \u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u4f7f\u3046 subprocess \u306f\u30b3\u30de\u30f3\u30c9\u5b9f\u884c\u304c\u3061\u3087\u3063\u3068\u9762\u5012\u81ed\u3044\u3002 import subprocess input_f = \"player.swf\" output_f = \"radiko.png\" cmd = \"/u\u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakuya-1st.hatenablog.jp%2Fentry%2F2014%2F08%2F23%2F022031\" title=\" python\u3067\u30b3\u30de\u30f3\u30c9\u5b9f\u884c\u3059\u308b\u306b\u306f - \u305d\u308c\u30de\u30b0\u3067\uff01\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_name":"takuya_1st"}