<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>uc_ebuc</author_name>
  <author_url>https://blog.hatena.ne.jp/uc_ebuc/</author_url>
  <blog_title>雑多なブログ</blog_title>
  <blog_url>https://cufl.hateblo.jp/</blog_url>
  <categories>
    <anon>python3</anon>
  </categories>
  <description>今日はpythonのCSV読み書きについて学んだ。 ファイルの書き込み open()で、対象ファイルのファイルオブジェクトを取得し、 DictWriter()の第一引数に指定する。 fieldnamesにはCSVの列名のリストを渡す。 wirtehader()でヘッダ行をCSVに書き込む。 writerow()で、CSVの行を書き込む。 import csv with open('test.csv', 'w') as csv_file: field_names = ['Name', 'HP'] writer = csv.DictWriter(csv_file, fieldnames=field…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcufl.hateblo.jp%2Fentry%2F2019%2F06%2F17%2F232335&quot; title=&quot;python3: CSV書き込み&amp;amp;読み込み - 雑多なブログ&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>2019-06-17 23:23:35</published>
  <title>python3: CSV書き込み&amp;読み込み</title>
  <type>rich</type>
  <url>https://cufl.hateblo.jp/entry/2019/06/17/232335</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
