<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>lingvisticae</author_name>
  <author_url>https://blog.hatena.ne.jp/lingvisticae/</author_url>
  <blog_title>惰力飛行</blog_title>
  <blog_url>https://livingdead0812.hatenablog.com/</blog_url>
  <categories>
    <anon>python</anon>
  </categories>
  <description>たまには何か書こう。結構前に書いた、Pythonで英文の語数を数えるプログラム。wordlist = [] datafile = open('filename.txt') counter = 0 for line in datafile: line = line.rstrip() words = line.split (' ') wordlist += words for word in wordlist: counter += 1 print counterこれをカウントしたい英文テキストファイルと同じディレクトリに置いて実行すると語数が出ます。それだけ。はてダでインデントを反映する方法を調…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Flivingdead0812.hatenablog.com%2Fentry%2F20121020%2F1350714999&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2012-10-20 15:36:39</published>
  <title>Pythonで英文の語数を数えるプログラム</title>
  <type>rich</type>
  <url>https://livingdead0812.hatenablog.com/entry/20121020/1350714999</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
