{"title":"\u30c6\u30ad\u30b9\u30c8\u8aad\u307f\u8fbc\u307f@Python","description":"\u30ec\u30ac\u30b7\u30fc\u306a\u66f8\u304d\u65b9 /data/data.txt Hello World! file = open(\"./data/data.txt\") text = file.read() file.close() print(text) Hello World! with open()\u306e\u66f8\u304d\u65b9 # with open()\u69cb\u6587\u3067\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304f\u3068\u3001\u30d5\u30a1\u30a4\u30eb\u306e\u5165\u51fa\u529b\u304c\u3001\u69cb\u6587\u5185\u3060\u3051\u3067\u5b9f\u884c\u3055\u308c\u308b # \u660e\u793a\u7684\u306b\u30d5\u30a1\u30a4\u30eb\u30aa\u30fc\u30d7\u30f3\u304c\u5b8c\u4e86\u3059\u308b\u306e\u3067\u3001\u9589\u3058\u5fd8\u308c\u306e\u5fc3\u914d\u304c\u306a\u3044\u3002 with open(\"./data/data.txt\") as file: print(file.read())","blog_url":"https://tanakahda.hateblo.jp/","blog_title":"tanakahda\u306e\u30d7\u30ed\u30b0\u30e9\u30de\u624b\u5e33","categories":["Python"],"image_url":null,"version":"1.0","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftanakahda.hateblo.jp%2Fentry%2F2022%2F02%2F11%2F123151\" title=\"\u30c6\u30ad\u30b9\u30c8\u8aad\u307f\u8fbc\u307f@Python - tanakahda\u306e\u30d7\u30ed\u30b0\u30e9\u30de\u624b\u5e33\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","width":"100%","url":"https://tanakahda.hateblo.jp/entry/2022/02/11/123151","author_name":"tanakahda","author_url":"https://blog.hatena.ne.jp/tanakahda/","type":"rich","height":"190","published":"2022-02-11 12:31:51","provider_name":"Hatena Blog"}