<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Dr_KayAi</author_name>
  <author_url>https://blog.hatena.ne.jp/Dr_KayAi/</author_url>
  <blog_title>Bag of ML Words</blog_title>
  <blog_url>https://dr-kayai.hatenablog.com/</blog_url>
  <categories>
    <anon>Python</anon>
    <anon>ファイル処理</anon>
  </categories>
  <description>Pythonの一ついいところはファイルの取り扱いも簡単ってとこですよね。 このエントリでは、いままでに遭遇したファイルの読み書きとかを まとめていきます(随時更新！） ファイルを開いて閉じる（読み取り、書出し、追記など） 基本のopen(), close() これは組み込み関数ですね。 &gt;&gt;&gt; f_r = open(&quot;hoge.txt&quot;, 'r') # hoge.txtを読み込みで開きます。fはfile objectです &gt;&gt;&gt; f_w = open(&quot;homu.txt&quot;, &quot;w&quot;) # homu.txtを上書き書き込みで開きます &gt;&gt;&gt; f_a = open(&quot;sayaka.txt&quot;, &quot;a…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdr-kayai.hatenablog.com%2Fentry%2F2014%2F02%2F24%2F131634&quot; title=&quot;Python: ファイルとかディレクトリとか（随時更新） - Bag of ML Words&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>2014-02-24 13:16:34</published>
  <title>Python: ファイルとかディレクトリとか（随時更新）</title>
  <type>rich</type>
  <url>https://dr-kayai.hatenablog.com/entry/2014/02/24/131634</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
