{"height":"190","categories":["Python"],"author_url":"https://blog.hatena.ne.jp/sz_dr/","provider_url":"https://hatena.blog","published":"2016-09-01 01:01:05","blog_url":"https://www.szdrblog.info/","provider_name":"Hatena Blog","image_url":null,"title":"python3\u306e\u30d1\u30b9\u540d\u64cd\u4f5c\u3044\u308d\u3044\u308d","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.szdrblog.info%2Fentry%2F2016%2F09%2F01%2F010105\" title=\"python3\u306e\u30d1\u30b9\u540d\u64cd\u4f5c\u3044\u308d\u3044\u308d - \u4eba\u9593\u3060\u3063\u305f\u3089\u8003\u3048\u3066\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","version":"1.0","url":"https://www.szdrblog.info/entry/2016/09/01/010105","author_name":"sz_dr","description":"\u3053\u306e\u8a18\u4e8b\u306f\u4f55\uff1f python\u3067\u30d1\u30b9\u540d\u3092\u6587\u5b57\u5217\u64cd\u4f5c\u3059\u308b\u3068\u304d\u306fos.path\u4ee5\u4e0b\u306e\u95a2\u6570\u3092\u7528\u3044\u307e\u3059\uff0e \u63d0\u4f9b\u3055\u308c\u3066\u3044\u308b\u95a2\u6570\u304c\u3044\u304f\u3064\u304b\u3042\u308a\u982d\u306b\u5165\u3063\u3066\u3044\u306a\u304b\u3063\u305f\u306e\u3067\uff0c\u5b9f\u969b\u306b\u52d5\u304b\u3057\u3066\u307f\u305f\u3068\u304d\u306e\u30e1\u30e2\u3067\u3059\uff0e \u30bd\u30fc\u30b9\u30b3\u30fc\u30c9 import os test_path = \"hoge/piyo/fuga.ext\" print(test_path) print(\"os.path.basename:\", os.path.basename(test_path)) print(\"os.path.dirname:\", os.path.dirname(test_path)) print(\"os.path.split:\", os.p\u2026","type":"rich","blog_title":"\u4eba\u9593\u3060\u3063\u305f\u3089\u8003\u3048\u3066"}