{"id":302,"date":"2014-09-25T12:40:49","date_gmt":"2014-09-25T03:40:49","guid":{"rendered":"http:\/\/chidipy.jpn.com\/topics\/?p=302"},"modified":"2014-09-25T12:40:49","modified_gmt":"2014-09-25T03:40:49","slug":"python3%e6%96%87%e5%ad%97%e3%82%b3%e3%83%bc%e3%83%89%e3%81%ae%e5%88%a4%e5%ae%9a","status":"publish","type":"post","link":"https:\/\/chidipy.jpn.com\/topics\/?p=302","title":{"rendered":"[python3]\u6587\u5b57\u30b3\u30fc\u30c9\u306e\u5224\u5b9a"},"content":{"rendered":"<p>python3\u306b\u306a\u3063\u3066\u304b\u3089\u6587\u5b57\u5217\u578b\u306fUTF-8\u306b\u306a\u3063\u305f\u305f\u3081\u3001\u6587\u5b57\u30b3\u30fc\u30c9\u4e0d\u660e\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u3044\u305f\u308a\u3001\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f\u308a\u3059\u308b\u3068read()\u3067UnicodeDecodeError\u306b\u306a\u3063\u3066\u3057\u307e\u3046\u3002\uff08\u4f8b\u3048\u3070\u3001EUC\u306e\u5909\u6570\u30c7\u30fc\u30bf\u3092\u7121\u5909\u63db\u3067UTF-8\u3092\u671f\u5f85\u3059\u308b\u5909\u6570\u306b\u4ee3\u5165\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u306a\u3044\uff09<\/p>\n<pre><code>&gt;&gt;&gt; fhinput = open(\"eucsample.txt\",\"r\")\n&gt;&gt;&gt; fhinput.read()\nTraceback (most recent call last):\n\u00a0 File \"&lt;stdin&gt;\", line 1, in &lt;module&gt;\n\u00a0 File \"\/usr\/local\/python3\/lib\/python3.4\/codecs.py\", line 313, in decode\n\u00a0\u00a0\u00a0 (result, consumed) = self._buffer_decode(data, self.errors, final)\n<span style=\"background-color: #ffff00;\">UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa4 in position 0: invalid start byte<\/span>\n&gt;&gt;&gt; fhinput.close()\n<\/code><\/pre>\n<p>\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304f\u969b\u306b\u30d0\u30a4\u30ca\u30ea\u30e2\u30fc\u30c9\u3067\u958b\u3051\u3070read()\u30e1\u30bd\u30c3\u30c9\u306e\u578b\u306f\u30d0\u30a4\u30ca\u30ea(bytes)\u578b\u306b\u306a\u308b\u306e\u3067\u3001python2\u306e\u9803\u3068\u540c\u69d8\u306b\u30d5\u30a1\u30a4\u30eb\u306e\u5185\u5bb9\u3092\u5909\u6570\u306b\u683c\u7d0d\u3067\u304d\u308b\u306e\u3067\u7dcf\u5f53\u308a\u3067decode(\u6587\u5b57\u30b3\u30fc\u30c9\u5909\u63db\uff09\u306b\u6311\u6226\u3067\u304d\u308b\u3002\u4ee5\u4e0b\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u306f\u6587\u5b57\u30b3\u30fc\u30c9EUC\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u30d0\u30a4\u30ca\u30ea\u3067\u958b\u3044\u3066\u7dcf\u5f53\u308a\u6587\u5b57\u30b3\u30fc\u30c9\u5909\u63db\u3092\u8a66\u307f\u305f\u4f8b\u3002<\/p>\n<pre><code>&gt;&gt;&gt; fhinput = open(\"eucsample.txt\",\"r<span style=\"background-color: #ffff00;\"><strong>b<\/strong><\/span>\")\n&gt;&gt;&gt; htmlbytes=fhinput.read()\n&gt;&gt;&gt; htmlbytes\nb'\\xa4\\xa2\\xa4\\xa2\\xa4\\xa2\\xa4\\xa2\\xa4\\xa2\\xa4\\xa2\\xa4\\xa2\\xa4\\xa2\\xa4\\xa2\\xa4\\xa2\\xa4\\xa2\\xa4\\xa2\\xa4\\xa2\\xa4\\xa2\\xa4\\xa2\\xa4\\xa2\\xa4\\xa2\\xa4\\xa2\\xa4\\xa2\\xa4\\xa2\\xa4\\xa2\\xa4\\xa2\\xa4\\xa2\\xa4\\xa2\\n\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\n\\xa4\\xa6\\xa4\\xa6\\xa4\\xa6\\xa4\\xa6\\xa4\\xa6\\xa4\\xa6\\xa4\\xa6\\xa4\\xa6\\xa4\\xa6\\xa4\\xa6\\xa4\\xa6\\xa4\\xa6\\xa4\\xa6\\xa4\\xa6\\xa4\\xa6\\xa4\\xa6\\xa4\\xa6\\xa4\\xa6\\xa4\\xa6\\xa4\\xa6\\xa4\\xa6\\xa4\\xa8\\n\\xa4\\xa8\\xa4\\xa8\\xa4\\xa8\\xa4\\xa8\\xa4\\xa8\\xa4\\xa8\\xa4\\xa8\\xa4\\xa8\\xa4\\xa8\\xa4\\xa8\\xa4\\xa8\\xa4\\xa8\\xa4\\xa8\\xa4\\xa8\\n\\xc8\\xf8\\xa4\\xaa\\xa4\\xaa\\xa4\\xaa\\xa4\\xaa\\xa4\\xaa\\xa4\\xaa\\xa4\\xaa\\xa4\\xaa\\xa4\\xaa\\xa4\\xaa\\xa4\\xaa\\xa4\\xaa\\xa4\\xaa\\xa4\\xaa\\xa4\\xaa'\n&gt;&gt;&gt; htmlbytes.decode('shift_jisx0213')\n'\uff64\uff62\uff64\uff62\uff64\uff62\uff64\uff62\uff64\uff62\uff64\uff62\uff64\uff62\uff64\uff62\uff64\uff62\uff64\uff62\uff64\uff62\uff64\uff62\uff64\uff62\uff64\uff62\uff64\uff62\uff64\uff62\uff64\uff62\uff64\uff62\uff64\uff62\uff64\uff62\uff64\uff62\uff64\uff62\uff64\uff62\uff64\uff62\\n\uff64\uff64\uff64\uff64\uff64\uff64\uff64\uff64\uff64\uff64\uff64\uff64\uff64\uff64\uff64\uff64\uff64\uff64\uff64\uff64\uff64\uff64\uff64\uff64\uff64\uff64\uff64\uff64\uff64\uff64\uff64\uff64\uff64\uff64\uff64\uff64\uff64\uff64\uff64\uff64\uff64\uff64\uff64\uff64\uff64\uff64\uff64\uff64\uff64\uff64\uff64\uff64\\n\uff64\uff66\uff64\uff66\uff64\uff66\uff64\uff66\uff64\uff66\uff64\uff66\uff64\uff66\uff64\uff66\uff64\uff66\uff64\uff66\uff64\uff66\uff64\uff66\uff64\uff66\uff64\uff66\uff64\uff66\uff64\uff66\uff64\uff66\uff64\uff66\uff64\uff66\uff64\uff66\uff64\uff66\uff64\uff68\\n\uff64\uff68\uff64\uff68\uff64\uff68\uff64\uff68\uff64\uff68\uff64\uff68\uff64\uff68\uff64\uff68\uff64\uff68\uff64\uff68\uff64\uff68\uff64\uff68\uff64\uff68\uff64\uff68\\n\uff88?\uff6a\uff64\uff6a\uff64\uff6a\uff64\uff6a\uff64\uff6a\uff64\uff6a\uff64\uff6a\uff64\uff6a\uff64\uff6a\uff64\uff6a\uff64\uff6a\uff64\uff6a\uff64\uff6a\uff64\uff6a\uff64\uff6a'\n&gt;&gt;&gt; htmlbytes.decode('iso2022jp')\nTraceback (most recent call last):\n\u00a0 File \"&lt;stdin&gt;\", line 1, in &lt;module&gt;\nUnicodeDecodeError: 'iso2022_jp' codec can't decode byte 0xa4 in position 0: illegal multibyte sequence\n&gt;&gt;&gt; htmlbytes.decode('euc_jisx0213')\n'\u3042\u3042\u3042\u3042\u3042\u3042\u3042\u3042\u3042\u3042\u3042\u3042\u3042\u3042\u3042\u3042\u3042\u3042\u3042\u3042\u3042\u3042\u3042\u3042\\n\u3044\u3044\u3044\u3044\u3044\u3044\u3044\u3044\u3044\u3044\u3044\u3044\u3044\u3044 \u3044\u3044\u3044\u3044\u3044\u3044\u3044\u3044\u3044\u3044\u3044\u3044\\n\u3046\u3046\u3046\u3046\u3046\u3046\u3046\u3046\u3046\u3046\u3046\u3046\u3046\u3046\u3046\u3046\u3046\u3046\u3046\u3046\u3046\u3048\\n\u3048\u3048\u3048\u3048\u3048\u3048\u3048\u3048\u3048\u3048\u3048\u3048\u3048\u3048\\n\u5c3e\u304a\u304a\u304a\u304a\u304a\u304a\u304a\u304a\u304a\u304a\u304a\u304a\u304a\u304a\u304a'<\/code><\/pre>\n<p>EUC\u306e\u306f\u305a\u306a\u306e\u306bshift_jisx0213\u3067\u6210\u529f\u3057\u3066\u3057\u307e\u3063\u3066\u307e\u3059\u304c\u30fb\u30fb\u30fb<br \/>\n\u7dcf\u5f53\u308a\u3067\u6587\u5b57\u30b3\u30fc\u30c9\u5909\u63db\u306b\u6311\u6226\u3059\u308b\u30b3\u30fc\u30c9\u306e\u4f8b\u306f\u4ee5\u4e0b\u3002<\/p>\n<pre><code>def conv_charset_file(inputfile,outputfile):\n\u00a0\u00a0\u00a0 try:\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 fhinput = open(inputfile,\"rb\")\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 htmlbytes = fhinput.read()\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 fhinput.close()\n\u00a0\u00a0\u00a0 except:\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 return None,\"\u6587\u5b57\u30b3\u30fc\u30c9\u5909\u63db\u3067\u304d\u307e\u305b\u3093\"\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0\n\u00a0\u00a0\u00a0 codelst = ('utf_8','euc_jisx0213','shift_jisx0213','iso2022jp','iso2022_jp_ext','iso2022_kr','big5','big5hkscs','johab','euc_kr','utf_16','iso8859_15','latin_1','ascii')\n\u00a0\u00a0 \u00a0\n\u00a0\u00a0\u00a0 code = \"\"\n\u00a0\u00a0\u00a0 for encoding in codelst:\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 try:\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 htmlstr = htmlbytes.decode(encoding) # bytes\u6587\u5b57\u5217\u304b\u3089\u6307\u5b9a\u6587\u5b57\u30b3\u30fc\u30c9\u306e\u6587\u5b57\u5217\u306b\u5909\u63db\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 htmlstr = htmlstr.encode('utf-8') # uft-8\u6587\u5b57\u5217\u306b\u5909\u63db\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 code=encoding\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 break\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 except:\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 pass\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0\n\u00a0\u00a0\u00a0 if code == \"\" :\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 return None,\"\u6587\u5b57\u30b3\u30fc\u30c9\u5909\u63db\u3067\u304d\u307e\u305b\u3093\"\n\u00a0\u00a0 \u00a0\n\u00a0\u00a0\u00a0 try:\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 fhwrite = open(outputfile,\"w\")\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 fhwrite.write(htmlstr)\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 fhwrite.close()\n\u00a0\u00a0\u00a0 except:\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 return None,\"\u6587\u5b57\u30b3\u30fc\u30c9\u5909\u63db\u3067\u304d\u307e\u305b\u3093\"\n\u00a0\u00a0 \u00a0\n\u00a0\u00a0\u00a0 return code,None<\/code><\/pre>\n<p>\u3061\u306a\u307f\u306bHTML\u3067\u3042\u308c\u3070\u30d5\u30a1\u30a4\u30eb\u5185\u306b\u6587\u5b57\u30b3\u30fc\u30c9\u304c\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u305d\u3053\u304b\u3089\u6587\u5b57\u30b3\u30fc\u30c9\u3092\u62fe\u3063\u3066\u3053\u308c\u3070\u3088\u3044\u306e\u3067\u306f\u601d\u3063\u3066\u3057\u307e\u3046\u304c\u3001\u305d\u3046\u306f\u3046\u307e\u304f\u3044\u304b\u306a\u3044\u3002\u5185\u5bb9\u3092\u691c\u7d22\u3059\u308b\u306b\u306f\u5909\u6570\u306b\u683c\u7d0d\u3057\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u304c\u3001\u30d0\u30a4\u30ca\u30ea\u578b\u3067\u306f\u306a\u3044\u3068\u683c\u7d0d\u3067\u304d\u306a\u3044\u3002\u307e\u305f\u30d0\u30a4\u30ca\u30ea\u578b\u306f\u6587\u5b57\u5217\u6bd4\u8f03\u3067\u304d\u306a\u3044\u306e\u3067\u3001\u6587\u5b57\u5217\u578b\u306b\u5909\u63db\u3057\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u304c\u3001decode\u305b\u305a\u306b\u6587\u5b57\u5217\u306b\u5909\u63db\u3059\u308b\u3068\uff11\uff16\u9032\u6570\u8868\u8a18\u3092\u3055\u3089\u306b\u300c\\\u300d\u3092\u30a8\u30b9\u30b1\u30fc\u30d7\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u5168\u304f\u5225\u7269\u306e\u6587\u5b57\u5217\u3068\u5316\u3057\u3066\u3057\u307e\u3063\u3066\u3044\u308b<\/p>\n<pre>\u00a0&gt;&gt;&gt; fhinput = open(\"eucsample.txt\",\"rb\")\n&gt;&gt;&gt; htmlbytes=fhinput.read()\n&gt;&gt;&gt; htmlbytes\nb'\\xa4\\xa2\\xa4\\xa2\\xa4\\xa2\\xa4\\xa2\\xa4\\xa2\\xa4\\xa2\\xa4\\xa2\\xa4\\xa2\\xa4\\xa2\\xa4\\xa2\\xa4\\xa2\\xa4\\xa2\\xa4\\xa2\\xa4\\xa2\\xa4\\xa2\\xa4\\xa2\\xa4\\xa2\\xa4\\xa2\\xa4\\xa2\\xa4\\xa2\\xa4\\xa2\\xa4\\xa2\\xa4\\xa2\\xa4\\xa2\\n\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\xa4\\n\\xa4\\xa6\\xa4\\xa6\\xa4\\xa6\\xa4\\xa6\\xa4\\xa6\\xa4\\xa6\\xa4\\xa6\\xa4\\xa6\\xa4\\xa6\\xa4\\xa6\\xa4\\xa6\\xa4\\xa6\\xa4\\xa6\\xa4\\xa6\\xa4\\xa6\\xa4\\xa6\\xa4\\xa6\\xa4\\xa6\\xa4\\xa6\\xa4\\xa6\\xa4\\xa6\\xa4\\xa8\\n\\xa4\\xa8\\xa4\\xa8\\xa4\\xa8\\xa4\\xa8\\xa4\\xa8\\xa4\\xa8\\xa4\\xa8\\xa4\\xa8\\xa4\\xa8\\xa4\\xa8\\xa4\\xa8\\xa4\\xa8\\xa4\\xa8\\xa4\\xa8\\n\\xc8\\xf8\\xa4\\xaa\\xa4\\xaa\\xa4\\xaa\\xa4\\xaa\\xa4\\xaa\\xa4\\xaa\\xa4\\xaa\\xa4\\xaa\\xa4\\xaa\\xa4\\xaa\\xa4\\xaa\\xa4\\xaa\\xa4\\xaa\\xa4\\xaa\\xa4\\xaa'\n&gt;&gt;&gt; import re\n&gt;&gt;&gt; regcheck=re.compile('content=\"text\/html; *?charset=\"*(.+?)\"',re.I|re.S|re.M)\n&gt;&gt;&gt; regcheck.search(htmlbytes)\nTraceback (most recent call last):\n\u00a0 File \"&lt;stdin&gt;\", line 1, in &lt;module&gt;\n<span style=\"background-color: #ffff00;\">TypeError: can't use a string pattern on a bytes-like object<\/span>\n&gt;&gt;&gt; regcheck.search(str(htmlbytes))\n<span style=\"background-color: #ffff00;\">&gt;&gt;&gt;<\/span>\n&gt;&gt;&gt; str(htmlbytes)\n\"b'\\\\xa4\\\\xa2\\\\xa4\\\\xa2\\\\xa4\\\\xa2\\\\xa4\\\\xa2\\\\xa4\\\\xa2\\\\xa4\\\\xa2\\\\xa4\\\\xa2\\\\xa4\\\\xa2\\\\xa4\\\\xa2\\\\xa4\\\\xa2\\\\xa4\\\\xa2\\\\xa4\\\\xa2\\\\xa4\\\\xa2\\\\xa4\\\\xa2\\\\xa4\\\\xa2\\\\xa4\\\\xa2\\\\xa4\\\\xa2\\\\xa4\\\\xa2\\\\xa4\\\\xa2\\\\xa4\\\\xa2\\\\xa4\\\\xa2\\\\xa4\\\\xa2\\\\xa4\\\\xa2\\\\xa4\\\\xa2\\\\n\\\\xa4\\\\xa4\\\\xa4\\\\xa4\\\\xa4\\\\xa4\\\\xa4\\\\xa4\\\\xa4\\\\xa4\\\\xa4\\\\xa4\\\\xa4\\\\xa4\\\\xa4\\\\xa4\\\\xa4\\\\xa4\\\\xa4\\\\xa4\\\\xa4\\\\xa4\\\\xa4\\\\xa4\\\\xa4\\\\xa4\\\\xa4\\\\xa4\\\\xa4\\\\xa4\\\\xa4\\\\xa4\\\\xa4\\\\xa4\\\\xa4\\\\xa4\\\\xa4\\\\xa4\\\\xa4\\\\xa4\\\\xa4\\\\xa4\\\\xa4\\\\xa4\\\\xa4\\\\xa4\\\\xa4\\\\xa4\\\\xa4\\\\xa4\\\\xa4\\\\xa4\\\\n\\\\xa4\\\\xa6\\\\xa4\\\\xa6\\\\xa4\\\\xa6\\\\xa4\\\\xa6\\\\xa4\\\\xa6\\\\xa4\\\\xa6\\\\xa4\\\\xa6\\\\xa4\\\\xa6\\\\xa4\\\\xa6\\\\xa4\\\\xa6\\\\xa4\\\\xa6\\\\xa4\\\\xa6\\\\xa4\\\\xa6\\\\xa4\\\\xa6\\\\xa4\\\\xa6\\\\xa4\\\\xa6\\\\xa4\\\\xa6\\\\xa4\\\\xa6\\\\xa4\\\\xa6\\\\xa4\\\\xa6\\\\xa4\\\\xa6\\\\xa4\\\\xa8\\\\n\\\\xa4\\\\xa8\\\\xa4\\\\xa8\\\\xa4\\\\xa8\\\\xa4\\\\xa8\\\\xa4\\\\xa8\\\\xa4\\\\xa8\\\\xa4\\\\xa8\\\\xa4\\\\xa8\\\\xa4\\\\xa8\\\\xa4\\\\xa8\\\\xa4\\\\xa8\\\\xa4\\\\xa8\\\\xa4\\\\xa8\\\\xa4\\\\xa8\\\\n\\\\xc8\\\\xf8\\\\xa4\\\\xaa\\\\xa4\\\\xaa\\\\xa4\\\\xaa\\\\xa4\\\\xaa\\\\xa4\\\\xaa\\\\xa4\\\\xaa\\\\xa4\\\\xaa\\\\xa4\\\\xaa\\\\xa4\\\\xaa\\\\xa4\\\\xaa\\\\xa4\\\\xaa\\\\xa4\\\\xaa\\\\xa4\\\\xaa\\\\xa4\\\\xaa\\\\xa4\\\\xaa'\"\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>python3\u306b\u306a\u3063\u3066\u304b\u3089\u6587\u5b57\u5217\u578b\u306fUTF-8\u306b\u306a\u3063\u305f\u305f\u3081\u3001\u6587\u5b57\u30b3\u30fc\u30c9\u4e0d\u660e\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u3044\u305f\u308a\u3001\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f\u308a\u3059\u308b\u3068read()\u3067UnicodeDecodeError\u306b\u306a\u3063\u3066\u3057\u307e\u3046\u3002\uff08\u4f8b\u3048\u3070\u3001EUC\u306e\u5909\u6570\u30c7\u30fc\u30bf\u3092\u7121\u5909 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/chidipy.jpn.com\/topics\/?p=302\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;[python3]\u6587\u5b57\u30b3\u30fc\u30c9\u306e\u5224\u5b9a&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[24,2],"tags":[46],"_links":{"self":[{"href":"https:\/\/chidipy.jpn.com\/topics\/index.php?rest_route=\/wp\/v2\/posts\/302"}],"collection":[{"href":"https:\/\/chidipy.jpn.com\/topics\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/chidipy.jpn.com\/topics\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/chidipy.jpn.com\/topics\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/chidipy.jpn.com\/topics\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=302"}],"version-history":[{"count":0,"href":"https:\/\/chidipy.jpn.com\/topics\/index.php?rest_route=\/wp\/v2\/posts\/302\/revisions"}],"wp:attachment":[{"href":"https:\/\/chidipy.jpn.com\/topics\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=302"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/chidipy.jpn.com\/topics\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=302"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chidipy.jpn.com\/topics\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=302"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}