{"id":1405,"date":"2020-06-01T00:00:00","date_gmt":"2020-05-31T15:00:00","guid":{"rendered":"https:\/\/www.ishikawasekkei.com\/?p=1405"},"modified":"2020-05-31T23:45:23","modified_gmt":"2020-05-31T14:45:23","slug":"python-binary-data-bytes-bytearray-struct","status":"publish","type":"post","link":"https:\/\/www.ishikawasekkei.com\/index.php\/2020\/06\/01\/python-binary-data-bytes-bytearray-struct\/","title":{"rendered":"Python\u30d0\u30a4\u30ca\u30ea\u30c7\u30fc\u30bf\u306e\u6271\u3044\u304b\u305f"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u3000\u4eca\u65e5\u3082\u898b\u306b\u6765\u3066\u304f\u3060\u3055\u3063\u3066\u3001\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3059\u3002\u77f3\u5ddd\u3055\u3093\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3000\u3053\u3053\u306e\u3068\u3053\u308d\u3001Tkinter\u306e\u30e6\u30cb\u30c3\u30c8\u30c6\u30b9\u30c8\u306e\u5b9f\u73fe\u306b\u5411\u3051\u3066\u3044\u308d\u3044\u308d\u3068\u8abf\u67fb\u3092\u9032\u3081\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001\u82e5\u5e72\u96e3\u822a\u3057\u3066\u304a\u308a\u307e\u3059\u3002\u3002\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3000\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u672c\u30d6\u30ed\u30b0\u306e\u66f4\u65b0\u304c\u6ede\u3063\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001\u66f4\u65b0\u304c\u306a\u3044\u3088\u308a\u3082\u3001\u4f55\u304b\u81ea\u5206\u306b\u3068\u3063\u3066\u5f53\u305f\u308a\u524d\u306e\u3053\u3068\u3067\u3042\u3063\u3066\u3082\u8ab0\u304b\u306e\u5f79\u306b\u7acb\u3064\u304b\u3082\u3057\u308c\u306a\u3044\u3068\u3044\u3046\u3053\u3068\u3067\u3001Python\u306e\u6a19\u6e96\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u7bc4\u56f2\u5185\u3067\u306e\u30d0\u30a4\u30ca\u30ea\u30c7\u30fc\u30bf\u306b\u3064\u3044\u3066\u66f8\u3044\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30d0\u30a4\u30c8<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u3000Python\u3067\u306f\u30018\u30d3\u30c3\u30c8\u306e\u6574\u6570\u3092\u6271\u3046\u305f\u3081\u306b\u3001bytes\u3068bytearray\u3092\u7528\u610f\u3057\u3066\u304f\u308c\u3066\u3044\u307e\u3059\u3002\u6271\u3048\u308b\u306e\u306f\u30018\u30d3\u30c3\u30c8\u3067\u8868\u73fe\u3067\u304d\u308b\u7b26\u53f7\u306a\u3057\u6570\u5024\u306e\u7bc4\u56f2\u3067\u30010\uff5e255\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">In [1]: bytes(5)\nOut[1]: b'\\x00\\x00\\x00\\x00\\x00'\n\nIn [2]: bytearray(5)\nOut[2]: bytearray(b'\\x00\\x00\\x00\\x00\\x00')<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u3000\u4e0a\u8a18\u306e\u3088\u3046\u306b\u3001\u6570\u5024\u3092\u6307\u5b9a\u3059\u308b\u30680x00\u3067\u521d\u671f\u5316\u3055\u308c\u305f\u6307\u5b9a\u3055\u308c\u305f\u30b5\u30a4\u30ba\uff08\u4eca\u56de\u306f5\u30d0\u30a4\u30c8\uff09\u306e\u30d0\u30a4\u30c8\u3068\u30d0\u30a4\u30c8\u5217\u3092\u751f\u6210\u3057\u3066\u304f\u308c\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3059\u308b\u3068\u3001\u30ea\u30b9\u30c8\u306e\u5024\u304b\u3089\u751f\u6210\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">In [3]: l = [1,2,3,4,5]\n\nIn [4]: b = bytes(l)\n\nIn [5]: b\nOut[5]: b'\\x01\\x02\\x03\\x04\\x05'\n\nIn [6]: ba = bytearray(l)\n\nIn [7]: ba\nOut[7]: bytearray(b'\\x01\\x02\\x03\\x04\\x05')<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u3000\u3061\u306a\u307f\u306b\u3001bytes\u306f\u30a4\u30df\u30e5\u30fc\u30bf\u30d6\u30eb\u3067bytearray\u306f\u30df\u30e5\u30fc\u30bf\u30d6\u30eb\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">In [8]: b[2] = 0\nTraceback (most recent call last):\n\n  File \"&lt;ipython-input-107-088d74b352b8>\", line 1, in &lt;module>\n    b[2] = 0\n\nTypeError: 'bytes' object does not support item assignment\n\nIn [9]: b\nOut[9]: b'\\x01\\x02\\x03\\x04\\x05'\n\nIn [10]: ba[2] = 0\n\nIn [11]: ba\nOut[11]: bytearray(b'\\x01\\x02\\x00\\x04\\x05')<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u3000\u3054\u3089\u3093\u306e\u901a\u308a\u3001bytes\u306f\u5909\u66f4\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30a8\u30f3\u30c7\u30a3\u30a2\u30f3<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u3000\u3044\u304d\u306a\u308a\u300c\u30a8\u30f3\u30c7\u30a3\u30a2\u30f3\u300d\u3068\u3044\u3046\u30bf\u30a4\u30c8\u30eb\u3092\u66f8\u3044\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u304c\u3001\u3061\u3087\u3046\u3069\u307c\u304f\u304c\u65b0\u5165\u793e\u54e1\u306e\u3068\u304d\u306b\u306f\u3058\u3081\u3066\u3067\u3042\u3063\u305f\u6982\u5ff5\u3067\u3001\u3042\u307e\u308a\u306b\u3082\u885d\u6483\u7684\u3060\u3063\u305f\u306e\u3067\u3001\u3088\u304f\u899a\u3048\u3066\u3044\u307e\u3059\u3002\u307e\u3001\u5b9f\u969b\u306b\u306f\u885d\u6483\u3092\u53d7\u3051\u308b\u3072\u3068\u306f\u305d\u3093\u306a\u306b\u3044\u306a\u3044\u3068\u601d\u3044\u307e\u3059\u3051\u3069\u3002(\u7b11)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3000\u5f53\u6642C\u8a00\u8a9e\u3092\u4f7f\u3063\u3066\u3044\u307e\u3057\u305f\u3002\u6574\u6570\u5024\u3092\u683c\u7d0d\u3059\u308bshort\u578b\u306f2\u30d0\u30a4\u30c8\u3001long\u578b\u306f4\u30d0\u30a4\u30c8\u3001int\u578b\u306f\u3001\u51e6\u7406\u7cfb\u306b\u3088\u3063\u3066\u30012\u30d0\u30a4\u30c8\u3060\u3063\u305f\u308a4\u30d0\u30a4\u30c8\u3060\u3063\u305f\u308a\u3059\u308b\u3001\u3068\u3044\u3046\u3068\u3053\u308d\u307e\u3067\u306f\u306a\u308b\u307b\u3069\u30fc\u3001\u3068\u3044\u3046\u611f\u3058\u3060\u3063\u305f\u306e\u3067\u3059\u3051\u3069\u3001\u5b9f\u969b\u306b\u6570\u5024\u304c\u683c\u7d0d\u3055\u308c\u305f\u7d50\u679c\u3001\u4e0a\u4e0b\u306e\u30d0\u30a4\u30c8\u304c\u5165\u308c\u66ff\u308f\u308b\u3001\u3068\u3044\u3046\u8a71\u3067\u3059\u3002\u307e\u3063\u305f\u304f\u306e\u8b0e\u3067\u3057\u305f\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3000\u4f8b\u3048\u3070\u3001\u5148\u307b\u3069\u306e2\u30d0\u30a4\u30c8\u5206\u306b\u3064\u3044\u3066\u8003\u3048\u3066\u307f\u307e\u3059\u30021\u30d0\u30a4\u30c8\u76ee\u306b0x01\u30012\u30d0\u30a4\u30c8\u76ee\u306b0x02\u304c\u5165\u529b\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u30012\u30d0\u30a4\u30c8\u304c\u4e00\u3064\u306e\u6570\u5024\u3060\u3068\u8003\u3048\u308b\u3068\u30010x0102\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u30022\u9032\u6570\u306b\u7f6e\u304d\u63db\u3048\u3066\u8a08\u7b97\u3059\u308b\u3068\u3053\u306e\u6570\u5024\u306f\u3001(0000000100000010)2\u3068\u306a\u308a\u3001<br>2**8+2**1 = 256+2 = 258\u306b\u306a\u308b\u3068\u601d\u3044\u307e\u3059\u3088\u306d\u3002\u305d\u308c\u304c\u3001\u4e0a\u4e0b\u306e\u30d0\u30a4\u30c8\u304c\u5165\u308c\u66ff\u308f\u308b\u3068\u3001<br>(0000001000000001)2\u3068\u306a\u308a\u30012**9+2**0 = 512+1 = 513\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002\u306d\u3001\u610f\u5473\u304c\u308f\u304b\u308a\u307e\u305b\u3093\u3088\u306d\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3000\u3067\u306f\u3001\u5148\u307b\u3069\u751f\u6210\u3057\u305fbytes\u3092struct\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u4f7f\u3063\u3066\u8aad\u307f\u8fbc\u3093\u3067\u307f\u307e\u3059\u3002\u307e\u305a\u306f\u3001\u30b5\u30f3\u30d7\u30eb\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002struct\u306fC\u8a00\u8a9e\u306e\u69cb\u9020\u4f53\u306b\u4f3c\u305f\u30c7\u30fc\u30bf\u3092\u51e6\u7406\u3059\u308b\u306e\u306b\u4fbf\u5229\u306b\u4f7f\u3048\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">In [12]: import struct \n\nIn [13]: b[:2]\nOut[13]: b'\\x01\\x02'\n\nIn [14]: struct.unpack('>H',b[:2])\nOut[14]: (258,)\n\nIn [15]: struct.unpack('&lt;H',b[:2])\nOut[15]: (513,)<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u3000\u3053\u3053\u3067\u3001'&lt;H&#8217;\u3001&#8217;>H&#8217;\u3092\u6307\u5b9a\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u6700\u521d\u306e\u8a18\u53f7\u306f\u30a8\u30f3\u30c7\u30a3\u30a2\u30f3\u6307\u5b9a\u5b50\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u300c>\u300d\u3053\u3061\u3089\u304c\u30d3\u30c3\u30b0\u30a8\u30f3\u30c7\u30a3\u30a2\u30f3\u3001\u300c&lt;\u300d\u3053\u3061\u3089\u304c\u30ea\u30c8\u30eb\u30a8\u30f3\u30c7\u30a3\u30a2\u30f3\u3067\u3059\u3002\u7d50\u679c\u3092\u3054\u89a7\u306e\u901a\u308a\u3001\u30d3\u30c3\u30b0\u30a8\u30f3\u30c7\u30a3\u30a2\u30f3\u306f\u3001\u76f4\u611f\u7684\u306b\u6b63\u3057\u3044\u6c17\u304c\u3059\u308b\u65b9\u3067\u3001\u30ea\u30c8\u30eb\u30a8\u30f3\u30c7\u30a3\u30a2\u30f3\u304c\u4e0a\u4e0b\u306e\u30d0\u30a4\u30c8\u304c\u5165\u308c\u66ff\u308f\u308b\u30e4\u30c4\u3067\u3059\u306d\u3002\u3061\u306a\u307f\u306b\u4e8c\u756a\u76ee\u306e\u8a18\u53f7\u300cH\u300d\u306f2\u30d0\u30a4\u30c8\u306e\u7b26\u53f7\u306a\u3057\u5358\u6574\u6570\u3092\u6271\u3046\u66f8\u5f0f\u6307\u5b9a\u5b50\u3068\u3044\u3046\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3000\u5b9f\u969b\u306b\u3053\u306e\u30a8\u30f3\u30c7\u30a3\u30a2\u30f3\u3068\u3044\u3046\u8a00\u8449\u3001\u307c\u304f\u306b\u306f\u3042\u3093\u307e\u308a\u306a\u3058\u307f\u304c\u306a\u304f\u3066\u3001\u3044\u3064\u3082\u30d3\u30c3\u30b0\u3068\u30ea\u30c8\u30eb\u3001\u3069\u3063\u3061\u3060\u3063\u305f\u3063\u3051\uff1f\u3068\u3001\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002\u91cd\u8981\u306a\u306e\u306f\u3001\u6642\u3068\u5834\u5408\u306b\u3088\u3063\u3066\u5165\u308c\u66ff\u308f\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\u3001\u3068\u3044\u3046\u3053\u3068\u3092\u77e5\u3063\u3066\u304a\u304f\u3053\u3068\u3068\u3001\u30d0\u30a4\u30c8\u3092\u6271\u3046\u3068\u304d\u306b\u306f\u3069\u3061\u3089\u304c\u63a1\u7528\u3055\u308c\u3066\u3044\u308b\u306e\u304b\u3001\u3068\u3044\u3046\u3053\u3068\u306b\u6c17\u3092\u4ed8\u3051\u306a\u3051\u308c\u3070\u3044\u3051\u306a\u3044\u3001\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u306d\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">struct\u306e\u66f8\u5f0f\u6587\u5b57\u5217<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u3000struct\u306e\u66f8\u5f0f\u6587\u5b57\u5217\u306f\u30a8\u30f3\u30c7\u30a3\u30a2\u30f3\u6307\u5b9a\u5b50\u3068\u66f8\u5f0f\u6307\u5b9a\u5b50\u306e\u4e8c\u7a2e\u985e\u3042\u308a\u3001\u4f7f\u3046\u3068\u304d\u306f\u30a8\u30f3\u30c7\u30a3\u30a2\u30f3\u6307\u5b9a\u5b50\u306e\u65b9\u3092\u66f8\u5f0f\u6307\u5b9a\u5b50\u3088\u308a\u5148\u306b\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>\u6307\u5b9a\u5b50<\/td><td>\u30d0\u30a4\u30c8\u9806<\/td><\/tr><tr><td>&lt;<\/td><td>\u30ea\u30c8\u30eb\u30a4\u30f3\u30c7\u30a3\u30a2\u30f3<\/td><\/tr><tr><td>><\/td><td>\u30d3\u30c3\u30b0\u30a8\u30f3\u30c7\u30a3\u30a2\u30f3<\/td><\/tr><\/tbody><\/table><figcaption>\u30a8\u30f3\u30c7\u30a3\u30a2\u30f3\u6307\u5b9a\u5b50<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>\u6307\u5b9a\u5b50<\/td><td>\u610f\u5473<\/td><td>\u30d0\u30a4\u30c8\u6570<\/td><\/tr><tr><td>x<\/td><td>1\u30d0\u30a4\u30c8\u8aad\u307f\u98db\u3070\u3057<\/td><td>1<\/td><\/tr><tr><td>c<\/td><td>char \u9577\u30551\u306e\u30d0\u30a4\u30c8\u5217<\/td><td>1<\/td><\/tr><tr><td>b<\/td><td>signed char \u7b26\u53f7\u4ed8\u6574\u6570<\/td><td>1<\/td><\/tr><tr><td>B<\/td><td>unsigned char \u7b26\u53f7\u306a\u3057\u6574\u6570<\/td><td>1<\/td><\/tr><tr><td>h<\/td><td>short \u7b26\u53f7\u4ed8\u6574\u6570<\/td><td>2<\/td><\/tr><tr><td>H<\/td><td>unsigned short \u7b26\u53f7\u306a\u3057\u6574\u6570<\/td><td>2<\/td><\/tr><tr><td>i<\/td><td>int \u7b26\u53f7\u4ed8\u6574\u6570<\/td><td>4<\/td><\/tr><tr><td>I<\/td><td>unsigned int \u7b26\u53f7\u306a\u3057\u6574\u6570<\/td><td>4<\/td><\/tr><tr><td>l<\/td><td>long \u7b26\u53f7\u4ed8\u6574\u6570<\/td><td>4<\/td><\/tr><tr><td>L<\/td><td>unsigned long \u7b26\u53f7\u306a\u3057\u6574\u6570<\/td><td>4<\/td><\/tr><tr><td>q<\/td><td>long long \u7b26\u53f7\u4ed8\u6574\u6570<\/td><td>8<\/td><\/tr><tr><td>Q<\/td><td>unsigned long long \u7b26\u53f7\u306a\u3057\u6574\u6570<\/td><td>8<\/td><\/tr><tr><td>f<\/td><td>float \u5358\u7cbe\u5ea6\u6d6e\u52d5\u5c0f\u6570\u70b9\u6570<\/td><td>4<\/td><\/tr><tr><td>d<\/td><td>double \u500d\u7cbe\u5ea6\u6d6e\u52d5\u5c0f\u6570\u70b9\u6570<\/td><td>8<\/td><\/tr><\/tbody><\/table><figcaption>\u66f8\u5f0f\u6307\u5b9a\u5b50<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u3000\u30d0\u30a4\u30c8\u3092Python\u30c7\u30fc\u30bf\u306b\u5909\u63db\u3059\u308b\u3068\u304d\u306f\u3001unpack\u3092\u5229\u7528\u3057\u307e\u3059\u304c\u3001\u305d\u306e\u9006\u306e\u3068\u304d\u306f\u3001pack\u3092\u5229\u7528\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">In [16]: struct.pack('>2L',500,12)\nOut[16]: b'\\x00\\x00\\x01\\xf4\\x00\\x00\\x00\\x0c'\n\nIn [17]: struct.unpack('>2L',b'\\x00\\x00\\x01\\xf4\\x00\\x00\\x00\\x0c')\nOut[17]: (500, 12)<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u3000\u3053\u306e\u66f8\u5f0f\u6307\u5b9a\u5b50\u306f\u3001\u30d3\u30c3\u30b0\u30a8\u30f3\u30c7\u30a3\u30a2\u30f3\u3067\u30012\u500b\u306e4\u30d0\u30a4\u30c8\u306e\u7b26\u53f7\u306a\u3057\u6574\u6570\u3092\u6271\u3046\u3001\u3068\u3044\u3046\u3053\u3068\u3092\u610f\u5473\u3057\u3066\u3044\u307e\u3059\u3002\u3061\u306a\u307f\u306b\u3001\u300cx\u300d\u306e\u66f8\u5f0f\u6307\u5b9a\u5b50\u306f\u3001\u6307\u5b9a\u3055\u308c\u305f\u30d0\u30a4\u30c8\u6570\u5206\u3092\u8aad\u307f\u98db\u3070\u3059\u3001\u3068\u3044\u3046\u3053\u3068\u3092\u610f\u5473\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">In [18]: struct.unpack('>2xH2xH',b'\\x00\\x00\\x01\\xf4\\x00\\x00\\x00\\x0c')\nOut[18]: (500, 12)<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u30002\u30d0\u30a4\u30c8\u98db\u3070\u3057\u30662\u30d0\u30a4\u30c8\u306e\u7b26\u53f7\u306a\u3057\u6574\u6570\u30012\u30d0\u30a4\u30c8\u98db\u3070\u3057\u30662\u30d0\u30a4\u30c8\u306e\u7b26\u53f7\u306a\u3057\u6574\u6570\u3001\u3068\u3044\u3046\u3053\u3068\u3092\u610f\u5473\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u307e\u3068\u3081<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u3000\u30d0\u30a4\u30c8\u3092\u6271\u3046\u3068\u304d\u306f\u3001\u30a8\u30f3\u30c7\u30a3\u30a2\u30f3\u306b\u6c17\u3092\u4ed8\u3051\u3066\u3002\u7c21\u5358\u306a\u30d0\u30a4\u30c8\u306a\u3089\u3001struct\u3092\u4f7f\u3063\u3066\u3001\u30d0\u30a4\u30c8\u3068Python\u30c7\u30fc\u30bf\u3092\u5909\u63db\u3067\u304d\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3000\u4eca\u65e5\u3082\u898b\u306b\u6765\u3066\u304f\u3060\u3055\u3063\u3066\u3001\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3059\u3002\u77f3\u5ddd\u3055\u3093\u3067\u3059\u3002 \u3000\u3053\u3053\u306e\u3068\u3053\u308d\u3001Tkinter\u306e\u30e6\u30cb\u30c3\u30c8\u30c6\u30b9\u30c8\u306e\u5b9f\u73fe\u306b\u5411\u3051\u3066\u3044\u308d\u3044\u308d\u3068\u8abf\u67fb\u3092\u9032\u3081\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001\u82e5\u5e72\u96e3\u822a\u3057\u3066\u304a\u308a\u307e\u3059\u3002\u3002\u3002 \u3000\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u672c\u30d6\u30ed\u30b0\u306e\u66f4\u65b0 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.ishikawasekkei.com\/index.php\/2020\/06\/01\/python-binary-data-bytes-bytearray-struct\/\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;Python\u30d0\u30a4\u30ca\u30ea\u30c7\u30fc\u30bf\u306e\u6271\u3044\u304b\u305f&#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":{"footnotes":""},"categories":[8,2],"tags":[],"class_list":["post-1405","post","type-post","status-publish","format-standard","hentry","category-program","category-blog"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.9 - aioseo.com -->\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"sTone\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.ishikawasekkei.com\/index.php\/2020\/06\/01\/python-binary-data-bytes-bytearray-struct\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.9\" \/>\n\t\t<meta property=\"og:locale\" content=\"ja_JP\" \/>\n\t\t<meta property=\"og:site_name\" content=\"\u682a\u5f0f\u4f1a\u793e \u77f3\u5ddd\u8a2d\u8a08 \u30b7\u30b9\u30c6\u30e0\u958b\u767a\u3092\u3068\u3053\u3068\u3093\u6975\u3081\u307e\u3059\uff01 | \u3068\u3044\u3046\u3053\u3068\u3067\u4e00\u7dd2\u306b\u6975\u3081\u307e\u3057\u3087\u3046\uff01\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u8ad6\u7406\u8a2d\u8a08\uff08\u696d\u52d9\u5206\u6790\uff09\u304c\u8da3\u5473\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3057\u307e\u3063\u305f\u30b7\u30b9\u30c6\u30e0\u958b\u767a\u306e\u30b9\u30da\u30b7\u30e3\u30ea\u30b9\u30c8\u3067\u3059\u3002\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0\u3082\u5f97\u610f\u3067\u3059\u3002\u30b7\u30b9\u30c6\u30e0\u306b\u304a\u3051\u308b\u69d8\u3005\u306a\u554f\u984c\u3092\u89e3\u6c7a\u3057\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u305d\u308c\u3089\u3092\u5171\u6709\u3067\u304d\u308c\u3070\u3068\u601d\u3044\u307e\u3059\u3002\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Python\u30d0\u30a4\u30ca\u30ea\u30c7\u30fc\u30bf\u306e\u6271\u3044\u304b\u305f | \u682a\u5f0f\u4f1a\u793e \u77f3\u5ddd\u8a2d\u8a08 \u30b7\u30b9\u30c6\u30e0\u958b\u767a\u3092\u3068\u3053\u3068\u3093\u6975\u3081\u307e\u3059\uff01\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.ishikawasekkei.com\/index.php\/2020\/06\/01\/python-binary-data-bytes-bytearray-struct\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/www.ishikawasekkei.com\/wp-content\/uploads\/2019\/02\/cropped-ishikawasekkei-2.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/www.ishikawasekkei.com\/wp-content\/uploads\/2019\/02\/cropped-ishikawasekkei-2.png\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2020-05-31T15:00:00+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2020-05-31T14:45:23+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Python\u30d0\u30a4\u30ca\u30ea\u30c7\u30fc\u30bf\u306e\u6271\u3044\u304b\u305f | \u682a\u5f0f\u4f1a\u793e \u77f3\u5ddd\u8a2d\u8a08 \u30b7\u30b9\u30c6\u30e0\u958b\u767a\u3092\u3068\u3053\u3068\u3093\u6975\u3081\u307e\u3059\uff01\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/www.ishikawasekkei.com\/wp-content\/uploads\/2019\/02\/cropped-ishikawasekkei-2.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.ishikawasekkei.com\\\/index.php\\\/2020\\\/06\\\/01\\\/python-binary-data-bytes-bytearray-struct\\\/#article\",\"name\":\"Python\\u30d0\\u30a4\\u30ca\\u30ea\\u30c7\\u30fc\\u30bf\\u306e\\u6271\\u3044\\u304b\\u305f | \\u682a\\u5f0f\\u4f1a\\u793e \\u77f3\\u5ddd\\u8a2d\\u8a08 \\u30b7\\u30b9\\u30c6\\u30e0\\u958b\\u767a\\u3092\\u3068\\u3053\\u3068\\u3093\\u6975\\u3081\\u307e\\u3059\\uff01\",\"headline\":\"Python\\u30d0\\u30a4\\u30ca\\u30ea\\u30c7\\u30fc\\u30bf\\u306e\\u6271\\u3044\\u304b\\u305f\",\"author\":{\"@id\":\"https:\\\/\\\/www.ishikawasekkei.com\\\/index.php\\\/author\\\/admin\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.ishikawasekkei.com\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.ishikawasekkei.com\\\/wp-content\\\/uploads\\\/2019\\\/02\\\/ishikawasekkei.png\",\"@id\":\"https:\\\/\\\/www.ishikawasekkei.com\\\/#articleImage\",\"width\":1000,\"height\":1000},\"datePublished\":\"2020-06-01T00:00:00+09:00\",\"dateModified\":\"2020-05-31T23:45:23+09:00\",\"inLanguage\":\"ja\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.ishikawasekkei.com\\\/index.php\\\/2020\\\/06\\\/01\\\/python-binary-data-bytes-bytearray-struct\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.ishikawasekkei.com\\\/index.php\\\/2020\\\/06\\\/01\\\/python-binary-data-bytes-bytearray-struct\\\/#webpage\"},\"articleSection\":\"Program, \\u30d6\\u30ed\\u30b0\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.ishikawasekkei.com\\\/index.php\\\/2020\\\/06\\\/01\\\/python-binary-data-bytes-bytearray-struct\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ishikawasekkei.com#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.ishikawasekkei.com\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ishikawasekkei.com\\\/index.php\\\/category\\\/blog\\\/#listItem\",\"name\":\"\\u30d6\\u30ed\\u30b0\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ishikawasekkei.com\\\/index.php\\\/category\\\/blog\\\/#listItem\",\"position\":2,\"name\":\"\\u30d6\\u30ed\\u30b0\",\"item\":\"https:\\\/\\\/www.ishikawasekkei.com\\\/index.php\\\/category\\\/blog\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ishikawasekkei.com\\\/index.php\\\/2020\\\/06\\\/01\\\/python-binary-data-bytes-bytearray-struct\\\/#listItem\",\"name\":\"Python\\u30d0\\u30a4\\u30ca\\u30ea\\u30c7\\u30fc\\u30bf\\u306e\\u6271\\u3044\\u304b\\u305f\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ishikawasekkei.com#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ishikawasekkei.com\\\/index.php\\\/2020\\\/06\\\/01\\\/python-binary-data-bytes-bytearray-struct\\\/#listItem\",\"position\":3,\"name\":\"Python\\u30d0\\u30a4\\u30ca\\u30ea\\u30c7\\u30fc\\u30bf\\u306e\\u6271\\u3044\\u304b\\u305f\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ishikawasekkei.com\\\/index.php\\\/category\\\/blog\\\/#listItem\",\"name\":\"\\u30d6\\u30ed\\u30b0\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.ishikawasekkei.com\\\/#organization\",\"name\":\"\\u682a\\u5f0f\\u4f1a\\u793e \\u77f3\\u5ddd\\u8a2d\\u8a08\",\"description\":\"\\u3068\\u3044\\u3046\\u3053\\u3068\\u3067\\u4e00\\u7dd2\\u306b\\u6975\\u3081\\u307e\\u3057\\u3087\\u3046\\uff01\\u30c7\\u30fc\\u30bf\\u30d9\\u30fc\\u30b9\\u8ad6\\u7406\\u8a2d\\u8a08\\uff08\\u696d\\u52d9\\u5206\\u6790\\uff09\\u304c\\u8da3\\u5473\\u306e\\u3088\\u3046\\u306b\\u306a\\u3063\\u3066\\u3057\\u307e\\u3063\\u305f\\u30b7\\u30b9\\u30c6\\u30e0\\u958b\\u767a\\u306e\\u30b9\\u30da\\u30b7\\u30e3\\u30ea\\u30b9\\u30c8\\u3067\\u3059\\u3002\\u30d1\\u30d5\\u30a9\\u30fc\\u30de\\u30f3\\u30b9\\u30c1\\u30e5\\u30fc\\u30cb\\u30f3\\u30b0\\u3082\\u5f97\\u610f\\u3067\\u3059\\u3002\\u30b7\\u30b9\\u30c6\\u30e0\\u306b\\u304a\\u3051\\u308b\\u69d8\\u3005\\u306a\\u554f\\u984c\\u3092\\u89e3\\u6c7a\\u3057\\u3066\\u3044\\u307e\\u3059\\u306e\\u3067\\u3001\\u305d\\u308c\\u3089\\u3092\\u5171\\u6709\\u3067\\u304d\\u308c\\u3070\\u3068\\u601d\\u3044\\u307e\\u3059\\u3002\",\"url\":\"https:\\\/\\\/www.ishikawasekkei.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.ishikawasekkei.com\\\/wp-content\\\/uploads\\\/2019\\\/02\\\/ishikawasekkei.png\",\"@id\":\"https:\\\/\\\/www.ishikawasekkei.com\\\/index.php\\\/2020\\\/06\\\/01\\\/python-binary-data-bytes-bytearray-struct\\\/#organizationLogo\",\"width\":1000,\"height\":1000},\"image\":{\"@id\":\"https:\\\/\\\/www.ishikawasekkei.com\\\/index.php\\\/2020\\\/06\\\/01\\\/python-binary-data-bytes-bytearray-struct\\\/#organizationLogo\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.ishikawasekkei.com\\\/index.php\\\/author\\\/admin\\\/#author\",\"url\":\"https:\\\/\\\/www.ishikawasekkei.com\\\/index.php\\\/author\\\/admin\\\/\",\"name\":\"sTone\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.ishikawasekkei.com\\\/index.php\\\/2020\\\/06\\\/01\\\/python-binary-data-bytes-bytearray-struct\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/2f57b28952073aaca504b61d7b66d58e91b0b7847aabadc207080755d0f507ea?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"sTone\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.ishikawasekkei.com\\\/index.php\\\/2020\\\/06\\\/01\\\/python-binary-data-bytes-bytearray-struct\\\/#webpage\",\"url\":\"https:\\\/\\\/www.ishikawasekkei.com\\\/index.php\\\/2020\\\/06\\\/01\\\/python-binary-data-bytes-bytearray-struct\\\/\",\"name\":\"Python\\u30d0\\u30a4\\u30ca\\u30ea\\u30c7\\u30fc\\u30bf\\u306e\\u6271\\u3044\\u304b\\u305f | \\u682a\\u5f0f\\u4f1a\\u793e \\u77f3\\u5ddd\\u8a2d\\u8a08 \\u30b7\\u30b9\\u30c6\\u30e0\\u958b\\u767a\\u3092\\u3068\\u3053\\u3068\\u3093\\u6975\\u3081\\u307e\\u3059\\uff01\",\"inLanguage\":\"ja\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.ishikawasekkei.com\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.ishikawasekkei.com\\\/index.php\\\/2020\\\/06\\\/01\\\/python-binary-data-bytes-bytearray-struct\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.ishikawasekkei.com\\\/index.php\\\/author\\\/admin\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.ishikawasekkei.com\\\/index.php\\\/author\\\/admin\\\/#author\"},\"datePublished\":\"2020-06-01T00:00:00+09:00\",\"dateModified\":\"2020-05-31T23:45:23+09:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.ishikawasekkei.com\\\/#website\",\"url\":\"https:\\\/\\\/www.ishikawasekkei.com\\\/\",\"name\":\"\\u682a\\u5f0f\\u4f1a\\u793e \\u77f3\\u5ddd\\u8a2d\\u8a08 \\u30b7\\u30b9\\u30c6\\u30e0\\u958b\\u767a\\u3092\\u3068\\u3053\\u3068\\u3093\\u6975\\u3081\\u307e\\u3059\\uff01\",\"description\":\"\\u3068\\u3044\\u3046\\u3053\\u3068\\u3067\\u4e00\\u7dd2\\u306b\\u6975\\u3081\\u307e\\u3057\\u3087\\u3046\\uff01\\u30c7\\u30fc\\u30bf\\u30d9\\u30fc\\u30b9\\u8ad6\\u7406\\u8a2d\\u8a08\\uff08\\u696d\\u52d9\\u5206\\u6790\\uff09\\u304c\\u8da3\\u5473\\u306e\\u3088\\u3046\\u306b\\u306a\\u3063\\u3066\\u3057\\u307e\\u3063\\u305f\\u30b7\\u30b9\\u30c6\\u30e0\\u958b\\u767a\\u306e\\u30b9\\u30da\\u30b7\\u30e3\\u30ea\\u30b9\\u30c8\\u3067\\u3059\\u3002\\u30d1\\u30d5\\u30a9\\u30fc\\u30de\\u30f3\\u30b9\\u30c1\\u30e5\\u30fc\\u30cb\\u30f3\\u30b0\\u3082\\u5f97\\u610f\\u3067\\u3059\\u3002\\u30b7\\u30b9\\u30c6\\u30e0\\u306b\\u304a\\u3051\\u308b\\u69d8\\u3005\\u306a\\u554f\\u984c\\u3092\\u89e3\\u6c7a\\u3057\\u3066\\u3044\\u307e\\u3059\\u306e\\u3067\\u3001\\u305d\\u308c\\u3089\\u3092\\u5171\\u6709\\u3067\\u304d\\u308c\\u3070\\u3068\\u601d\\u3044\\u307e\\u3059\\u3002\",\"inLanguage\":\"ja\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.ishikawasekkei.com\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Python\u30d0\u30a4\u30ca\u30ea\u30c7\u30fc\u30bf\u306e\u6271\u3044\u304b\u305f | \u682a\u5f0f\u4f1a\u793e \u77f3\u5ddd\u8a2d\u8a08 \u30b7\u30b9\u30c6\u30e0\u958b\u767a\u3092\u3068\u3053\u3068\u3093\u6975\u3081\u307e\u3059\uff01","description":"","canonical_url":"https:\/\/www.ishikawasekkei.com\/index.php\/2020\/06\/01\/python-binary-data-bytes-bytearray-struct\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.ishikawasekkei.com\/index.php\/2020\/06\/01\/python-binary-data-bytes-bytearray-struct\/#article","name":"Python\u30d0\u30a4\u30ca\u30ea\u30c7\u30fc\u30bf\u306e\u6271\u3044\u304b\u305f | \u682a\u5f0f\u4f1a\u793e \u77f3\u5ddd\u8a2d\u8a08 \u30b7\u30b9\u30c6\u30e0\u958b\u767a\u3092\u3068\u3053\u3068\u3093\u6975\u3081\u307e\u3059\uff01","headline":"Python\u30d0\u30a4\u30ca\u30ea\u30c7\u30fc\u30bf\u306e\u6271\u3044\u304b\u305f","author":{"@id":"https:\/\/www.ishikawasekkei.com\/index.php\/author\/admin\/#author"},"publisher":{"@id":"https:\/\/www.ishikawasekkei.com\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/www.ishikawasekkei.com\/wp-content\/uploads\/2019\/02\/ishikawasekkei.png","@id":"https:\/\/www.ishikawasekkei.com\/#articleImage","width":1000,"height":1000},"datePublished":"2020-06-01T00:00:00+09:00","dateModified":"2020-05-31T23:45:23+09:00","inLanguage":"ja","mainEntityOfPage":{"@id":"https:\/\/www.ishikawasekkei.com\/index.php\/2020\/06\/01\/python-binary-data-bytes-bytearray-struct\/#webpage"},"isPartOf":{"@id":"https:\/\/www.ishikawasekkei.com\/index.php\/2020\/06\/01\/python-binary-data-bytes-bytearray-struct\/#webpage"},"articleSection":"Program, \u30d6\u30ed\u30b0"},{"@type":"BreadcrumbList","@id":"https:\/\/www.ishikawasekkei.com\/index.php\/2020\/06\/01\/python-binary-data-bytes-bytearray-struct\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.ishikawasekkei.com#listItem","position":1,"name":"Home","item":"https:\/\/www.ishikawasekkei.com","nextItem":{"@type":"ListItem","@id":"https:\/\/www.ishikawasekkei.com\/index.php\/category\/blog\/#listItem","name":"\u30d6\u30ed\u30b0"}},{"@type":"ListItem","@id":"https:\/\/www.ishikawasekkei.com\/index.php\/category\/blog\/#listItem","position":2,"name":"\u30d6\u30ed\u30b0","item":"https:\/\/www.ishikawasekkei.com\/index.php\/category\/blog\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.ishikawasekkei.com\/index.php\/2020\/06\/01\/python-binary-data-bytes-bytearray-struct\/#listItem","name":"Python\u30d0\u30a4\u30ca\u30ea\u30c7\u30fc\u30bf\u306e\u6271\u3044\u304b\u305f"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.ishikawasekkei.com#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.ishikawasekkei.com\/index.php\/2020\/06\/01\/python-binary-data-bytes-bytearray-struct\/#listItem","position":3,"name":"Python\u30d0\u30a4\u30ca\u30ea\u30c7\u30fc\u30bf\u306e\u6271\u3044\u304b\u305f","previousItem":{"@type":"ListItem","@id":"https:\/\/www.ishikawasekkei.com\/index.php\/category\/blog\/#listItem","name":"\u30d6\u30ed\u30b0"}}]},{"@type":"Organization","@id":"https:\/\/www.ishikawasekkei.com\/#organization","name":"\u682a\u5f0f\u4f1a\u793e \u77f3\u5ddd\u8a2d\u8a08","description":"\u3068\u3044\u3046\u3053\u3068\u3067\u4e00\u7dd2\u306b\u6975\u3081\u307e\u3057\u3087\u3046\uff01\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u8ad6\u7406\u8a2d\u8a08\uff08\u696d\u52d9\u5206\u6790\uff09\u304c\u8da3\u5473\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3057\u307e\u3063\u305f\u30b7\u30b9\u30c6\u30e0\u958b\u767a\u306e\u30b9\u30da\u30b7\u30e3\u30ea\u30b9\u30c8\u3067\u3059\u3002\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0\u3082\u5f97\u610f\u3067\u3059\u3002\u30b7\u30b9\u30c6\u30e0\u306b\u304a\u3051\u308b\u69d8\u3005\u306a\u554f\u984c\u3092\u89e3\u6c7a\u3057\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u305d\u308c\u3089\u3092\u5171\u6709\u3067\u304d\u308c\u3070\u3068\u601d\u3044\u307e\u3059\u3002","url":"https:\/\/www.ishikawasekkei.com\/","logo":{"@type":"ImageObject","url":"https:\/\/www.ishikawasekkei.com\/wp-content\/uploads\/2019\/02\/ishikawasekkei.png","@id":"https:\/\/www.ishikawasekkei.com\/index.php\/2020\/06\/01\/python-binary-data-bytes-bytearray-struct\/#organizationLogo","width":1000,"height":1000},"image":{"@id":"https:\/\/www.ishikawasekkei.com\/index.php\/2020\/06\/01\/python-binary-data-bytes-bytearray-struct\/#organizationLogo"}},{"@type":"Person","@id":"https:\/\/www.ishikawasekkei.com\/index.php\/author\/admin\/#author","url":"https:\/\/www.ishikawasekkei.com\/index.php\/author\/admin\/","name":"sTone","image":{"@type":"ImageObject","@id":"https:\/\/www.ishikawasekkei.com\/index.php\/2020\/06\/01\/python-binary-data-bytes-bytearray-struct\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/2f57b28952073aaca504b61d7b66d58e91b0b7847aabadc207080755d0f507ea?s=96&d=mm&r=g","width":96,"height":96,"caption":"sTone"}},{"@type":"WebPage","@id":"https:\/\/www.ishikawasekkei.com\/index.php\/2020\/06\/01\/python-binary-data-bytes-bytearray-struct\/#webpage","url":"https:\/\/www.ishikawasekkei.com\/index.php\/2020\/06\/01\/python-binary-data-bytes-bytearray-struct\/","name":"Python\u30d0\u30a4\u30ca\u30ea\u30c7\u30fc\u30bf\u306e\u6271\u3044\u304b\u305f | \u682a\u5f0f\u4f1a\u793e \u77f3\u5ddd\u8a2d\u8a08 \u30b7\u30b9\u30c6\u30e0\u958b\u767a\u3092\u3068\u3053\u3068\u3093\u6975\u3081\u307e\u3059\uff01","inLanguage":"ja","isPartOf":{"@id":"https:\/\/www.ishikawasekkei.com\/#website"},"breadcrumb":{"@id":"https:\/\/www.ishikawasekkei.com\/index.php\/2020\/06\/01\/python-binary-data-bytes-bytearray-struct\/#breadcrumblist"},"author":{"@id":"https:\/\/www.ishikawasekkei.com\/index.php\/author\/admin\/#author"},"creator":{"@id":"https:\/\/www.ishikawasekkei.com\/index.php\/author\/admin\/#author"},"datePublished":"2020-06-01T00:00:00+09:00","dateModified":"2020-05-31T23:45:23+09:00"},{"@type":"WebSite","@id":"https:\/\/www.ishikawasekkei.com\/#website","url":"https:\/\/www.ishikawasekkei.com\/","name":"\u682a\u5f0f\u4f1a\u793e \u77f3\u5ddd\u8a2d\u8a08 \u30b7\u30b9\u30c6\u30e0\u958b\u767a\u3092\u3068\u3053\u3068\u3093\u6975\u3081\u307e\u3059\uff01","description":"\u3068\u3044\u3046\u3053\u3068\u3067\u4e00\u7dd2\u306b\u6975\u3081\u307e\u3057\u3087\u3046\uff01\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u8ad6\u7406\u8a2d\u8a08\uff08\u696d\u52d9\u5206\u6790\uff09\u304c\u8da3\u5473\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3057\u307e\u3063\u305f\u30b7\u30b9\u30c6\u30e0\u958b\u767a\u306e\u30b9\u30da\u30b7\u30e3\u30ea\u30b9\u30c8\u3067\u3059\u3002\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0\u3082\u5f97\u610f\u3067\u3059\u3002\u30b7\u30b9\u30c6\u30e0\u306b\u304a\u3051\u308b\u69d8\u3005\u306a\u554f\u984c\u3092\u89e3\u6c7a\u3057\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u305d\u308c\u3089\u3092\u5171\u6709\u3067\u304d\u308c\u3070\u3068\u601d\u3044\u307e\u3059\u3002","inLanguage":"ja","publisher":{"@id":"https:\/\/www.ishikawasekkei.com\/#organization"}}]},"og:locale":"ja_JP","og:site_name":"\u682a\u5f0f\u4f1a\u793e \u77f3\u5ddd\u8a2d\u8a08 \u30b7\u30b9\u30c6\u30e0\u958b\u767a\u3092\u3068\u3053\u3068\u3093\u6975\u3081\u307e\u3059\uff01 | \u3068\u3044\u3046\u3053\u3068\u3067\u4e00\u7dd2\u306b\u6975\u3081\u307e\u3057\u3087\u3046\uff01\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u8ad6\u7406\u8a2d\u8a08\uff08\u696d\u52d9\u5206\u6790\uff09\u304c\u8da3\u5473\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3057\u307e\u3063\u305f\u30b7\u30b9\u30c6\u30e0\u958b\u767a\u306e\u30b9\u30da\u30b7\u30e3\u30ea\u30b9\u30c8\u3067\u3059\u3002\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0\u3082\u5f97\u610f\u3067\u3059\u3002\u30b7\u30b9\u30c6\u30e0\u306b\u304a\u3051\u308b\u69d8\u3005\u306a\u554f\u984c\u3092\u89e3\u6c7a\u3057\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u305d\u308c\u3089\u3092\u5171\u6709\u3067\u304d\u308c\u3070\u3068\u601d\u3044\u307e\u3059\u3002","og:type":"article","og:title":"Python\u30d0\u30a4\u30ca\u30ea\u30c7\u30fc\u30bf\u306e\u6271\u3044\u304b\u305f | \u682a\u5f0f\u4f1a\u793e \u77f3\u5ddd\u8a2d\u8a08 \u30b7\u30b9\u30c6\u30e0\u958b\u767a\u3092\u3068\u3053\u3068\u3093\u6975\u3081\u307e\u3059\uff01","og:url":"https:\/\/www.ishikawasekkei.com\/index.php\/2020\/06\/01\/python-binary-data-bytes-bytearray-struct\/","og:image":"https:\/\/www.ishikawasekkei.com\/wp-content\/uploads\/2019\/02\/cropped-ishikawasekkei-2.png","og:image:secure_url":"https:\/\/www.ishikawasekkei.com\/wp-content\/uploads\/2019\/02\/cropped-ishikawasekkei-2.png","article:published_time":"2020-05-31T15:00:00+00:00","article:modified_time":"2020-05-31T14:45:23+00:00","twitter:card":"summary","twitter:title":"Python\u30d0\u30a4\u30ca\u30ea\u30c7\u30fc\u30bf\u306e\u6271\u3044\u304b\u305f | \u682a\u5f0f\u4f1a\u793e \u77f3\u5ddd\u8a2d\u8a08 \u30b7\u30b9\u30c6\u30e0\u958b\u767a\u3092\u3068\u3053\u3068\u3093\u6975\u3081\u307e\u3059\uff01","twitter:image":"https:\/\/www.ishikawasekkei.com\/wp-content\/uploads\/2019\/02\/cropped-ishikawasekkei-2.png"},"aioseo_meta_data":{"post_id":"1405","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"location":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2020-12-21 03:56:14","updated":"2025-07-16 15:38:58","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.ishikawasekkei.com\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.ishikawasekkei.com\/index.php\/category\/blog\/\" title=\"\u30d6\u30ed\u30b0\">\u30d6\u30ed\u30b0<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tPython\u30d0\u30a4\u30ca\u30ea\u30c7\u30fc\u30bf\u306e\u6271\u3044\u304b\u305f\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.ishikawasekkei.com"},{"label":"\u30d6\u30ed\u30b0","link":"https:\/\/www.ishikawasekkei.com\/index.php\/category\/blog\/"},{"label":"Python\u30d0\u30a4\u30ca\u30ea\u30c7\u30fc\u30bf\u306e\u6271\u3044\u304b\u305f","link":"https:\/\/www.ishikawasekkei.com\/index.php\/2020\/06\/01\/python-binary-data-bytes-bytearray-struct\/"}],"_links":{"self":[{"href":"https:\/\/www.ishikawasekkei.com\/index.php\/wp-json\/wp\/v2\/posts\/1405","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ishikawasekkei.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ishikawasekkei.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ishikawasekkei.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ishikawasekkei.com\/index.php\/wp-json\/wp\/v2\/comments?post=1405"}],"version-history":[{"count":1,"href":"https:\/\/www.ishikawasekkei.com\/index.php\/wp-json\/wp\/v2\/posts\/1405\/revisions"}],"predecessor-version":[{"id":1406,"href":"https:\/\/www.ishikawasekkei.com\/index.php\/wp-json\/wp\/v2\/posts\/1405\/revisions\/1406"}],"wp:attachment":[{"href":"https:\/\/www.ishikawasekkei.com\/index.php\/wp-json\/wp\/v2\/media?parent=1405"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ishikawasekkei.com\/index.php\/wp-json\/wp\/v2\/categories?post=1405"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ishikawasekkei.com\/index.php\/wp-json\/wp\/v2\/tags?post=1405"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}