<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Megumi221</author_name>
  <author_url>https://blog.hatena.ne.jp/Megumi221/</author_url>
  <blog_title>理想のユーザ・インターフェイスを求めて</blog_title>
  <blog_url>https://ideal-user-interface.hatenablog.com/</blog_url>
  <categories>
    <anon>Python</anon>
  </categories>
  <description>ディレクトリのパスを取得したあとで、そのパスの一部を入れ替えたり、途中のディレクトリ名を取り出したりしたい。そのときにどうすればいいか。 とりあえず、os.pathのメソッドの挙動をいろいろと試してみる。 hoge$ python Python 2.5.2 (r252:60911, Jan 24 2010, 17:44:40) [GCC 4.3.2] on linux2 Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information. &gt;&gt;&gt; import os &gt;&gt;&gt; apath = os.path.join('A'…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fideal-user-interface.hatenablog.com%2Fentry%2F20110203%2F1296732875&quot; title=&quot; ディレクトリのパスを編集したいとき、どうするか - 理想のユーザ・インターフェイスを求めて&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2011-02-03 20:34:35</published>
  <title> ディレクトリのパスを編集したいとき、どうするか</title>
  <type>rich</type>
  <url>https://ideal-user-interface.hatenablog.com/entry/20110203/1296732875</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
