{"blog_url":"https://coffee-guhaw.hateblo.jp/","title":"\u3010python3\u3011python\u306e\u4e2d\u304b\u3089\u30b7\u30a7\u30eb\u30b3\u30de\u30f3\u30c9\u3067sed\u3067\u7f6e\u63db\u3057\u305f\u3044\u3068\u304d","image_url":null,"provider_name":"Hatena Blog","height":"190","blog_title":"Bus error\u3068Segmentation fault\u306b\u56f0\u3063\u305f\u3089\u898b\u308b\u30d6\u30ed\u30b0","type":"rich","version":"1.0","categories":["python"],"url":"https://coffee-guhaw.hateblo.jp/entry/2024/12/12/000000","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcoffee-guhaw.hateblo.jp%2Fentry%2F2024%2F12%2F12%2F000000\" title=\"\u3010python3\u3011python\u306e\u4e2d\u304b\u3089\u30b7\u30a7\u30eb\u30b3\u30de\u30f3\u30c9\u3067sed\u3067\u7f6e\u63db\u3057\u305f\u3044\u3068\u304d - Bus error\u3068Segmentation fault\u306b\u56f0\u3063\u305f\u3089\u898b\u308b\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"python\u3067\u3001\u3042\u308b\u30d5\u30a1\u30a4\u30eb\u306e\u4e2d\u8eab\u3092\u66f8\u304d\u63db\u3048\u308b\u3053\u3068\u3092\u3042\u308c\u3053\u308c\u3084\u3063\u3066\u3044\u305f\u30b0\u30b0\u308b\u3068with open\u3068\u304b\u3067\u4e00\u5ea6\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u3044\u3066 \u30d5\u30a1\u30a4\u30eb\u306e\u4e2d\u8eab\u3092\u66f8\u304d\u63db\u3048\u3066\u3001\u3082\u3046\u4e00\u5ea6\u66f8\u304d\u51fa\u3059\u307f\u305f\u3044\u306a\u3053\u3068\u3092\u3057\u3066\u3044\u308b\u8a18\u4e8b\u304c\u3068\u3066\u3082\u591a\u3044\u305d\u308c\u3092\u771f\u4f3c\u3057\u3066\u3084\u3063\u3066\u307f\u308b\u3068\u3001\u306a\u305c\u304b\u4fee\u6b63\u5f8c\u306e\u30d5\u30a1\u30a4\u30eb\u3068\u5143\u306e\u30d5\u30a1\u30a4\u30eb\u3082\u540c\u6642\u306b\u4fee\u6b63\u3055\u308c\u308b (python\u306e\u30b3\u30d4\u30fc\u304c\u60aa\u3055\u3057\u3066\u308b\uff1f)\u304b\u306a\u308a\u6642\u9593\u3092\u304b\u3051\u305f\u3051\u3069\u3001\u539f\u56e0\u304c\u308f\u304b\u3089\u306a\u304b\u3063\u305f\u306e\u3067\u5225\u306e\u65b9\u6cd5\u3067\u30fb\u30fb\u30fb\u3053\u3053\u306f\u53e4\u306esed\u3092subprocess\u304b\u3089\u547c\u3073\u51fa\u3057\u3066\u4f7f\u3046 \u53c2\u8003\u306b\u3057\u305f\u30da\u30fc\u30b8 Python\u3067\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u306e\u5185\u5bb9\u3092\u7f6e\u63db\u3059\u308b6\u3064\u306e\u65b9\u6cd5 import subprocess subprocess.run('sed\u2026","author_url":"https://blog.hatena.ne.jp/coffee_kabu/","published":"2024-12-12 00:00:00","width":"100%","provider_url":"https://hatena.blog","author_name":"coffee_kabu"}