{"id":44850,"date":"2018-02-27T08:33:16","date_gmt":"2018-02-26T23:33:16","guid":{"rendered":"https:\/\/www.sejuku.net\/blog\/?p=44850"},"modified":"2024-05-06T11:46:12","modified_gmt":"2024-05-06T02:46:12","slug":"%e3%80%90python%e5%85%a5%e9%96%80%e3%80%91%e3%82%b9%e3%83%a9%e3%82%a4%e3%82%b9%e3%81%a7%e6%96%87%e5%ad%97%e5%88%97%e3%82%84%e3%83%aa%e3%82%b9%e3%83%88%e3%82%92%e6%93%8d%e4%bd%9c%e3%81%97%e3%82%88","status":"publish","type":"post","link":"https:\/\/www.sejuku.net\/blog\/44850","title":{"rendered":"Python\u306e\u30b9\u30e9\u30a4\u30b9\u306e\u4f7f\u3044\u65b9\u30924\u3064\u306e\u30d1\u30bf\u30fc\u30f3\u3067\u7c21\u5358\u89e3\u8aac"},"content":{"rendered":"\n<p><div class=\"box_voice\">Python\u3067\u30ea\u30b9\u30c8\u3084\u6587\u5b57\u5217\u304b\u3089\u4e00\u90e8\u306e\u6587\u5b57\u5217\u3092\u53d6\u308a\u51fa\u3057\u305f\u3044<br>Python\u306e\u30b9\u30e9\u30a4\u30b9\u306e\u4f7f\u3044\u65b9\u304c\u308f\u304b\u3089\u306a\u3044\u2026<\/div><\/p>\n\n\n\n<p>\u30b9\u30e9\u30a4\u30b9\u306f\u30b7\u30fc\u30b1\u30f3\u30b9\u578b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u5bfe\u3057\u3066\u6709\u52b9\u3067\u3001\u8981\u7d20\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3067\u4e00\u90e8\u306e\u6587\u5b57\u5217\u3092\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002\u4eca\u56de\u306f\u3001\u30ea\u30b9\u30c8\u3084\u6587\u5b57\u5217\u304b\u3089\u4e00\u90e8\u3092\u53d6\u308a\u51fa\u3059\u64cd\u4f5c\u30b9\u30e9\u30a4\u30b9\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u30b9\u30e9\u30a4\u30b9\u306e\u57fa\u672c\u304b\u3089\u5fdc\u7528\u7684\u306a\u4f7f\u3044\u65b9\u306b\u3064\u3044\u3066\u7d39\u4ecb\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n<div class=\"box01\">\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u30b9\u30e9\u30a4\u30b9\u3068\u306f\uff1f\u30b7\u30fc\u30b1\u30f3\u30b9\u578b\u3068\u306f\uff1f<\/li>\n\n\n\n<li>\u30b9\u30e9\u30a4\u30b9\u306e\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9<\/li>\n\n\n\n<li>\u30b9\u30e9\u30a4\u30b9\u306e\u4e2d\u3067\u306e\u30b9\u30c6\u30c3\u30d7\u306e\u4f7f\u3044\u65b9<\/li>\n\n\n\n<li>\u5f8c\u308d\u304b\u3089\u30b9\u30e9\u30a4\u30b9\u3092\u3059\u308b\u65b9\u6cd5<\/li>\n<\/ul>\n\n\n<\/div>\n\n\n\n<p>\u30b9\u30e9\u30a4\u30b9\u306b\u3064\u3044\u3066\u3084\u3055\u3057\u304f\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u305c\u3072\u53c2\u8003\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p>\u203b \u3053\u306e\u8a18\u4e8b\u306e\u30b3\u30fc\u30c9\u306fPython 3.7, Ubuntu 18.04\u3067\u52d5\u4f5c\u78ba\u8a8d\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u672c\u8a18\u4e8b\u3092\u8aad\u3080\u524d\u306b\u3001Python\u304c\u3069\u3093\u306a\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u306a\u306e\u304b\u3092\u304a\u3055\u3089\u3044\u3057\u3066\u304a\u304d\u305f\u3044\u4eba\u306f\u6b21\u306e\u8a18\u4e8b\u3092\u53c2\u8003\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p>\u2192&nbsp;<a href=\"https:\/\/www.sejuku.net\/blog\/7720\">Python\u3068\u306f\uff1f\u7279\u5fb4\u3084\u3067\u304d\u308b\u3053\u3068\u3001\u6d3b\u7528\u4f8b\u3092\u308f\u304b\u308a\u3084\u3059\u304f\u7c21\u5358\u306b\u89e3\u8aac<\/a><\/p>\n\n\n\n<p>\u306a\u304a\u3001\u305d\u306e\u4ed6\u306ePython\u306e\u8a18\u4e8b\u306b\u3064\u3044\u3066\u306f<a href=\"https:\/\/www.sejuku.net\/blog\/147190\" target=\"_blank\" rel=\"noopener\">\u3053\u3061\u3089<\/a>\u306b\u307e\u3068\u3081\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Python\u306e\u30b9\u30e9\u30a4\u30b9\u3068\u306f<\/h2>\n\n\n\n<p>\u30b9\u30e9\u30a4\u30b9\u306f\u3001<b>\u30b7\u30fc\u30b1\u30f3\u30b9\u578b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/b>\u306e\u8981\u7d20\u306e\u7bc4\u56f2\u3092\u6307\u5b9a\u3057\u3066\u3001\u65b0\u3057\u304f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u308b\u3053\u3068\u304c\u51fa\u6765\u308b\u6a5f\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u3053\u3067\u30b7\u30fc\u30b1\u30f3\u30b9\u578b\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3068\u306f\u4f55\u304b\u306b\u3064\u3044\u3066\u3001\u77e5\u3063\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002\u30b7\u30fc\u30b1\u30f3\u30b9\u578b\u3068\u306f\u3001\u30ea\u30b9\u30c8\u3084\u6587\u5b57\u5217\u306e\u3088\u3046\u306b\u30c7\u30fc\u30bf\u3092\u9806\u756a\u306b\u51e6\u7406\u3059\u308b\u305f\u3081\u306e\u30c7\u30fc\u30bf\u69cb\u9020\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u306e\u30b7\u30fc\u30b1\u30f3\u30b9\u578b\u306f\u9806\u5e8f\u304c\u3042\u308b\u3068\u3044\u3046\u306e\u304c\u4e00\u3064\u306e\u7279\u5fb4\u3067\u3059\u3002\u307e\u305f\u4ee5\u964d\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3067\u306f\u4e3b\u306b\u30ea\u30b9\u30c8\u3092\u4f7f\u3063\u3066\u3044\u307e\u3059\u304c\u3001\u6587\u5b57\u5217\u306a\u3069\u306e\u30b7\u30fc\u30b1\u30f3\u30b9\u578b\u306b\u3082\u4f7f\u3046\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30b9\u30e9\u30a4\u30b9\u306e\u4f7f\u3044\u65b94\u3064\u306e\u30d1\u30bf\u30fc\u30f3<\/h2>\n\n\n\n<p>\u3053\u3053\u304b\u3089\u306f\u5b9f\u969b\u306b\u30b9\u30e9\u30a4\u30b9\u3092\u4f7f\u3063\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u30b9\u30e9\u30a4\u30b9\u306e\u57fa\u672c<\/h3>\n\n\n\n<p>\u30b9\u30e9\u30a4\u30b9\u306e\u57fa\u672c\u7684\u306a\u69cb\u6587\u306f\u3001\u3053\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">list[\u6700\u521d\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9:\u6700\u5f8c\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9]<\/pre>\n\n\n\n<p>\u3067\u306f\u65e9\u901f\u30b9\u30e9\u30a4\u30b9\u3092\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sample = ['a','b','c','d','e','f','g']\n\nprint(sample[1:4]) # 1\u756a\u76ee\u304b\u30894\u756a\u76ee\u307e\u3067\nprint(sample[:4]) # \u6700\u521d\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u7701\u7565\u3059\u308b\u30680\u756a\u76ee\u304b\u3089\nprint(sample[3:]) # \u6700\u5f8c\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u7701\u7565\u3059\u308b\u3068\u6700\u5f8c\u307e\u3067\nprint(sample[:-2]) # \u8ca0\u306e\u6570\u3092\u6307\u5b9a\u3059\u308b\u3068\u30b7\u30fc\u30b1\u30f3\u30b9\u306e\u672b\u5c3e\u304b\u3089\u6570\u3048\u308b<\/pre>\n\n\n\n<p>\u5b9f\u884c\u7d50\u679c<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">['b', 'c', 'd'] # 1\u756a\u76ee\u304b\u30894\u756a\u76ee\u307e\u3067\n['a', 'b', 'c', 'd'] # \u6700\u521d\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u7701\u7565\u3059\u308b\u30680\u756a\u76ee\u304b\u3089\n['d', 'e', 'f', 'g'] # \u6700\u5f8c\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u7701\u7565\u3059\u308b\u3068\u6700\u5f8c\u307e\u3067\n['a', 'b', 'c', 'd', 'e'] # \u8ca0\u306e\u6570\u3092\u6307\u5b9a\u3059\u308b\u3068\u30b7\u30fc\u30b1\u30f3\u30b9\u306e\u672b\u5c3e\u304b\u3089\u6570\u3048\u308b<\/pre>\n\n\n\n<p>\u30b9\u30e9\u30a4\u30b9\u306e\u57fa\u672c\u7684\u306a\u69cb\u6587\u3068\u3001\u305d\u306e\u30eb\u30fc\u30eb\u3055\u3048\u3057\u3063\u304b\u308a\u7406\u89e3\u3067\u304d\u308c\u3070\u3068\u3066\u3082\u76f4\u611f\u7684\u306b\u4f7f\u3046\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\u306d\u3002<\/p>\n\n\n\n<p>\u6c17\u3092\u3064\u3051\u308b\u3068\u3053\u308d\u306f2\u70b9\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n<div class=\"box01\">\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306f0\u304b\u3089\u6570\u3048\u308b\u3002<\/li>\n\n\n\n<li>\u6700\u5f8c\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3067\u6307\u5b9a\u3057\u305f\u6570\u304b\u30891\u5f15\u3044\u305f\u6570\u307e\u3067\u30b9\u30e9\u30a4\u30b9\u3055\u308c\u308b\u3002<\/li>\n<\/ol>\n\n\n<\/div>\n\n\n\n<p>\u6587\u5b57\u5217\u304b\u3089\u306e\u629c\u304d\u51fa\u3057\u3001\u5207\u308a\u51fa\u3057\u3082\u7c21\u5358\u306b\u51fa\u6765\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u3061\u3089\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">fruits = \"apple,orange,banana\"\n\nprint(fruits[0:5]) # \u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306e0\u301c4\u307e\u3067\u629c\u304d\u51fa\u3057\nprint(fruits[6:12]) # \u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306e6\u301c11\u307e\u3067\u629c\u304d\u51fa\u3057\nprint(fruits[13:22]) # \u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306e13\u301c21\u307e\u3067\u629c\u304d\u51fa\u3057<\/pre>\n\n\n\n<p>\u5b9f\u884c\u7d50\u679c<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">apple # \u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306e0\u301c4\u307e\u3067\u629c\u304d\u51fa\u3057\norange # \u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306e6\u301c11\u307e\u3067\u629c\u304d\u51fa\u3057\nbanana # \u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306e13\u301c21\u307e\u3067\u629c\u304d\u51fa\u3057<\/pre>\n\n\n\n<p>\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u9069\u5207\u306b\u6e21\u305b\u3070\u3001\u6587\u5b57\u5217\u306e\u9014\u4e2d\u3067\u3082\u7c21\u5358\u306b\u629c\u304d\u51fa\u3059\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30b7\u30fc\u30b1\u30f3\u30b9\u578b\u306f\u6700\u521d\u306e\u8981\u7d20\u3068\u6700\u5f8c\u306e\u8981\u7d20\u306b\u3057\u304b\u89e6\u308b\u3053\u3068\u304c\u51fa\u6765\u306a\u3044\u3068\u601d\u308f\u308c\u304c\u3061\u3067\u3059\u304c\u3001\u30b9\u30e9\u30a4\u30b9\u3092\u4f7f\u3048\u3070\u7c21\u5358\u306b\u9593\u306e\u8981\u7d20\u3092\u53d6\u308a\u51fa\u3059\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u30b9\u30c6\u30c3\u30d7\u3092\u6307\u5b9a\u3059\u308b\u65b9\u6cd5<\/h3>\n\n\n\n<p>\u4e0a\u8a18\u3067\u7d39\u4ecb\u3057\u305f\u30b9\u30e9\u30a4\u30b9\u306f\u6700\u521d\u3068\u6700\u5f8c\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3060\u3051\u3092\u6307\u5b9a\u3057\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u3053\u3053\u3067\u3001\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u4ee5\u5916\u306b\u3082<b>\u30b9\u30c6\u30c3\u30d7\u3092\u6307\u5b9a<\/b>\u3057\u305f\u30b9\u30e9\u30a4\u30b9\u306e\u65b9\u6cd5\u306b\u3064\u3044\u3066\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002\u30b9\u30c6\u30c3\u30d7\u3092\u6307\u5b9a\u3059\u308b\u3068\u3001\u8981\u7d20\u30921\u3064\u304a\u304d\u30012\u3064\u304a\u304d\u306b\u306a\u3069\u306e\u6307\u5b9a\u3092\u3059\u308b\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u57fa\u672c\u7684\u306a\u69cb\u6587\u306f\u3053\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">list[\u6700\u521d\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9:\u6700\u5f8c\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9:\u30b9\u30c6\u30c3\u30d7]<\/pre>\n\n\n\n<p>\u3053\u308c\u307e\u3067\u306e\u30b9\u30e9\u30a4\u30b9\u3068\u540c\u3058\u3088\u3046\u306b\u4f7f\u3046\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\u306d\u3002<\/p>\n\n\n\n<p>\u3044\u304f\u3064\u304b\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">mylist = ['a','b','c','d','e','f','g']\n \nprint(mylist[::2]) # \u6700\u521d\u304b\u3089\u6700\u5f8c\u307e\u3067\u30922\u3064\u304a\u304d\u306b\nprint(mylist[1:6:3]) # \u30a4\u30f3\u30c7\u30c3\u30af\u30b91\u304b\u3089\u30a4\u30f3\u30c7\u30c3\u30af\u30b95\u307e\u30673\u3064\u304a\u304d\u306b<\/pre>\n\n\n\n<p>\u5b9f\u884c\u7d50\u679c<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">['a', 'c', 'e', 'g'] # \u6700\u521d\u304b\u3089\u6700\u5f8c\u307e\u3067\u30922\u3064\u304a\u304d\u306b\n['b', 'e'] # \u30a4\u30f3\u30c7\u30c3\u30af\u30b91\u304b\u3089\u30a4\u30f3\u30c7\u30c3\u30af\u30b95\u307e\u30673\u3064\u304a\u304d\u306b<\/pre>\n\n\n\n<p>\u3068\u3066\u3082\u7c21\u5358\u3067\u3059\u306d\u3002<\/p>\n\n\n\n<p>\u3055\u3089\u306b\u3053\u306e\u30b9\u30c6\u30c3\u30d7\u3092\u5fdc\u7528\u3057\u305f\u65b9\u6cd5\u3092\u6b21\u306e\u7ae0\u3067\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u30b9\u30e9\u30a4\u30b9\u3067\u9006\u9806\u306b\u3059\u308b\u65b9\u6cd5<\/h3>\n\n\n\n<p>\u5148\u7a0b\u306e\u7ae0\u3067\u306f\u30b9\u30e9\u30a4\u30b9\u3067\u30b9\u30c6\u30c3\u30d7\u3092\u4f7f\u3046\u65b9\u6cd5\u3092\u89e3\u8aac\u3057\u307e\u3057\u305f\u3002\u4eca\u56de\u306f\u3053\u306e\u30b9\u30e9\u30a4\u30b9\u3092\u4f7f\u3063\u3066<b>\u9006\u9806\u306b\u8981\u7d20\u3092\u53d6\u308a\u51fa\u3057\u3066\u307f\u307e\u3057\u3087\u3046<\/b>\u3002<\/p>\n\n\n\n<p>\u3053\u3061\u3089\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">mylist = ['a','b','c','d','e','f','g']\n \nprint(mylist[::-1]) # \u30b9\u30c6\u30c3\u30d7\u3092\u30de\u30a4\u30ca\u30b91\u306b\u3057\u3066\u9006\u9806\u306b\u8981\u7d20\u3092\u53d6\u308a\u51fa\u3059<\/pre>\n\n\n\n<p>\u5b9f\u884c\u7d50\u679c<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">['g', 'f', 'e', 'd', 'c', 'b', 'a'] # \u30b9\u30c6\u30c3\u30d7\u3092\u30de\u30a4\u30ca\u30b91\u306b\u3057\u3066\u9006\u9806\u306b\u8981\u7d20\u3092\u53d6\u308a\u51fa\u3059<\/pre>\n\n\n\n<p>\u30b9\u30e9\u30a4\u30b9\u306e\u30b9\u30c6\u30c3\u30d7\u3092\u4f7f\u3046\u3068\u3001\u3068\u3066\u3082\u7c21\u5358\u306b\u30ea\u30d0\u30fc\u30b9\u3059\u308b\u3053\u3068\u304c\u51fa\u6765\u307e\u3057\u305f\u306d\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u591a\u6b21\u5143\u914d\u5217\u306b\u5bfe\u3059\u308b\u30b9\u30e9\u30a4\u30b9<\/h3>\n\n\n\n<p>\u5c11\u3057\u767a\u5c55\u7684\u306a\u5185\u5bb9\u306b\u89e6\u308c\u3066\u307f\u307e\u3057\u3087\u3046\uff01<\/p>\n\n\n\n<p>numpy\u3068\u3044\u3046Python\u306e\u884c\u5217\u8a08\u7b97\u30e9\u30a4\u30d6\u30e9\u30ea\u306b\u306f\u3001\u914d\u5217\uff08np.array\uff09\u578b\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u914d\u5217\u3078\u306e\u30a2\u30af\u30bb\u30b9\u306e\u65b9\u6cd5\u306f\u57fa\u672c\u7684\u306b\u30ea\u30b9\u30c8\u3068\u540c\u3058\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3067\u3059\u304c\u591a\u6b21\u5143\u914d\u5217\uff08\u914d\u5217\u306e\u4e2d\u306b\u914d\u5217\u304c\u5165\u3063\u3066\u3044\u308b\u3082\u306e\uff09\u306e\u5834\u5408\u306f\u5c11\u3057\u7570\u306a\u308a\u307e\u3059\u3002\u3053\u3053\u3067\u306f\u591a\u6b21\u5143\u914d\u5217\u306b\u5bfe\u3059\u308b\u30b9\u30e9\u30a4\u30b9\u306e\u4ed5\u65b9\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">import numpy as np\nX = np.array([[1,2,3],[10,11,12],[13,14,15]])\n\nprint(X[:,1]) # \u5168\u3066\u306e\u914d\u5217\u306e1\u756a\u76ee\u306e\u8981\u7d20\u306b\u30a2\u30af\u30bb\u30b9\nprint(X[2,:]) # 2\u756a\u76ee\u306e\u914d\u5217\u306e\u3059\u3079\u3066\u306e\u8981\u7d20\u306b\u30a2\u30af\u30bb\u30b9 == X[2]\nprint(X[:2,1:]) # 1\u756a\u76ee\u307e\u3067\u306e\u914d\u5217\u306e1\u756a\u76ee\u4ee5\u964d\u306e\u8981\u7d20\u306b\u30a2\u30af\u30bb\u30b9<\/pre>\n\n\n\n<p>\u5b9f\u884c\u7d50\u679c<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[ 2 11 14]  # \u5168\u3066\u306e\u914d\u5217\u306e1\u756a\u76ee\u306e\u8981\u7d20\u306b\u30a2\u30af\u30bb\u30b9\n[13 14 15]  # 2\u756a\u76ee\u306e\u914d\u5217\u306e\u3059\u3079\u3066\u306e\u8981\u7d20\u306b\u30a2\u30af\u30bb\u30b9 == X[2]\n[[ 2  3]\n [11 12]]    # 1\u756a\u76ee\u307e\u3067\u306e\u914d\u5217\u306e1\u756a\u76ee\u4ee5\u964d\u306e\u8981\u7d20\u306b\u30a2\u30af\u30bb\u30b9<\/pre>\n\n\n\n<p>\u591a\u6b21\u5143\u914d\u5217\u3078\u306e\u30a2\u30af\u30bb\u30b9\u3082\u3001\u30b9\u30e9\u30a4\u30b9\u3092\u4f7f\u3046\u3068\u304b\u3063\u3053\u3088\u304f\u3067\u304d\u307e\u3059\u306d\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u307e\u3068\u3081<\/h2>\n\n\n\n<p>\u4eca\u56de\u306fPython\u306e\u30b9\u30e9\u30a4\u30b9\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u3066\u304d\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u30b9\u30e9\u30a4\u30b9\u306e\u57fa\u672c\u7684\u306a\u69cb\u6587\u3068\u30de\u30a4\u30ca\u30b9\u3092\u6307\u5b9a\u3057\u305f\u5834\u5408\u306e\u6319\u52d5\u3001\u30ea\u30d0\u30fc\u30b9\u3092\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u304a\u3055\u3048\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<p>\u30b9\u30e9\u30a4\u30b9\u3092\u4f7f\u3046\u3053\u3068\u304c\u51fa\u6765\u308b\u3068\u30b7\u30fc\u30b1\u30f3\u30b9\u578b\u306e\u6271\u3044\u304c\u3068\u3066\u3082\u697d\u306b\u3001\u4fbf\u5229\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u307f\u306a\u3055\u3093\u3082\u305c\u3072\u3001\u30b9\u30e9\u30a4\u30b9\u3092\u4f7f\u3063\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Python\u3067\u30ea\u30b9\u30c8\u3084\u6587\u5b57\u5217\u304b\u3089\u4e00\u90e8\u306e\u6587\u5b57\u5217\u3092\u53d6\u308a\u51fa\u3057\u305f\u3044Python\u306e\u30b9\u30e9\u30a4\u30b9\u306e\u4f7f\u3044\u65b9\u304c\u308f\u304b\u3089\u306a\u3044\u2026 \u30b9\u30e9\u30a4\u30b9\u306f\u30b7\u30fc\u30b1\u30f3\u30b9\u578b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u5bfe\u3057\u3066\u6709\u52b9\u3067\u3001\u8981\u7d20\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3067\u4e00\u90e8\u306e\u6587\u5b57\u5217\u3092\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002\u4eca\u56de\u306f\u3001\u30ea\u30b9\u30c8\u3084\u6587 [&hellip;]<\/p>\n","protected":false},"author":16433,"featured_media":99183,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"swell_btn_cv_data":"","footnotes":""},"categories":[2350],"tags":[49],"class_list":["post-44850","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python-study","tag-python"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Python\u306e\u30b9\u30e9\u30a4\u30b9\u306e\u4f7f\u3044\u65b9\u30924\u3064\u306e\u30d1\u30bf\u30fc\u30f3\u3067\u7c21\u5358\u89e3\u8aac | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0<\/title>\n<meta name=\"description\" content=\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c Python\u306e\u30b9\u30e9\u30a4\u30b9\u306e\u4f7f\u3044\u65b9\u30924\u3064\u306e\u30d1\u30bf\u30fc\u30f3\u3067\u7c21\u5358\u89e3\u8aac \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.sejuku.net\/blog\/44850\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python\u306e\u30b9\u30e9\u30a4\u30b9\u306e\u4f7f\u3044\u65b9\u30924\u3064\u306e\u30d1\u30bf\u30fc\u30f3\u3067\u7c21\u5358\u89e3\u8aac | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\" \/>\n<meta property=\"og:description\" content=\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c Python\u306e\u30b9\u30e9\u30a4\u30b9\u306e\u4f7f\u3044\u65b9\u30924\u3064\u306e\u30d1\u30bf\u30fc\u30f3\u3067\u7c21\u5358\u89e3\u8aac \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.sejuku.net\/blog\/44850\" \/>\n<meta property=\"og:site_name\" content=\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/sejuku2013\" \/>\n<meta property=\"article:published_time\" content=\"2018-02-26T23:33:16+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-06T02:46:12+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/02\/python_sllice.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"810\" \/>\n\t<meta property=\"og:image:height\" content=\"460\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@samuraijuku\" \/>\n<meta name=\"twitter:site\" content=\"@samuraijuku\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/44850#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/44850\"},\"author\":{\"name\":\"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/person\\\/d20c57b59dba15001519a8a671183095\"},\"headline\":\"Python\u306e\u30b9\u30e9\u30a4\u30b9\u306e\u4f7f\u3044\u65b9\u30924\u3064\u306e\u30d1\u30bf\u30fc\u30f3\u3067\u7c21\u5358\u89e3\u8aac\",\"datePublished\":\"2018-02-26T23:33:16+00:00\",\"dateModified\":\"2024-05-06T02:46:12+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/44850\"},\"wordCount\":40,\"publisher\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/44850#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/02\\\/python_sllice.jpg\",\"keywords\":[\"python\"],\"articleSection\":[\"Python\u5b66\u7fd2\"],\"inLanguage\":\"ja\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/44850\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/44850\",\"name\":\"Python\u306e\u30b9\u30e9\u30a4\u30b9\u306e\u4f7f\u3044\u65b9\u30924\u3064\u306e\u30d1\u30bf\u30fc\u30f3\u3067\u7c21\u5358\u89e3\u8aac | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/44850#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/44850#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/02\\\/python_sllice.jpg\",\"datePublished\":\"2018-02-26T23:33:16+00:00\",\"dateModified\":\"2024-05-06T02:46:12+00:00\",\"description\":\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c Python\u306e\u30b9\u30e9\u30a4\u30b9\u306e\u4f7f\u3044\u65b9\u30924\u3064\u306e\u30d1\u30bf\u30fc\u30f3\u3067\u7c21\u5358\u89e3\u8aac \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/44850#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/44850\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/44850#primaryimage\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/02\\\/python_sllice.jpg\",\"contentUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/02\\\/python_sllice.jpg\",\"width\":810,\"height\":460},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/44850#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python\u306e\u30b9\u30e9\u30a4\u30b9\u306e\u4f7f\u3044\u65b9\u30924\u3064\u306e\u30d1\u30bf\u30fc\u30f3\u3067\u7c21\u5358\u89e3\u8aac\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/\",\"name\":\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\",\"description\":\"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5b66\u7fd2\u306e\u3059\u3079\u3066\u304c\u30b3\u30b3\u306b\u3002\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#organization\",\"name\":\"\u682a\u5f0f\u4f1a\u793eSAMURAI\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/logo.png\",\"contentUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/logo.png\",\"width\":600,\"height\":600,\"caption\":\"\u682a\u5f0f\u4f1a\u793eSAMURAI\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/sejuku2013\",\"https:\\\/\\\/x.com\\\/samuraijuku\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCCFOQO5aDK0xXam4cUQXT8g\\\/featured\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/person\\\/d20c57b59dba15001519a8a671183095\",\"name\":\"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d91ed20aaa7f873a0f4f35586561303460c1e3864746dddb6ebe0fb093c1952d?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d91ed20aaa7f873a0f4f35586561303460c1e3864746dddb6ebe0fb093c1952d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d91ed20aaa7f873a0f4f35586561303460c1e3864746dddb6ebe0fb093c1952d?s=96&d=mm&r=g\",\"caption\":\"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8\"},\"description\":\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u587e\u306f\u300c\u4eba\u751f\u3092\u5909\u3048\u308b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5b66\u7fd2\u300d\u3092\u30b3\u30f3\u30bb\u30f3\u30d7\u30c8\u306b\u3001\u904e\u53bb\u591a\u304f\u306e\u30d5\u30ea\u30fc\u30e9\u30f3\u30b9\u30a8\u30f3\u30b8\u30cb\u30a2\u3092\u8f29\u51fa\u3057\u305f\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30af\u30fc\u30eb\u3067\u3059\u3002\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8\u3067\u306f\u6280\u8853\u7cfb\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u4e2d\u5fc3\u306b\u6709\u7528\u306a\u60c5\u5831\u3092\u767a\u4fe1\u3057\u3066\u3044\u304d\u307e\u3059\u3002\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/author\\\/samurai-tech\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Python\u306e\u30b9\u30e9\u30a4\u30b9\u306e\u4f7f\u3044\u65b9\u30924\u3064\u306e\u30d1\u30bf\u30fc\u30f3\u3067\u7c21\u5358\u89e3\u8aac | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c Python\u306e\u30b9\u30e9\u30a4\u30b9\u306e\u4f7f\u3044\u65b9\u30924\u3064\u306e\u30d1\u30bf\u30fc\u30f3\u3067\u7c21\u5358\u89e3\u8aac \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.sejuku.net\/blog\/44850","og_locale":"ja_JP","og_type":"article","og_title":"Python\u306e\u30b9\u30e9\u30a4\u30b9\u306e\u4f7f\u3044\u65b9\u30924\u3064\u306e\u30d1\u30bf\u30fc\u30f3\u3067\u7c21\u5358\u89e3\u8aac | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","og_description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c Python\u306e\u30b9\u30e9\u30a4\u30b9\u306e\u4f7f\u3044\u65b9\u30924\u3064\u306e\u30d1\u30bf\u30fc\u30f3\u3067\u7c21\u5358\u89e3\u8aac \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002","og_url":"https:\/\/www.sejuku.net\/blog\/44850","og_site_name":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","article_publisher":"https:\/\/www.facebook.com\/sejuku2013","article_published_time":"2018-02-26T23:33:16+00:00","article_modified_time":"2024-05-06T02:46:12+00:00","og_image":[{"width":810,"height":460,"url":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/02\/python_sllice.jpg","type":"image\/jpeg"}],"author":"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8","twitter_card":"summary_large_image","twitter_creator":"@samuraijuku","twitter_site":"@samuraijuku","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.sejuku.net\/blog\/44850#article","isPartOf":{"@id":"https:\/\/www.sejuku.net\/blog\/44850"},"author":{"name":"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8","@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/person\/d20c57b59dba15001519a8a671183095"},"headline":"Python\u306e\u30b9\u30e9\u30a4\u30b9\u306e\u4f7f\u3044\u65b9\u30924\u3064\u306e\u30d1\u30bf\u30fc\u30f3\u3067\u7c21\u5358\u89e3\u8aac","datePublished":"2018-02-26T23:33:16+00:00","dateModified":"2024-05-06T02:46:12+00:00","mainEntityOfPage":{"@id":"https:\/\/www.sejuku.net\/blog\/44850"},"wordCount":40,"publisher":{"@id":"https:\/\/www.sejuku.net\/blog\/#organization"},"image":{"@id":"https:\/\/www.sejuku.net\/blog\/44850#primaryimage"},"thumbnailUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/02\/python_sllice.jpg","keywords":["python"],"articleSection":["Python\u5b66\u7fd2"],"inLanguage":"ja"},{"@type":"WebPage","@id":"https:\/\/www.sejuku.net\/blog\/44850","url":"https:\/\/www.sejuku.net\/blog\/44850","name":"Python\u306e\u30b9\u30e9\u30a4\u30b9\u306e\u4f7f\u3044\u65b9\u30924\u3064\u306e\u30d1\u30bf\u30fc\u30f3\u3067\u7c21\u5358\u89e3\u8aac | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","isPartOf":{"@id":"https:\/\/www.sejuku.net\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.sejuku.net\/blog\/44850#primaryimage"},"image":{"@id":"https:\/\/www.sejuku.net\/blog\/44850#primaryimage"},"thumbnailUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/02\/python_sllice.jpg","datePublished":"2018-02-26T23:33:16+00:00","dateModified":"2024-05-06T02:46:12+00:00","description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c Python\u306e\u30b9\u30e9\u30a4\u30b9\u306e\u4f7f\u3044\u65b9\u30924\u3064\u306e\u30d1\u30bf\u30fc\u30f3\u3067\u7c21\u5358\u89e3\u8aac \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002","breadcrumb":{"@id":"https:\/\/www.sejuku.net\/blog\/44850#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.sejuku.net\/blog\/44850"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.sejuku.net\/blog\/44850#primaryimage","url":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/02\/python_sllice.jpg","contentUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/02\/python_sllice.jpg","width":810,"height":460},{"@type":"BreadcrumbList","@id":"https:\/\/www.sejuku.net\/blog\/44850#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.sejuku.net\/blog\/"},{"@type":"ListItem","position":2,"name":"Python\u306e\u30b9\u30e9\u30a4\u30b9\u306e\u4f7f\u3044\u65b9\u30924\u3064\u306e\u30d1\u30bf\u30fc\u30f3\u3067\u7c21\u5358\u89e3\u8aac"}]},{"@type":"WebSite","@id":"https:\/\/www.sejuku.net\/blog\/#website","url":"https:\/\/www.sejuku.net\/blog\/","name":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","description":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5b66\u7fd2\u306e\u3059\u3079\u3066\u304c\u30b3\u30b3\u306b\u3002","publisher":{"@id":"https:\/\/www.sejuku.net\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.sejuku.net\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Organization","@id":"https:\/\/www.sejuku.net\/blog\/#organization","name":"\u682a\u5f0f\u4f1a\u793eSAMURAI","url":"https:\/\/www.sejuku.net\/blog\/","logo":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2023\/07\/logo.png","contentUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2023\/07\/logo.png","width":600,"height":600,"caption":"\u682a\u5f0f\u4f1a\u793eSAMURAI"},"image":{"@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/sejuku2013","https:\/\/x.com\/samuraijuku","https:\/\/www.youtube.com\/channel\/UCCFOQO5aDK0xXam4cUQXT8g\/featured"]},{"@type":"Person","@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/person\/d20c57b59dba15001519a8a671183095","name":"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/secure.gravatar.com\/avatar\/d91ed20aaa7f873a0f4f35586561303460c1e3864746dddb6ebe0fb093c1952d?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/d91ed20aaa7f873a0f4f35586561303460c1e3864746dddb6ebe0fb093c1952d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d91ed20aaa7f873a0f4f35586561303460c1e3864746dddb6ebe0fb093c1952d?s=96&d=mm&r=g","caption":"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8"},"description":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u587e\u306f\u300c\u4eba\u751f\u3092\u5909\u3048\u308b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5b66\u7fd2\u300d\u3092\u30b3\u30f3\u30bb\u30f3\u30d7\u30c8\u306b\u3001\u904e\u53bb\u591a\u304f\u306e\u30d5\u30ea\u30fc\u30e9\u30f3\u30b9\u30a8\u30f3\u30b8\u30cb\u30a2\u3092\u8f29\u51fa\u3057\u305f\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30af\u30fc\u30eb\u3067\u3059\u3002\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8\u3067\u306f\u6280\u8853\u7cfb\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u4e2d\u5fc3\u306b\u6709\u7528\u306a\u60c5\u5831\u3092\u767a\u4fe1\u3057\u3066\u3044\u304d\u307e\u3059\u3002","url":"https:\/\/www.sejuku.net\/blog\/author\/samurai-tech"}]}},"_links":{"self":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/posts\/44850","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/users\/16433"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/comments?post=44850"}],"version-history":[{"count":0,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/posts\/44850\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/media\/99183"}],"wp:attachment":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/media?parent=44850"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/categories?post=44850"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/tags?post=44850"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}