<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>monajiro</author_name>
  <author_url>https://blog.hatena.ne.jp/monajiro/</author_url>
  <blog_title>日記</blog_title>
  <blog_url>https://tnamao.hatenablog.com/</blog_url>
  <categories>
    <anon>Python</anon>
  </categories>
  <description>Pythonのファイル操作は、ビルトイン関数を通じてファイルにアクセスします。 infile = open('input.txt', 'r') outfile = open('output.txt', 'w')Input/Outputで共通の関数ですが、2番目の引数が異なり、ここでモードを指定します。 ファイルを開いたあとは、infile.read()やoutput.write()でデータの読み書きをします。Unicodeの説明にも書きましたが、JavaのStream/Reader/Writerにあったような文字コードの指定は 存在せず、書きだす時には output.write(u'テスト'.…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftnamao.hatenablog.com%2Fentry%2F20100317%2F1268831817&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>2010-03-17 22:16:57</published>
  <title> ファイルの読み書き</title>
  <type>rich</type>
  <url>https://tnamao.hatenablog.com/entry/20100317/1268831817</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
