<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>F-S</author_name>
  <author_url>https://blog.hatena.ne.jp/F-S/</author_url>
  <blog_title>F-S’s blog</blog_title>
  <blog_url>https://f-s.hateblo.jp/</blog_url>
  <categories>
  </categories>
  <description>はじめに Pythonのファイル書き込みについて備忘録として記載する。 説明 ・open(ファイルパス, w)とwを付けると、書き込み用としてファイルが開かれる。 注意する点は、wを指定した場合はファイルに書かれていた内容は上書きされてしまうため消えてしまう。 また、ファイルが存在していなければ新規作成される。 ・open(ファイルパス, x)とxを付けると、ファイルが存在しない場合のみファイルを作成し書き込む。 ファイルが存在する場合はエラーになる。 ・open(ファイルパス, a)とaを付けると、追記モードでファイルが開かれる。 つまり、上書きではなく末尾に追記できる。 ファイルが存在しな…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ff-s.hateblo.jp%2Fentry%2F2020%2F06%2F22%2F225804&quot; title=&quot;Pythonのファイル書き込み - F-S’s blog&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>2020-06-22 22:58:04</published>
  <title>Pythonのファイル書き込み</title>
  <type>rich</type>
  <url>https://f-s.hateblo.jp/entry/2020/06/22/225804</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
