{"description":"\u30d5\u30a1\u30a4\u30eb\u306e\u8aad\u307f\u66f8\u304d\u306b\u306fopen()\u3092\u4f7f\u3046\u3002 \u7b2c\u4e00\u5f15\u6570\u306b\u306f\u5bfe\u8c61\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u30d1\u30b9\u3001\u7b2c\u4e8c\u5f15\u6570\u306b\u306f\u30e2\u30fc\u30c9\u3092\u6307\u5b9a\u3059\u308b\u3002 \u7b2c\u4e8c\u5f15\u6570\u306b\u3064\u3044\u3066 \u5f15\u6570 \u30e2\u30fc\u30c9 r \u8aad\u307f\u53d6\u308a w \u66f8\u304d\u8fbc\u307f a \u8ffd\u52a0\u66f8\u304d\u8fbc\u307f \u8aad\u307f\u8fbc\u307f\u3092\u884c\u3046\u5834\u5408 >>> with open('/Users/tamago324/test.txt', r) as f: ... read_data = f.readline() ... >>> read_data 'hello!\\n' with\u3092\u4f7f\u3048\u3070\u3001\u30af\u30ed\u30fc\u30ba\u51e6\u7406\u304c\u5fc5\u8981\u306a\u304f\u306a\u308b\u3002 \u8aad\u307f\u8fbc\u3080\u30e1\u30bd\u30c3\u30c9 read(): \u3059\u3079\u3066\u8aad\u307f\u8fbc\u3080 readline(): \uff11\u884c\u8aad\u307f\u8fbc\u3080 readlines(): \u3059\u3079\u3066\u8aad\u307f\u2026","published":"2017-10-13 23:29:25","categories":["Python"],"title":"\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u8fbc\u307f(\u3068\u66f8\u304d\u8fbc\u307f)","blog_url":"https://tmg0525.hatenadiary.jp/","image_url":null,"author_name":"tmg1998","url":"https://tmg0525.hatenadiary.jp/entry/2017/10/13/232925","version":"1.0","blog_title":"TIL","height":"190","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","width":"100%","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftmg0525.hatenadiary.jp%2Fentry%2F2017%2F10%2F13%2F232925\" title=\"\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u8fbc\u307f(\u3068\u66f8\u304d\u8fbc\u307f) - TIL\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_url":"https://blog.hatena.ne.jp/tmg1998/"}