{"url":"https://coffee-guhaw.hateblo.jp/entry/2024/11/07/000000","blog_url":"https://coffee-guhaw.hateblo.jp/","published":"2024-11-07 00:00:00","type":"rich","width":"100%","author_name":"coffee_kabu","author_url":"https://blog.hatena.ne.jp/coffee_kabu/","description":"Python\u3067\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\uff08\u30d5\u30a9\u30eb\u30c0\uff09\u3092\u4f5c\u6210\u3059\u308bmkdir, makedirs | note.nkmk.meos\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4f7f\u3046 import os os.mkdir\u306b\u4f5c\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u540d\u3092\u6e21\u305b\u3070OK \u518d\u8d77\u7684\u306b\u3001\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306f\u4f5c\u3063\u3066\u304f\u308c\u306a\u3044 new_dir_path = 'data/temp/new-dir' os.mkdir(new_dir_path) \u518d\u8d77\u7684\u306b\u4f5c\u3063\u3066\u304f\u308c\u308b\u306e\u306f\u3001os.makedirsexist_ok=True \u3068\u3044\u3046\u30aa\u30d7\u30b7\u30e7\u30f3\u306f\u3001\u3059\u3067\u306b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u5b58\u5728\u3057\u3066\u308b\u5834\u5408\u306b\u3067\u3082\u30a8\u30e9\u30fc\u306b\u306a\u3089\u306a\u3044\u3088\u3046\u306b\u3059\u308b\u30aa\u30d7\u30b7\u30e7\u30f3 new_dir_path_recursive = 'data/temp\u2026","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcoffee-guhaw.hateblo.jp%2Fentry%2F2024%2F11%2F07%2F000000\" title=\"\u3010python3\u3011\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u308b\u30b3\u30de\u30f3\u30c9 - 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>","height":"190","version":"1.0","categories":["python"],"title":"\u3010python3\u3011\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u308b\u30b3\u30de\u30f3\u30c9","image_url":null,"blog_title":"Bus error\u3068Segmentation fault\u306b\u56f0\u3063\u305f\u3089\u898b\u308b\u30d6\u30ed\u30b0","provider_url":"https://hatena.blog"}