<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>suganoo</author_name>
  <author_url>https://blog.hatena.ne.jp/suganoo/</author_url>
  <blog_title>S氏はたまにblogを更新してます</blog_title>
  <blog_url>https://blog.suganoo.net/</blog_url>
  <categories>
    <anon>linux</anon>
    <anon>python</anon>
    <anon>プログラミング</anon>
  </categories>
  <description>open()でファイルを読み込もうとしたら こんなエラーがでた。 file = &quot;zzz_test.txt&quot; with open(file, &quot;r&quot;, &quot;utf-8&quot;) as f_r: print f_r.readline() Traceback (most recent call last): File &quot;zzz_opentest.py&quot;, line 3, in &lt;module&gt; with open(file, &quot;r&quot;, &quot;utf-8&quot;) as f_r: TypeError: an integer is required バージョンは2.7を使っている。 Python 2.7.14結論から言…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.suganoo.net%2Fentry%2F2018%2F07%2F25%2F143728&quot; title=&quot;【python】組み込み関数open()でTypeError: an integer is required - 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>https://www21.a8.net/svt/bgt?aid=180723934840&amp;wid=001&amp;eno=01&amp;mid=s00000018311002004000&amp;mc=1</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-07-25 14:37:28</published>
  <title>【python】組み込み関数open()でTypeError: an integer is required</title>
  <type>rich</type>
  <url>https://blog.suganoo.net/entry/2018/07/25/143728</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
