{"provider_name":"Hatena Blog","height":"190","author_name":"rare_Remrin","published":"2017-05-02 18:22:03","width":"100%","image_url":null,"title":"python\u3067\u30d5\u30a1\u30a4\u30eb\u306e\u8aad\u307f\u66f8\u304d","categories":["python","\u30d5\u30a1\u30a4\u30eb\u64cd\u4f5c"],"blog_url":"https://python-remrin.hatenadiary.jp/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpython-remrin.hatenadiary.jp%2Fentry%2F2017%2F05%2F02%2F182203\" title=\"python\u3067\u30d5\u30a1\u30a4\u30eb\u306e\u8aad\u307f\u66f8\u304d - Remrin\u306epython\u653b\u7565\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","version":"1.0","provider_url":"https://hatena.blog","blog_title":"Remrin\u306epython\u653b\u7565\u65e5\u8a18","author_url":"https://blog.hatena.ne.jp/rare_Remrin/","type":"rich","url":"https://python-remrin.hatenadiary.jp/entry/2017/05/02/182203","description":"python\u3067\u30d5\u30a1\u30a4\u30eb\u306e\u8aad\u307f\u66f8\u304d\u3067\u3059\u3002 python3\u3067\u5916\u90e8\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304f\u3068\u304d\u306fcodecs\u30e2\u30b8\u30e5\u30fc\u30eb\u306f\u4e0d\u8981\u3067\u3059\u3002 \u30d1\u30b9\u304c\u901a\u3063\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306bhyaku.txt\u304c\u3042\u308b\u3053\u3068\u3092\u524d\u63d0\u306b\u3057\u3066\u3044\u307e\u3059\u3002 \u306a\u3051\u308c\u3070\u3001\u30e1\u30e2\u5e33\u306a\u3069\u3067\u9069\u5f53\u306b\u8907\u6570\u884c\u306e\u6587\u5b57\u3092\u66f8\u304d\u8fbc\u3093\u3060\u308a\u3067\u3002 \u4eca\u56de\u306f\u767e\u4eba\u4e00\u9996\u3092\u66f8\u304d\u8fbc\u3093\u3060\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u6e96\u5099\u3057\u307e\u3057\u305f\u3002 # coding: utf-8 #\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u306e\u8aad\u307f\u8fbc\u307f with open(\"hyaku.txt\", \"r\") as f: # txt\u5f62\u5f0f\u306e\u8aad\u307f\u8fbc\u307f data = f.read() # \u3072\u3068\u307e\u3068\u307e\u308a\u306e\u30c7\u30fc\u30bf\u3068\u3057\u3066\u8aad\u307f\u8fbc\u3080 data = data.split(\"\\n\") # \u6539\u884c\u30b3\u30fc\u2026"}