<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Hakushidango</author_name>
  <author_url>https://blog.hatena.ne.jp/Hakushidango/</author_url>
  <blog_title>くしだんご</blog_title>
  <blog_url>https://hakushidango.hatenablog.com/</blog_url>
  <categories>
    <anon>Python</anon>
  </categories>
  <description>記憶を呼び起こしながら。。 ※※基本的に【詳細！Python 3 入門ノート】の本の内容です。※※ 研究とかする時に、実験データって.txtとか.csv形式で出てくることが多かったです。同じディレクトリに入っている複数のファイルに同じ処理を繰り返して、ファイルを開いては閉じるを自動で行うようにするのですが、今回はその前段階。 1. テキストファイル開きましょう open (file, mode = &quot;r&quot;, encoding = None) # modeは文字通りで「読み込み」「書き込み」とかを指定。# &quot;r&quot;：読みこみ# &quot;w&quot;：書き込み# &quot;a&quot;：書き込み用。ファイルが存在する場合には追記…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhakushidango.hatenablog.com%2Fentry%2F2021%2F03%2F06%2F112708&quot; title=&quot;Python備忘録的に…テキストの読み出し - くしだんご&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>https://cdn-ak.f.st-hatena.com/images/fotolife/H/Hakushidango/20210228/20210228222129.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-03-06 11:27:08</published>
  <title>Python備忘録的に…テキストの読み出し</title>
  <type>rich</type>
  <url>https://hakushidango.hatenablog.com/entry/2021/03/06/112708</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
