{"id":747,"date":"2020-01-17T00:00:05","date_gmt":"2020-01-17T09:00:05","guid":{"rendered":"https:\/\/www.ishikawasekkei.com\/?p=747"},"modified":"2020-03-10T03:57:36","modified_gmt":"2020-03-10T12:57:36","slug":"python-hex-dump","status":"publish","type":"post","link":"https:\/\/www.ishikawasekkei.com\/index.php\/2020\/01\/17\/python-hex-dump\/","title":{"rendered":"Python\u306716\u9032\u6570\u30c0\u30f3\u30d7\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u308b"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u4eca\u65e5\u3082\u898b\u306b\u6765\u3066\u304f\u3060\u3055\u3063\u3066\u3001\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3000Python\u52c9\u5f37\u4f1a\u3001\u3072\u3068\u3068\u304a\u308a\u306e\u8981\u7d20\u306b\u3064\u3044\u3066\u3001\u8aac\u660e\u3055\u305b\u3066\u3044\u305f\u3060\u304d\u307e\u3057\u305f\u3002\u3057\u304b\u3057\u3001\u5b9f\u969b\u306b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3057\u306a\u3044\u3068\u3001\u306a\u304b\u306a\u304b\u8eab\u306b\u3064\u304d\u307e\u305b\u3093\u3002\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u300c\u30d0\u30a4\u30ca\u30ea\u30d5\u30a1\u30a4\u30eb\u306e\u5185\u5bb9\u309216\u9032\u6570\u3067\u30c0\u30f3\u30d7\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u308b\u300d\u3068\u3044\u3046\u8ab2\u984c\u3092\u7528\u610f\u3057\u307e\u3057\u305f\u3002\u305d\u3093\u306a\u306b\u96e3\u3057\u304f\u306f\u306a\u3044\u306e\u3067\u3059\u3051\u3069\u3001\u3044\u308d\u3044\u308d\u3068\u8003\u3048\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u3053\u3068\u304c\u3042\u308a\u3001\u53d6\u308a\u7d44\u307f\u304c\u3044\u306e\u3042\u308b\u8ab2\u984c\u3067\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\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=\"\">\u3010\u8ab2\u984c\u3011\u30d5\u30a1\u30a4\u30eb\u306e\u5185\u5bb9\u309216\u9032\u6570\u3067\u30c0\u30f3\u30d7\u3059\u308b\n\u30d5\u30a1\u30a4\u30eb\u540d\uff1ahexdump.py\n\u4f7f\u3044\u65b9\uff1apython hexdump.py \u30c0\u30f3\u30d7\u3057\u305f\u3044\u30d5\u30a1\u30a4\u30eb\u540d<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u3000\u304a\u6642\u9593\u306e\u306a\u3044\u65b9\u306b\u3001\u51fa\u6765\u4e0a\u304c\u308a\u7d50\u679c\u306f\u4ee5\u4e0b\u306e\u901a\u308a\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=\"\">from sys import argv\nfrom os.path import exists\n\nprocess = '\u51e6\u7406\uff1a\u30d5\u30a1\u30a4\u30eb\u306e\u5185\u5bb9\u309216\u9032\u6570\u3067\u30c0\u30f3\u30d7\u3059\u308b'\nhowtouse = f'\u4f7f\u3044\u65b9\uff1apython {argv[0]} \u30c0\u30f3\u30d7\u3057\u305f\u3044\u30d5\u30a1\u30a4\u30eb\u540d'\n\nif len(argv) != 2:\n    print(howtouse)\n    exit()\n\nif not exists(argv[1]):\n    print(f\"\u6307\u5b9a\u3055\u308c\u305f\u30d5\u30a1\u30a4\u30eb\u306f\u5b58\u5728\u3057\u307e\u305b\u3093\u3002 [{argv[1]}] \")\n    exit()\n\nwith open(argv[1], 'rb') as f:\n    data = f.read()\n\nfor i, x in enumerate(data, 1):\n    print(f\"{x:02x}\",end=' ')\n    if i % 20 == 0:\n        print()\n    elif i % 10 == 0:\n        print(end=' ')<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u3000\u3055\u3066\u3001\u307e\u305a\u306f\u3001\u5f15\u6570\u306e\u300c\u30c0\u30f3\u30d7\u3057\u305f\u3044\u30d5\u30a1\u30a4\u30eb\u540d\u300d\u304c\u6307\u5b9a\u3055\u308c\u308b\u3001\u3068\u3044\u3046\u3068\u3053\u308d\u304b\u3089\u3002\u3053\u308c\u306f\u3001sys\u30e2\u30b8\u30e5\u30fc\u30eb\u306eargv\u3092\u4f7f\u3044\u307e\u3059\u3002\u3061\u3087\u3063\u3068\u30c6\u30b9\u30c8\u7684\u306b\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5165\u529b\u3057\u3066\u307f\u307e\u3057\u3087\u3046\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=\"\">from sys import argv\nprint(len(argv), argv)<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u5b9f\u884c\u7d50\u679c\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\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=\"\">(base) C:\\work\\friStudy&gt;python hexdump.py test\n 2 ['hexdump.py', 'test']<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u3000<code>sys.argv<\/code>\u306f\u3001\u5b9f\u884c\u6642\u5f15\u6570\u304c\u683c\u7d0d\u3055\u308c\u3066\u3044\u3066\u3001\u4e00\u3064\u76ee\u304c\u81ea\u5206\u81ea\u8eab\u3001\u4ee5\u964d\u306f\u6307\u5b9a\u3055\u308c\u305f\u5024\u304c\u9806\u756a\u306b\u683c\u7d0d\u3055\u308c\u3066\u304d\u307e\u3059\u3002\u5f15\u6570\u306f\u300c\u30c0\u30f3\u30d7\u3057\u305f\u3044\u30d5\u30a1\u30a4\u30eb\u540d\u300d\u3068\u3044\u3046\u3053\u3068\u306a\u306e\u3067\u3001<code>len(argv) == 2<\/code>\u306f\u30c1\u30a7\u30c3\u30af\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u306d\u3002\u6b21\u306b\u6307\u5b9a\u3055\u308c\u305f\u30d5\u30a1\u30a4\u30eb\u304c\u5b58\u5728\u3059\u308b\u3053\u3068\u3092\u30c1\u30a7\u30c3\u30af\u3057\u307e\u3057\u3087\u3046\u3002\u30d5\u30a1\u30a4\u30eb\u304c\u5b58\u5728\u3059\u308b\u304b\u3069\u3046\u304b\u306f\u3001<code>os.path.exists<\/code>\u3092\u4f7f\u3063\u3066\u78ba\u8a8d\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u3053\u307e\u3067\u3067\u3001\u4ee5\u4e0b\u306e\u901a\u308a\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=\"\">from sys import argv\nfrom os.path import exists\n\nprocess = '\u51e6\u7406\uff1a\u30d5\u30a1\u30a4\u30eb\u306e\u5185\u5bb9\u309216\u9032\u6570\u3067\u30c0\u30f3\u30d7\u3059\u308b'\nhowtouse = f'\u4f7f\u3044\u65b9\uff1apython {argv[0]} \u30c0\u30f3\u30d7\u3057\u305f\u3044\u30d5\u30a1\u30a4\u30eb\u540d'\n\nif len(argv) != 2:\n    print(howtouse)\n    exit()\n\nif not exists(argv[1]):\n    print(f\"\u6307\u5b9a\u3055\u308c\u305f\u30d5\u30a1\u30a4\u30eb[{argv[1]}]\u306f\u5b58\u5728\u3057\u307e\u305b\u3093\u3002\")\n    exit()<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u3000\u3053\u3053\u3067\u4f55\u6c17\u306a\u304f\u767b\u5834\u3057\u307e\u3057\u305f\u304c\u3001<code>f'\u4f7f\u3044\u65b9\uff1apython {argv[0]} \u30c0\u30f3\u30d7\u3057\u305f\u3044\u30d5\u30a1\u30a4\u30eb\u540d'<\/code>\u306e\u3088\u3046\u306b\u3001\u6587\u5b57\u5217\u306e\u5f15\u7528\u7b26\u306e\u524d\u306b<code>f<\/code>\u304c\u3064\u3044\u3066\u3044\u308b\u3068\u3001\u6587\u5b57\u5217\u4e2d\u306e<code>{...}<\/code>\u306e\u4e2d\u306b\u8a18\u8f09\u306e\u5909\u6570\u3092\u5c55\u958b\u3057\u3066\u6587\u5b57\u5217\u306b\u3057\u3066\u304f\u308c\u307e\u3059\u3002\u3053\u306e\u4f8b\u306e\u5834\u5408\u3001<code>argv[0]<\/code>\u304c<code>hexdump.py<\/code>\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3000\u3053\u3053\u304b\u3089\u672c\u756a\u3067\u3059\u3002\u6307\u5b9a\u3055\u308c\u305f\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u3044\u3066\u5185\u5bb9\u309216\u9032\u6570\u3067\u30c0\u30f3\u30d7\u3057\u3066\u3044\u304d\u307e\u3059\u30021\u30d0\u30a4\u30c8\u305a\u3064\u51e6\u7406\u3057\u3066\u3044\u304d\u307e\u3059\u306e\u3067\u3001\u6587\u5b57\u5217\u3067\u306f\u306a\u304f\u3001\u30d0\u30a4\u30c8\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3068\u3057\u3066\u51e6\u7406\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u306e\u3067\u3001<code>open<\/code>\u306e\u30e2\u30fc\u30c9\u306f<code>'rb'<\/code>\u3067\u6307\u5b9a\u3057\u307e\u3059\u3002<code>r<\/code>\u306f<code>reading<\/code>\u3001\u8aad\u307f\u8fbc\u307f\u5c02\u7528\u3067\u3001<code>b<\/code>\u306f<code>binary<\/code>\u3001\u30d0\u30a4\u30ca\u30ea\u3067\u3059\u306d\u3002\u901a\u5e38\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306a\u3089<code>open<\/code>\u3057\u3066<code>close<\/code>\u3068\u3044\u3046\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u304c\u3001\u3053\u3053\u306f\u30d1\u30a4\u30bd\u30cb\u30c3\u30af\u306b<code>with<\/code>\u53e5\u3092\u4f7f\u3044\u307e\u3059\u3002\u3053\u308c\u3067\u4f55\u304b\u3042\u3063\u3066\u3082\u5fc5\u305a\u81ea\u52d5\u3067<code>close<\/code>\u304c\u547c\u3073\u51fa\u3055\u308c\u308b\u3053\u3068\u304c\u4fdd\u8a3c\u3055\u308c\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=\"\">with open(argv[1], 'rb') as f:\n    data = f.read()<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u308c\u3067\u3001\u30d5\u30a1\u30a4\u30eb\u306e\u5185\u5bb9\u3092\u3059\u3079\u3066\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002\u3042\u3068\u306f\u3001\u51fa\u529b\u3067\u3059\u306d\u30021\u30d0\u30a4\u30c8\u305a\u3064\u300116\u9032\u6570\u3067\u51fa\u529b\u3057\u307e\u3057\u3087\u3046\u3002\u30b9\u30da\u30fc\u30b9\u3092\u3072\u3068\u3064\u305a\u3064\u3042\u3051\u3066\u300120\u30d0\u30a4\u30c8\u3067\u6539\u884c\u300110\u30d0\u30a4\u30c8\u3067\u30b9\u30da\u30fc\u30b9\u3075\u305f\u3064\u3001\u51fa\u529b\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u307f\u307e\u3057\u3087\u3046\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=\"\">for i, x in enumerate(data, 1):\n    print(f\"{x:02x}\",end=' ')\n    if i % 20 == 0:\n        print()\n    elif i % 10 == 0:\n        print(end=' ')<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u3053\u3067\u4f55\u6c17\u306a\u304f<code>enumerate<\/code>\u304c\u767b\u5834\u3057\u307e\u3057\u305f\u3002\u57fa\u672c\u7684\u306b\u3001Python\u306e<code>for<\/code>\u30eb\u30fc\u30d7\u306f\u30b7\u30fc\u30b1\u30f3\u30b9\u3068\u547c\u3070\u308c\u308b\u7e70\u308a\u8fd4\u3057\u8981\u7d20\u3092\u6301\u3063\u305f\u3082\u306e\uff08\u3053\u3053\u3067\u306f<code>data<\/code>\uff09\u3092\u7e70\u308a\u8fd4\u3057\u3066\u51e6\u7406\u3059\u308b\u305f\u3081\u306b\u4f7f\u3044\u307e\u3059\u3002\u5bfe\u8c61\u3068\u306a\u308b\u8981\u7d20\u3092\u3072\u3068\u3064\u305a\u3064\u51e6\u7406\u3057\u3066\u3044\u304f\u3068\u304d\u306b\u306f<code>data<\/code>\u3092<code>for x in data:<\/code>\u3068\u6307\u5b9a\u3059\u308b\u3060\u3051\u3067\u6e08\u3080\u306e\u3067\u3059\u3002\u3067\u306f\u3001<code>enumerate<\/code>\u306f\u4f55\u306e\u305f\u3081\u306b\u5fc5\u8981\u306a\u306e\u3067\u3057\u3087\u3046\u304b\u3002\u4eca\u56de\u306e\u3088\u3046\u306b\u3001\u8981\u7d20\u3092\u6570\u3048\u3066\u3044\u3063\u3066\u300120\u500b\u76ee\u3067\u6539\u884c\u3057\u305f\u3044\u3068\u304b\u3001\u5225\u306e\u30ea\u30b9\u30c8\u306e\u540c\u3058\u4f4d\u7f6e\u306e\u8981\u7d20\u3092\u4e00\u7dd2\u306b\u51e6\u7406\u3057\u305f\u3044\u3068\u304d\u306b\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002\u4e0a\u8a18\u306e\u3088\u3046\u306b\u6307\u5b9a\u3059\u308b\u3068\u3001\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\uff08\u9806\u756a)\u3068\u8981\u7d20\u3092\u540c\u6642\u306b\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\u3044\u308f\u3086\u308b\u30a4\u30c7\u30a3\u30aa\u30e0\u3060\u3068\u601d\u3063\u3066\u899a\u3048\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002\u3061\u306a\u307f\u306b\u3001\u4eca\u56de\u6307\u5b9a\u3057\u305f\u7b2c\u4e8c\u5f15\u6570\u306e<code>1<\/code>\u306f\u3001\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306e\u521d\u671f\u5024\u3067\u6307\u5b9a\u3057\u306a\u3044\u5834\u5408\u306f<code>0<\/code>\u304b\u3089\u59cb\u307e\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002\u3082\u3061\u308d\u3093<code>enumerate<\/code>\u3092\u4f7f\u308f\u306a\u304f\u3066\u3082\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a18\u8f09\u3067\u304d\u307e\u3059\u304c\u3001\u4f7f\u3063\u305f\u65b9\u304c\u3088\u308a\u30d1\u30a4\u30bd\u30cb\u30c3\u30af\u3060\u305d\u3046\u3067\u3059\u3002\u4e8c\u884c\u5c11\u306a\u304f\u66f8\u3051\u308b\u304b\u3089\u304b\u306a\uff1f(\u7b11)<\/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=\"\">i = 0\nfor x in data:\n    i += 1\n    print(f\"{x:02x}\",end=' ')\n    if i % 20 == 0:\n        print()\n    elif i % 10 == 0:\n        print(end=' ')<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u3061\u306a\u307f\u306b\u3001<code>print<\/code>\u306e<code>end=' '<\/code>\u306f\u3001\u51fa\u529b\u306e\u6700\u5f8c\u306b\u8ffd\u52a0\u3055\u308c\u308b\u6587\u5b57\u3067\u3001\u521d\u671f\u5024\u306f\u6539\u884c\u30b3\u30fc\u30c9\u306b\u306a\u308a\u307e\u3059\u3002<code>end=' '<\/code>\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3067\u3001\u6539\u884c\u304c\u6291\u6b62\u3055\u308c\u3066\u7a7a\u767d\u304c\u8ffd\u52a0\u3055\u308c\u307e\u3059\u3002\u3053\u306e\u305f\u3081\u300120\u884c\u3054\u3068\u306e\u6539\u884c\u306e\u305f\u3081\u306b<code>print()<\/code>\u304c\u8a18\u8ff0\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u307e\u305f\u3001<code>f'{x:02x}'<\/code>\u306e\u8a18\u8f09\u3067\u3059\u304c\u3001\u4e0a\u8ff0\u3057\u305f\u3088\u3046\u306b\u5909\u6570<code>x<\/code>\u306e\u5024\u3092\u6587\u5b57\u5217\u306b\u5c55\u958b\u3057\u3066\u304f\u308c\u307e\u3059\u304c<code>:02x<\/code>\u306e\u3088\u3046\u306b\u30b3\u30ed\u30f3(<code>:<\/code>)\u3092\u4ed8\u3051\u308b\u3053\u3068\u3067\u66f8\u5f0f\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u6307\u5b9a\u3067\u3001\u524d\u30bc\u30ed\u4ed8\u304d\u306e2\u6841\u300116\u9032\u6570\u3067\u51fa\u529b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u308c\u3089\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u7d50\u679c\u304c\u51fa\u529b\u3055\u308c\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=\"\">(base) C:\\work\\friStudy&gt;python hexdump.py hexdump.py\n66 72 6f 6d 20 73 79 73 20 69  6d 70 6f 72 74 20 61 72 67 76\n0d 0a 66 72 6f 6d 20 6f 73 2e  70 61 74 68 20 69 6d 70 6f 72\n74 20 65 78 69 73 74 73 0d 0a  0d 0a 70 72 6f 63 65 73 73 20\n(\u2026 \u4e2d\u7565 \u2026)\n20 20 20 70 72 69 6e 74 28 29  0d 0a 20 20 20 20 65 6c 69 66\n20 69 20 25 20 31 30 20 3d 3d  20 30 3a 0d 0a 20 20 20 20 20\n20 20 20 70 72 69 6e 74 28 65  6e 64 3d 27 20 27 29 0d 0a\n(base) C:\\work\\friStudy&gt;<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u308c\u3067\u3044\u308d\u3044\u308d\u306a\u30d5\u30a1\u30a4\u30eb\u309216\u9032\u6570\u3067\u30c0\u30f3\u30d7\u51fa\u529b\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4eca\u56de\u306f\u3053\u3053\u307e\u3067\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u65e5\u3082\u898b\u306b\u6765\u3066\u304f\u3060\u3055\u3063\u3066\u3001\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3059\u3002 \u3000Python\u52c9\u5f37\u4f1a\u3001\u3072\u3068\u3068\u304a\u308a\u306e\u8981\u7d20\u306b\u3064\u3044\u3066\u3001\u8aac\u660e\u3055\u305b\u3066\u3044\u305f\u3060\u304d\u307e\u3057\u305f\u3002\u3057\u304b\u3057\u3001\u5b9f\u969b\u306b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3057\u306a\u3044\u3068\u3001\u306a\u304b\u306a\u304b\u8eab\u306b\u3064\u304d\u307e\u305b\u3093\u3002\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u300c\u30d0\u30a4\u30ca\u30ea\u30d5\u30a1\u30a4\u30eb\u306e &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.ishikawasekkei.com\/index.php\/2020\/01\/17\/python-hex-dump\/\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;Python\u306716\u9032\u6570\u30c0\u30f3\u30d7\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u308b&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":749,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,2],"tags":[],"class_list":["post-747","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-program","category-blog"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.ishikawasekkei.com\/index.php\/wp-json\/wp\/v2\/posts\/747","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=747"}],"version-history":[{"count":5,"href":"https:\/\/www.ishikawasekkei.com\/index.php\/wp-json\/wp\/v2\/posts\/747\/revisions"}],"predecessor-version":[{"id":843,"href":"https:\/\/www.ishikawasekkei.com\/index.php\/wp-json\/wp\/v2\/posts\/747\/revisions\/843"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ishikawasekkei.com\/index.php\/wp-json\/wp\/v2\/media\/749"}],"wp:attachment":[{"href":"https:\/\/www.ishikawasekkei.com\/index.php\/wp-json\/wp\/v2\/media?parent=747"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ishikawasekkei.com\/index.php\/wp-json\/wp\/v2\/categories?post=747"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ishikawasekkei.com\/index.php\/wp-json\/wp\/v2\/tags?post=747"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}