{"id":75248,"date":"2018-10-15T16:09:27","date_gmt":"2018-10-15T07:09:27","guid":{"rendered":"https:\/\/www.sejuku.net\/blog\/?p=75248"},"modified":"2024-05-06T11:52:54","modified_gmt":"2024-05-06T02:52:54","slug":"%e3%80%90python%e5%85%a5%e9%96%80%e3%80%91%e8%a1%8c%e5%88%97%e3%81%ae%e5%9f%ba%e7%a4%8e%e3%81%8b%e3%82%89%e5%ae%9f%e9%9a%9b%e3%81%ae%e6%b4%bb%e7%94%a8%e6%96%b9%e6%b3%95%e3%81%be%e3%81%a7%ef%bc%81","status":"publish","type":"post","link":"https:\/\/www.sejuku.net\/blog\/75248","title":{"rendered":"\u3010Python\u5165\u9580\u3011\u884c\u5217\u306e\u57fa\u790e\u304b\u3089\u5b9f\u969b\u306e\u6d3b\u7528\u65b9\u6cd5\u307e\u3067\uff01"},"content":{"rendered":"\n<p>\u3053\u3093\u306b\u3061\u306f! \u30d7\u30ed\u30b0\u30e9\u30de\u30fc\u306eakira\u3067\u3059\u3002<\/p>\n\n\n\n<p>Python\u3067\u306f\u30ea\u30b9\u30c8\u3084NumPy\u3092\u4f7f\u7528\u3057\u3066\u3001\u884c\u5217\u306e\u8a08\u7b97\u3092\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u300cPython\u306e\u884c\u5217\u3063\u3066\u306a\u3093\u3060\u308d\u3046\uff1f\u300d<br>\u300c\u6a5f\u68b0\u5b66\u7fd2\u3067\u884c\u5217\u3063\u3066\u3069\u3046\u3044\u3046\u6642\u306b\u4f7f\u3046\u3093\u3060\u308d\u3046\uff1f\u300d<\/p>\n\n\n\n<p>\u3068\u7591\u554f\u306b\u601d\u3063\u305f\u3053\u3068\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\uff1f<\/p>\n\n\n\n<p>\u305d\u3093\u306a\u65b9\u306b\u5411\u3051\u3066\u3001\u672c\u8a18\u4e8b\u3067\u306f\u4ee5\u4e0b\u306e\u5185\u5bb9\u3067\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3059\uff01<\/p>\n\n\n\n<p><br>\u3010\u57fa\u790e\u3011\u884c\u5217\u3068\u306f<br>\u3010\u5b9f\u8df5\u3011\u884c\u5217\u8a08\u7b97\u3092\u3057\u3066\u307f\u3088\u3046\uff01<br>\u3010\u5fdc\u7528\u3011\u6a5f\u4f1a\u5b66\u7fd2\u3067\u884c\u5217\u3092\u4f7f\u7528\u3059\u308b\u4f8b<br><\/p>\n\n\n\n<p>Python\u3067\u884c\u5217\u8a08\u7b97\u3092\u884c\u3046\u3068\u3001<span style=\"background-color: #ffff00;\">\u57fa\u672c\u7684\u306a\u8a08\u7b97\u304b\u3089\u8907\u96d1\u306a\u3082\u306e\u307e\u3067\u7c21\u5358<\/span>\u306b\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\uff01<\/p>\n\n\n\n<p>\u662f\u975e\u53c2\u8003\u306b\u3057\u3066\u304f\u3060\u3055\u3044\uff01<\/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\">\u884c\u5217\u3068\u306f<\/h2>\n\n\n\n<p>\u884c\u5217\u3068\u306f\u305d\u306e\u540d\u524d\u306e\u901a\u308a\u3001\u6a2a(\u884c)\u3068\u7e26(\u5217)\u65b9\u5411\u306e\u4e26\u3073\u306e\u304b\u3089\u306a\u308b\u4ee5\u4e0b\u306e\u3088\u3046\u306a2\u6b21\u5143\u306e\u30c7\u30fc\u30bf\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u884c\u5217\u8a08\u7b97\u306f\u3001\u5b66\u751f\u306e\u6642\u306b\u5b66\u3073\u307e\u3057\u305f\u3088\u306d\uff1f<br>\u96e3\u3057\u304f\u3042\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u304b\uff1f<\/p>\n\n\n\n<p>\u3082\u3057\u5b66\u751f\u6642\u4ee3\u306b\u884c\u5217\u8a08\u7b97\u304c\u82e6\u624b\u3060\u3063\u305f\u65b9\u3082\u3001\u8a08\u7b97\u81ea\u4f53\u306f\u5358\u7d14\u306a\u3082\u306e\u3067\u3059\u306e\u3067\u3001Python\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3068\u4e00\u7dd2\u306b\u884c\u5217\u8a08\u7b97\u3082\u30de\u30b9\u30bf\u30fc\u3057\u3061\u3083\u3044\u307e\u3057\u3087\u3046\uff01<\/p>\n\n\n\n<p>Python\u3067\u884c\u5217\u3092\u6271\u3046\u65b9\u6cd5\u306f\u5927\u307e\u304b\u306b\u5206\u3051\u3066<br><br>\u30fb \u30ea\u30b9\u30c8\u306e\u8981\u7d20\u3068\u3057\u3066\u30ea\u30b9\u30c8\u3092\u4f7f\u7528\u3059\u308b<br>\u30fb NumPy\u3092\u4f7f\u7528\u3059\u308b<br><br>\u306e\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u6b21\u9805\u304b\u3089\u305d\u308c\u305e\u308c\u306e\u884c\u5217\u306e\u6271\u3044\u65b9\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\uff01<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Python\u3067\u306e\u884c\u5217\u306e\u4f5c\u6210\u65b9\u6cd5<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\u30ea\u30b9\u30c8\u3067\u884c\u5217\u3092\u4f5c\u6210\u3059\u308b\uff01<\/h3>\n\n\n\n<p>\u305d\u308c\u3067\u306fPython\u306e\u30ea\u30b9\u30c8\u3092\u4f7f\u7528\u3057\u3066\u884c\u5217\u3092\u4f5c\u6210\u3057\u3066\u307f\u307e\u3057\u3087\u3046\uff01<\/p>\n\n\n\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3001Python\u306e\u30ea\u30b9\u30c8\u306e\u8981\u7d20\u3068\u3057\u3066\u3055\u3089\u306b\u30ea\u30b9\u30c8\u3092\u8ffd\u52a0\u3059\u308b\u3068\u884c\u5217(2\u6b21\u5143\u914d\u5217)\u3068\u3057\u3066\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">list_arr1 = [[1, 2], [3, 4]]\nprint('\u884c\u52171: {}'.format(list_arr1))<\/pre>\n\n\n\n<p>\u5b9f\u884c\u7d50\u679c<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\u884c\u52171: [[1, 2], [3, 4]]<\/pre>\n\n\n\n<p>\u307e\u305f\u884c\u5217\u8a08\u7b97\u3067\u3088\u304f\u4f7f\u7528\u3059\u308b\u8ee2\u7f6e\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u3066\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">list_arr2 = [[1, 2], [3, 4]]\nprint('\u8ee2\u7f6e: {}'.format(list(zip(*list_arr2))))<\/pre>\n\n\n\n<p>\u5b9f\u884c\u7d50\u679c<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\u8ee2\u7f6e: [(1, 3), (2, 4)]<\/pre>\n\n\n\n<p>\u305d\u308c\u3067\u306f\u8a66\u3057\u306b\u884c\u52171\u3068\u884c\u52172\u3092\u4f5c\u6210\u3057\u3066\u3001\u884c\u5217\u306e\u7a4d\u3092\u8a08\u7b97\u3057\u3066\u307f\u307e\u3057\u3087\u3046\uff01<\/p>\n\n\n\n<p>\u884c\u52171\u3068\u884c\u52172(\u8ee2\u7f6e)\u3092for\u6587\u3067\u30eb\u30fc\u30d7\u3057\u3066\u8a08\u7b97\u3059\u308b\u3053\u3068\u306b\u3088\u308a\u3001\u884c\u5217\u306e\u8a08\u7b97\u7d50\u679c\u3092\u53d6\u5f97\u3057\u3066\u3044\u307e\u3059\uff01<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">list_arr1 = [[1, 2], [3, 4]]\nlist_arr2 = [[1, 2], [3, 4]]\n\nresult = []\nfor k, v in list_arr1:\n    tmp = []\n    for kk, vv in zip(*list_arr2):\n        tmp.append(k * kk + v * vv)\n    result.append(tmp)\nprint(result)\n<\/pre>\n\n\n\n<p>\u5b9f\u884c\u7d50\u679c<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[[7, 10], [15, 22]]<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">NumPy\u3092\u4f7f\u7528\u3057\u3066\u884c\u5217\u3092\u4f5c\u6210\u3059\u308b\uff01<\/h3>\n\n\n\n<p>\u4eca\u5ea6\u306f\u3001Python\u306e\u5b66\u8853\u8a08\u7b97\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u3042\u308bNumPy\u3092\u4f7f\u7528\u3057\u3066\u884c\u5217\u8a08\u7b97\u3092\u3057\u3066\u307f\u307e\u3057\u3087\u3046\uff01<\/p>\n\n\n\n<p>NumPy\u306fNumPy\u914d\u5217(ndarray\u3068\u547c\u3070\u308c\u3066\u3044\u308b)\u3092\u4f7f\u7528\u3057\u3001\u5c11\u306a\u3044\u30b3\u30fc\u30c9\u91cf\u3067\u69d8\u3005\u306a\u6570\u5024\u8a08\u7b97\u304c\u7c21\u5358\u306b\u884c\u3048\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u307e\u305fNumPy\u306f\u3068\u3066\u3082\u9ad8\u901f\u3067\u3042\u308b\u305f\u3081\u3001\u5927\u91cf\u306e\u30c7\u30fc\u30bf\u3092\u6271\u3046\u5834\u5408\u306a\u3069\u3001Python\u3092\u4f7f\u3044\u3053\u306a\u3059\u306b\u306f\u5fc5\u9808\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u305d\u308c\u3067\u306f\u3001NumPy\u3092\u4f7f\u7528\u3057\u305f\u884c\u5217\u306e\u4f5c\u6210\u65b9\u6cd5\u3092\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\uff01<\/p>\n\n\n\n<p>np.array()\u3067NumPy\u914d\u5217(ndarray)\u3092\u751f\u6210\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">import numpy as np\n\nnp_arr1 = np.array([[1, 2], [3, 4]])\nprint(np_arr1)<\/pre>\n\n\n\n<p>\u5b9f\u884c\u7d50\u679c<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[[1 2]\n [3 4]]<\/pre>\n\n\n\n<p>NumPy\u306e\u8ee2\u7f6e\u306f.T\u3088\u3046\u306b\u3057\u3066\u7c21\u5358\u306b\u3067\u304d\u307e\u3059\uff01<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">import numpy as np\n\nnp_arr = np.array([[1, 2], [3, 4]])\nprint(np_arr.T)<\/pre>\n\n\n\n<p>\u5b9f\u884c\u7d50\u679c<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[[1 3]\n [2 4]]<\/pre>\n\n\n\n<p>\u5148\u7a0b\u3068\u540c\u69d8\u306b\u884c\u5217\u306e\u7a4d\u3092\u8a08\u7b97\u3057\u3066\u307f\u307e\u3057\u3087\u3046\uff01<br>NumPy\u3067\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a08\u7b97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\uff01<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">import numpy as np\n\nnp_arr = np.array([[1, 2], [3, 4]])\nresult = np.dot(np_arr, np_arr)\nprint(result)<\/pre>\n\n\n\n<p>\u5b9f\u884c\u7d50\u679c<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[[ 7 10]\n [15 22]]<\/pre>\n\n\n\n<p>\u884c\u5217\u3092\u30ea\u30b9\u30c8\u3067\u6271\u3046\u65b9\u6cd5\u3068\u6bd4\u3079\u308b\u3068NumPy\u3092\u4f7f\u7528\u3057\u305f\u65b9\u6cd5\u306f\u3001\u3068\u3066\u3082\u7c21\u5358\u306b\u8a08\u7b97\u3067\u304d\u308b\u3053\u3068\u304c\u308f\u304b\u3063\u3066\u9802\u3051\u305f\u304b\u3068\u601d\u3044\u307e\u3059\uff01<\/p>\n\n\n\n<p>\u6b21\u9805\u4ee5\u964d\u3067\u306f\u3001\u3053\u306eNumPy\u3092\u4f7f\u7528\u3057\u305f\u884c\u5217\u8a08\u7b97\u306e\u65b9\u6cd5\u306b\u3064\u3044\u3066\u69d8\u3005\u306a\u8a08\u7b97\u3092\u8a66\u3057\u3066\u304d\u307e\u3057\u3087\u3046\uff01<\/p>\n\n\n\n<p>NumPy\u306e\u8a08\u7b97\u306b\u3064\u3044\u3066\u3088\u308a\u8a73\u3057\u304f\u77e5\u308a\u305f\u3044\u65b9\u306f\u3053\u3061\u3089\u306e\u8a18\u4e8b\u3067\u3082\u7d39\u4ecb\u3057\u3066\u3044\u307e\u3059\u306e\u3067\u53c2\u8003\u306b\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<br>            <a href=\"https:\/\/www.sejuku.net\/blog\/59565\" class=\"blog-card-anchor\">\n                <div class=\"blog-card\">\n                <div class=\"blog-card-content\">\n                    <div class=\"blog-card-thumbnail\">\n                    <img decoding=\"async\" class=\"blog-card-thumbnail-img\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/06\/python_numpy_eye-150x84.jpg\">\n                    <\/div>\n                    <div class=\"blog-card-title-wrap\">\n                    <div class=\"blog-card-title\">\u6a5f\u68b0\u5b66\u7fd2\u306b\u5fc5\u9808\uff01Python\u3067\u9ad8\u901f\u306b\u884c\u5217\u8a08\u7b97\u304c\u3067\u304d\u308bNumPy\u306b\u5165\u9580\uff01<\/div>\n                    <div class=\"blog-card-update-date\">\u66f4\u65b0\u65e5\uff1a2024\u5e745\u67086\u65e5<\/div>\n                    <\/div>\n                <\/div>\n                <\/div>\n            <\/a>\n            <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u884c\u5217\u64cd\u4f5c\u306e\u57fa\u672c\u3092\u5b66\u7fd2\u3057\u3088\u3046\uff01<\/h2>\n\n\n\n<p>\u3053\u3053\u3067\u306fNumPy\u3092\u4f7f\u7528\u3059\u308b\u4e0a\u3067\u5fc5\u8981\u3068\u306a\u308b\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u306b\u3064\u3044\u3066\u78ba\u8a8d\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\uff01<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u884c\u5217\u306e\u6b21\u5143\u3054\u3068\u306e\u8981\u7d20\u6570(\u5f62\u72b6)\u3092\u78ba\u8a8d\u3057\u3088\u3046\uff01<\/h3>\n\n\n\n<p>\u884c\u5217\u3092\u6271\u3046\u306e\u306b<strong>\u300c\u884c\u306e\u8981\u7d20\u304c\u3044\u304f\u3064\u3042\u308b\u306e\u304b\u300d\u300c\u5217\u306e\u8981\u7d20\u304c\u3044\u304f\u3064\u3042\u308b\u306e\u304b\u300d<\/strong>\u306a\u3069\u3001\u884c\u5217\u304c\u3069\u3093\u306a\u5f62\u3092\u3057\u3066\u3044\u308b\u306e\u304b\u8abf\u3079\u305f\u3044\u6642\u304c\u3042\u308a\u307e\u3059\u3088\u306d\uff01<\/p>\n\n\n\n<p>\u884c\u5217\u306e\u8981\u7d20\u6570\u3092\u53d6\u5f97\u3059\u308b\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u306e\u3088\u3046\u306bshape\u3092\u4f7f\u7528\u3057\u307e\u3059\uff01<br>\u305d\u308c\u305e\u308carr1\u306f2\u00d72\u3001arr2\u306f2\u00d74\u306e\u884c\u5217\u3067\u3042\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">import numpy as np\n\narr1 = np.array([[1, 2], [3, 4]])\narr2 = np.array([[1, 2, 3, 4], [5, 6, 7, 8]])\nprint(arr1.shape)\nprint(arr2.shape)<\/pre>\n\n\n\n<p>\u5b9f\u884c\u7d50\u679c<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">(2, 2)\n(2, 4)<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">\u884c\u5217\u306e\u30b5\u30a4\u30ba\u3092\u78ba\u8a8d\u3057\u3088\u3046\uff01<\/h3>\n\n\n\n<p>\u884c\u5217\u306e\u8981\u7d20\u306e\u6570\u306f\u3001size\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u78ba\u8a8d\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">import numpy as np\n\narr1 = np.array([[1, 2], [3, 4]])\narr2 = np.array([[1, 2, 3, 4], [5, 6, 7, 8]])\nprint(arr1.size)\nprint(arr2.size)<\/pre>\n\n\n\n<p>\u5b9f\u884c\u7d50\u679c<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">4\n8<\/pre>\n\n\n\n<p>NumPy\u306esize\u306b\u3064\u3044\u3066\u3088\u308a\u8a73\u3057\u304f\u77e5\u308a\u305f\u3044\u65b9\u306f\u3001\u3053\u3061\u3089\u306e\u8a18\u4e8b\u3067\u3082\u7d39\u4ecb\u3055\u308c\u3066\u3044\u307e\u3059\uff01<br>            <a href=\"https:\/\/www.sejuku.net\/blog\/70006\" class=\"blog-card-anchor\">\n                <div class=\"blog-card\">\n                <div class=\"blog-card-content\">\n                    <div class=\"blog-card-thumbnail\">\n                    <img decoding=\"async\" class=\"blog-card-thumbnail-img\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/08\/np.ndarray.size_-150x86.png\">\n                    <\/div>\n                    <div class=\"blog-card-title-wrap\">\n                    <div class=\"blog-card-title\">\u3010NumPy\u5165\u9580 np.ndarray.size\u3011\u914d\u5217\u306e\u8981\u7d20\u6570\u304c\u308f\u304b\u308bsize\u3068len\u306e\u9055\u3044<\/div>\n                    <div class=\"blog-card-update-date\">\u66f4\u65b0\u65e5\uff1a2024\u5e745\u67086\u65e5<\/div>\n                    <\/div>\n                <\/div>\n                <\/div>\n            <\/a>\n            <\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u884c\u5217\u3092\u6307\u5b9a\u3057\u305f\u5f62\u306b\u5909\u63db\u3057\u3088\u3046\uff01<\/h3>\n\n\n\n<p>\u884c\u5217\u306e\u5f62\u72b6\u3092\u5909\u66f4\u3057\u305f\u3044\u5834\u5408\u306f\u3001reshape\u3067\u5909\u66f4\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>arr1\u306f2\u00d72\u304b\u30891\u00d74\u3078\u3001arr2\u306f2\u00d74\u304b\u30894\u00d72\u3078\u5909\u63db\u3057\u3066\u3044\u307e\u3059\uff01<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">import numpy as np\n\narr1 = np.array([[1, 2], [3, 4]])\narr2 = np.array([[1, 2, 3, 4], [5, 6, 7, 8]])\nprint(arr1.reshape(1, 4))\nprint(arr2.reshape(4, 2))<\/pre>\n\n\n\n<p>\u5b9f\u884c\u7d50\u679c<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[[1 2 3 4]]\n[[1 2]\n [3 4]\n [5 6]\n [7 8]]<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">\u884c\u5217\u3092\u8ee2\u7f6e(\u884c\u3068\u5217\u306e\u5165\u308c\u66ff\u3048)\u3092\u3057\u3066\u307f\u3088\u3046\uff01<\/h3>\n\n\n\n<p>\u884c\u5217\u306e\u8ee2\u7f6e(\u884c\u3068\u5217\u3092\u5165\u308c\u66ff\u3048\u308b)\u306f\u3001T\u307e\u305f\u306ftranspose()\u3067\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\uff01<\/p>\n\n\n\n<p>\u4ee5\u4e0b\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3067\u305d\u308c\u305e\u308c\u306e\u5b9f\u884c\u7d50\u679c\u3092\u51fa\u529b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">import numpy as np\n\narr1 = np.array([[1, 2], [3, 4]])\narr2 = np.array([[1, 2, 3, 4], [5, 6, 7, 8]])\n\nprint(\"\u8ee2\u7f6eT\")\nprint(arr1.T)\nprint(arr2.T)\nprint(\"\u8ee2\u7f6etranspose()\")\nprint(arr1.transpose())\nprint(arr2.transpose())<\/pre>\n\n\n\n<p>\u5b9f\u884c\u7d50\u679c<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\u8ee2\u7f6eT\n[[1 3]\n [2 4]]\n[[1 5]\n [2 6]\n [3 7]\n [4 8]]\n\u8ee2\u7f6etranspose()\n[[1 3]\n [2 4]]\n[[1 5]\n [2 6]\n [3 7]\n [4 8]]<\/pre>\n\n\n\n<p>\u5b9f\u884c\u7d50\u679c\u304b\u3089\u3001<span style=\"background-color: #ffff00;\">\u884c\u3068\u5217\u304c\u5165\u308c\u66ff\u308f\u3063\u3066\u3044\u308b<\/span>\u306e\u304c\u308f\u304b\u308a\u307e\u3059\u304b\uff1f<\/p>\n\n\n\n<p>\u8ee2\u7f6e\u306b\u3088\u3063\u3066\u3001arr1\u3001arr2\u306b\u5b9a\u7fa9\u3057\u305f\u884c\u5217\u3092\u5165\u308c\u66ff\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u306e\u3067\u3059\uff01<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u884c\u5217\u8a08\u7b97\u3092\u3057\u3066\u307f\u3088\u3046\uff01<\/h2>\n\n\n\n<p>\u305d\u308c\u3067\u306f\u884c\u5217\u306e\u8a08\u7b97\u65b9\u6cd5\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\uff01<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u884c\u5217\u306e\u8db3\u3057\u7b97\u3001\u5f15\u304d\u7b97\u3092\u3084\u3063\u3066\u307f\u3088\u3046\uff01<\/h3>\n\n\n\n<p>\u884c\u5217\u306e\u8db3\u3057\u7b97\u3001\u5f15\u304d\u7b97\u306f\u3001\u901a\u5e38\u306e\u8a08\u7b97\u65b9\u6cd5\u3068\u5909\u308f\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p>\u884c\u5217\u306e\u5404\u8981\u7d20\u3092\u8db3\u3057\u305f\u308a\u3001\u5f15\u3044\u305f\u7d50\u679c\u3092\u6c42\u3081\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u4ee5\u4e0b\u3001\u305d\u308c\u305e\u308c\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u306b\u3064\u3044\u3066\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\uff01<\/p>\n\n\n\n<p><strong>\u30fb \u8db3\u3057\u7b97<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">import numpy as np\n\narr1 = np.arange(1, 5).reshape((2, 2))\narr2 = np.arange(5, 9).reshape((2, 2))\n\nprint('arr1')\nprint(arr1)\n\nprint('arr2')\nprint(arr2)\n\nresult = arr1 + arr2\nprint(\"\u8db3\u3057\u7b97 \u7d50\u679c\")\nprint(result)<\/pre>\n\n\n\n<p>\u5b9f\u884c\u7d50\u679c<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">arr1\n[[1 2]\n [3 4]]\narr2\n[[5 6]\n [7 8]]\n\u8db3\u3057\u7b97 \u7d50\u679c\n[[ 6  8]\n [10 12]]<\/pre>\n\n\n\n<p><strong>\u30fb \u5f15\u304d\u7b97<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">import numpy as np\n\narr1 = np.arange(1, 5).reshape((2, 2))\narr2 = np.arange(5, 9).reshape((2, 2))\n\nprint('arr1')\nprint(arr1)\n\nprint('arr2')\nprint(arr2)\n\nresult = arr2 - arr1\nprint(\"\u5f15\u304d\u7b97 \u7d50\u679c\")\nprint(result)<\/pre>\n\n\n\n<p>\u5b9f\u884c\u7d50\u679c<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">arr1\n[[1 2]\n [3 4]]\narr2\n[[5 6]\n [7 8]]\n\u5f15\u304d\u7b97 \u7d50\u679c\n[[4 4]\n [4 4]]<\/pre>\n\n\n\n<p>arr1\u3001arr2\u306e\u305d\u308c\u305e\u308c\u306e\u8981\u7d20\u540c\u58eb\u3067\u8db3\u3057\u7b97\u3001\u5f15\u304d\u7b97\u304c\u884c\u308f\u308c\u3066\u3044\u308b\u306e\u304c\u308f\u304b\u3063\u305f\u304b\u3068\u601d\u3044\u307e\u3059\uff01<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u884c\u5217\u306e\u639b\u3051\u7b97(\u7a4d)\u3092\u3084\u3063\u3066\u307f\u3088\u3046\uff01<\/h3>\n\n\n\n<p>\u884c\u5217\u306e\u639b\u3051\u7b97\u306b\u306f\u3001\u5404\u8981\u7d20\u540c\u58eb\u3092\u5358\u7d14\u306b\u639b\u3051\u305f\u3082\u306e\u3068\u3001\u884c\u5217\u306e\u7a4d\u3092\u6c42\u3081\u308b\u5834\u5408\u3068\uff12\u30d1\u30bf\u30fc\u30f3\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u305d\u308c\u305e\u308c\u306e\u3084\u308a\u65b9\u3068\u9055\u3044\u306b\u3064\u3044\u3066\u78ba\u8a8d\u3057\u3066\u3044\u304d\u307e\u3057\u3087\u3046\uff01<\/p>\n\n\n\n<p><strong>\u30fb \u5404\u8981\u7d20\u306e\u639b\u3051\u7b97<\/strong><br>\u305d\u308c\u305e\u308c\u306e\u884c\u5217\u3092\u300c*\u300d\u3092\u4f7f\u3063\u3066\u639b\u3051\u7b97\u3092\u884c\u3063\u3066\u3044\u307e\u3059\u3002<br>\u5404\u884c\u5217\u306e\u8981\u7d20\u540c\u58eb\u3067\u639b\u3051\u7b97\u304c\u884c\u308f\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u5b9f\u884c\u7d50\u679c\u304b\u3089\u308f\u304b\u308a\u307e\u3059\uff01<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">import numpy as np\n\narr1 = np.arange(1, 5).reshape((2, 2))\narr2 = np.arange(5, 9).reshape((2, 2))\n\nprint('arr1')\nprint(arr1)\nprint('arr2')\nprint(arr2)\n\nresult = arr1 * arr2\nprint(\"\u639b\u3051\u7b97 \u7d50\u679c\")\nprint(result)<\/pre>\n\n\n\n<p>\u5b9f\u884c\u7d50\u679c<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">arr1\n[[1 2]\n [3 4]]\narr2\n[[5 6]\n [7 8]]\n\u639b\u3051\u7b97 \u7d50\u679c\n[[ 5 12]\n [21 32]]<\/pre>\n\n\n\n<p><strong>\u30fb \u884c\u5217\u306e\u7a4d<\/strong><br>\u3053\u3061\u3089\u306fnp.dot()\u3092\u4f7f\u7528\u3057\u3066\u8a08\u7b97\u3092\u3057\u3066\u3044\u307e\u3059\u3002<br>\u5b9f\u884c\u7d50\u679c\u306b\u306f\u3001\u884c\u5217\u306e\u7a4d\u306e\u8a08\u7b97\u7d50\u679c\u304c\u78ba\u8a8d\u3067\u304d\u308b\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u9ad8\u6821\u306e\u6570\u5b66\u306a\u3069\u3067\u7fd2\u3063\u305f\u8a08\u7b97\u65b9\u6cd5\u3067\u3059\u306d\uff01<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">import numpy as np\n\narr1 = np.arange(1, 5).reshape((2, 2))\narr2 = np.arange(5, 9).reshape((2, 2))\n\nprint('arr1')\nprint(arr1)\nprint('arr2')\nprint(arr2)\n\nresult = np.dot(arr1, arr2)\nprint(\"\u639b\u3051\u7b97 \u7d50\u679c\")\nprint(result)<\/pre>\n\n\n\n<p>\u5b9f\u884c\u7d50\u679c<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">arr1\n[[1 2]\n [3 4]]\narr2\n[[5 6]\n [7 8]]\n\u639b\u3051\u7b97 \u7d50\u679c\n[[19 22]\n [43 50]]<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">\u884c\u5217\u306e\u5272\u308a\u7b97\u3092\u3084\u3063\u3066\u307f\u3088\u3046\uff01<\/h3>\n\n\n\n<p>\u884c\u5217\u306e\u5272\u308a\u7b97\u306f\u5404\u8981\u7d20\u3092\u5272\u3063\u305f\u7d50\u679c\u306b\u306a\u308a\u307e\u3059\u306e\u3067\u3001\u901a\u5e38\u306e\u5272\u308a\u7b97\u3068\u307b\u3068\u3093\u3069\u5909\u308f\u308a\u307e\u305b\u3093\uff01<\/p>\n\n\n\n<p>\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\uff01<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">import numpy as np\n\narr1 = np.full((2, 2), 10)\narr2 = np.full((2, 2), 2)\n\nprint('arr1')\nprint(arr1)\nprint('arr2')\nprint(arr2)\n\nresult = arr1 \/\/ arr2\nprint(\"\u5272\u308a\u7b97 \u7d50\u679c\")\nprint(result)<\/pre>\n\n\n\n<p>\u5b9f\u884c\u7d50\u679c<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">arr1\n[[10 10]\n [10 10]]\narr2\n[[2 2]\n [2 2]]\n\u5272\u308a\u7b97 \u7d50\u679c\n[[5 5]\n [5 5]]<\/pre>\n\n\n\n<p>\u5404\u8981\u7d20\u3092\u5272\u3063\u305f\u7d50\u679c\u304c\u6b63\u3057\u304f\u6c42\u3081\u3089\u308c\u3066\u3044\u307e\u3059\u306d\uff01<\/p>\n\n\n\n<p>NumPy\u306e\u8a08\u7b97\u65b9\u6cd5\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u77e5\u308a\u305f\u3044\u65b9\u306f\u3053\u3061\u3089\u306e\u8a18\u4e8b\u3067\u3082\u7d39\u4ecb\u3057\u3066\u3044\u307e\u3059\u306e\u3067\u53c2\u8003\u306b\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\uff01<br>            <a href=\"https:\/\/www.sejuku.net\/blog\/42550\" class=\"blog-card-anchor\">\n                <div class=\"blog-card\">\n                <div class=\"blog-card-content\">\n                    <div class=\"blog-card-thumbnail\">\n                    <img decoding=\"async\" class=\"blog-card-thumbnail-img\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/01\/image4-150x86.jpg\">\n                    <\/div>\n                    <div class=\"blog-card-title-wrap\">\n                    <div class=\"blog-card-title\">\u3010Python\u5165\u9580\u3011numpy\u3067\u8a08\u7b97\u3092\u3057\u3066\u307f\u3088\u3046<\/div>\n                    <div class=\"blog-card-update-date\">\u66f4\u65b0\u65e5\uff1a2024\u5e745\u67086\u65e5<\/div>\n                    <\/div>\n                <\/div>\n                <\/div>\n            <\/a>\n            <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u753b\u50cf\u30c7\u30fc\u30bf\u3092NumPy\u884c\u5217\u3067\u6271\u3063\u3066\u307f\u3088\u3046\uff01<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\u4f55\u3067\u753b\u50cf\u30c7\u30fc\u30bf\u3092\u884c\u5217\u3067\u6271\u3046\u306e\u304b\uff1f<\/h3>\n\n\n\n<p>\u3053\u3053\u307e\u3067NumPy\u3092\u4f7f\u7528\u3057\u3066\u884c\u5217\u306e\u4f7f\u3044\u65b9\u306b\u3064\u3044\u3066\u5b66\u7fd2\u3057\u3066\u304d\u307e\u3057\u305f\u304c<\/p>\n\n\n\n<p><br>\u30fb \u305d\u3082\u305d\u3082\u884c\u5217\u3063\u3066\u4f55\u306b\u4f7f\u3046\u306e\uff1f<br>\u30fb Python\u306e\u6a5f\u68b0\u5b66\u7fd2\u3067NumPy\u884c\u5217(\u914d\u5217)\u3092\u6271\u3046\u3068\u805e\u3044\u305f\u3051\u3069\u3001\u3069\u3046\u3044\u3046\u3053\u3068\uff1f<br><\/p>\n\n\n\n<p>\u3068\u7591\u554f\u306e\u65b9\u3082\u3044\u308b\u304b\u3068\u601d\u3044\u307e\u3059\u306e\u3067\u3001\u753b\u50cf\u30c7\u30fc\u30bf\u51e6\u7406\u3092\u4e00\u4f8b\u3068\u3057\u3066\u7d39\u4ecb\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u307e\u305a\u4f55\u3067\u753b\u50cf\u30c7\u30fc\u30bf\u3092NumPy\u914d\u5217\u3067\u6271\u3046\u306e\u304b\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u753b\u50cf\u30c7\u30fc\u30bf\u3092\u8aad\u307f\u8fbc\u3093\u3067NumPy\u914d\u5217\u3068\u3057\u3066\u6271\u3046\u3053\u3068\u306b\u3088\u3063\u3066\u3001NumPy\u306e\u6a5f\u80fd\u3067\u69d8\u3005\u306a\u51e6\u7406\u3092\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308b\u306e\u3067\u3059\uff01<\/p>\n\n\n\n<p>\u307e\u305fPython\u306eNumPy\u30c7\u30fc\u30bf\u3068\u3057\u3066\u753b\u50cf\u3092\u4fdd\u6301\u3067\u304d\u308b\u305f\u3081\u3001<span style=\"background-color: #ffff00;\">\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3067\u306e\u51e6\u7406\u3067\u5927\u5909\u6271\u3044\u3084\u3059\u304f\u306a\u308b<\/span>\u306e\u3067\u3059\uff01<\/p>\n\n\n\n<p>\u6b21\u9805\u3067\u753b\u50cf\u3092NumPy\u914d\u5217\u306b\u5909\u63db\u3057\u3066\u307f\u307e\u3057\u3087\u3046\uff01<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u5b9f\u969b\u306b\u753b\u50cf\u30c7\u30fc\u30bf\u3092NumPy\u914d\u5217\u306b\u5909\u63db\u3057\u3066\u307f\u3088\u3046\uff01<\/h3>\n\n\n\n<p>\u305d\u308c\u3067\u306f\u884c\u5217\u64cd\u4f5c\u306e\u307e\u3068\u3081\u3066\u3068\u3057\u3066\u3001\u753b\u50cf\u30c7\u30fc\u30bf\u3092NumPy\u914d\u5217\u306b\u5909\u63db\u3057\u3066\u307f\u307e\u3057\u3087\u3046\uff01<\/p>\n\n\n\n<p>\u753b\u50cf\u306e\u8aad\u307f\u8fbc\u307f\u306f\u3001pillow\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\uff01<\/p>\n\n\n\n<p>Image.open()\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u7c21\u5358\u306b\u753b\u50cf\u3092\u8aad\u307f\u8fbc\u3080\u3053\u3068\u304c\u3067\u304d\u307e\u3059\uff01<\/p>\n\n\n\n<p>\u307e\u305f\u4eca\u56de\u306f\u8aad\u307f\u8fbc\u3080\u753b\u50cf\u3068\u3057\u3066\u3001\u672c\u8a18\u4e8b\u306e\u5e8f\u6587\u3067\u4f7f\u7528\u3057\u305f\u884c\u5217\u306e\u753b\u50cf\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3067\u306f\u3001\u753b\u50cf\u3092\u8aad\u307f\u8fbc\u3093\u3060\u5f8c\u306b\u753b\u50cf\u3092\u30ea\u30b5\u30a4\u30ba\u3057\u3001NumPy\u306e\u914d\u5217(3\u6b21\u5143\u306e\u914d\u5217)\u306b\u5909\u63db\u3057\u3066\u3044\u307e\u3059\u3002<br>\u305d\u306e\u5f8c\u3001\u5909\u63db\u3057\u305f\u753b\u50cf\u914d\u5217\u3092\u30ea\u30b9\u30c8\u306b\uff11\uff10\u56de\u8a70\u3081\u3066\u3001\u30d5\u30a1\u30a4\u30eb\u3068\u3057\u3066\u4fdd\u5b58\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>pillow\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u5b66\u7fd2\u3057\u305f\u3044\u65b9\u306f\u3053\u3061\u3089\u306e\u8a18\u4e8b\u306b\u8a18\u8f09\u3055\u308c\u3066\u3044\u307e\u3059\u3002<br>            <a href=\"https:\/\/www.sejuku.net\/blog\/62599\" class=\"blog-card-anchor\">\n                <div class=\"blog-card\">\n                <div class=\"blog-card-content\">\n                    <div class=\"blog-card-thumbnail\">\n                    <img decoding=\"async\" class=\"blog-card-thumbnail-img\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/07\/image-43-150x84.jpg\">\n                    <\/div>\n                    <div class=\"blog-card-title-wrap\">\n                    <div class=\"blog-card-title\">Python\u306e\u753b\u50cf\u51e6\u7406\u30e9\u30a4\u30d6\u30e9\u30eapillow\u306e\u4f7f\u3044\u65b9\u3092\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\uff01<\/div>\n                    <div class=\"blog-card-update-date\">\u66f4\u65b0\u65e5\uff1a2025\u5e744\u670823\u65e5<\/div>\n                    <\/div>\n                <\/div>\n                <\/div>\n            <\/a>\n            <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">import numpy as np\nfrom PIL import Image\n\nX = []\nimage_size = 50\n\nimage_path = '.\/matrix.png'\nimage = Image.open(image_path)\n\nimage = image.resize((image_size, image_size))\nimage = np.asarray(image)\n\nfor _ in range(10):\n    X.append(image)\n\nnp.save('save.npy', X)<\/pre>\n\n\n\n<p>\u30ea\u30b5\u30a4\u30ba\u3055\u308c\u305f10\u679a\u306e\u753b\u50cf\u304c<strong>\u300csave.npy\u300d<\/strong>\u306e1\u30d5\u30a1\u30a4\u30eb\u306b\u4fdd\u5b58\u3055\u308c\u3066\u3044\u307e\u3059\u306e\u3067\u304b\u306a\u308a\u30dd\u30fc\u30bf\u30d6\u30eb\u306b\u306a\u3063\u305f\u3068\u601d\u3044\u307e\u3059\uff01<\/p>\n\n\n\n<p>\u305d\u308c\u3067\u306f\u4eca\u5ea6\u306f\u3001\u300csave.npy\u300d\u3092\u8aad\u307f\u8fbc\u3093\u3067\u3001\u753b\u50cf\u3068\u3057\u3066\u51fa\u529b\u3057\u3066\u307f\u307e\u3057\u3087\u3046\uff01<\/p>\n\n\n\n<p>np.load()\u3067\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u8fbc\u307f\u3001for\u6587\u3067\u30ea\u30b9\u30c8\u306e\u8981\u7d20\u3092\u30eb\u30fc\u30d7\u3057\u30661\u753b\u50cf\u305a\u3064\u51e6\u7406\u3092\u3057\u3066\u3044\u307e\u3059\uff01<\/p>\n\n\n\n<p>\u5148\u7a0b\u4f5c\u6210\u3057\u305f10\u679a\u306e\u30ea\u30b5\u30a4\u30ba\u3055\u308c\u305f\u753b\u50cf\u304c\u30ab\u30ec\u30f3\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u4f5c\u6210\u3055\u308c\u308b\u304b\u3068\u601d\u3044\u307e\u3059\uff01<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">import numpy as np\nfrom PIL import Image\n\nsave_path = '.\/save.npy'\n\nfor k, np_img in enumerate(np.load(save_path)):\n    image = Image.fromarray(np_img)\n    image.save('.\/change{}.png'.format(k))\n\n<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u307e\u3068\u3081<\/h2>\n\n\n\n<p>\u3044\u304b\u304c\u3067\u3057\u305f\u3067\u3057\u3087\u3046\u304b\u3002<br>\u4eca\u56de\u306f\u3001Python\u306e\u884c\u5217\u306b\u3064\u3044\u3066\u5b66\u7fd2\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>NumPy\u3067\u306e\u884c\u5217\u306e\u64cd\u4f5c\u306f\u3001<span style=\"background-color: #ffff00;\">\u8907\u96d1\u306a\u8a08\u7b97\u51e6\u7406\u3084\u6a5f\u68b0\u5b66\u7fd2\u306a\u3069\u3067\u3082\u4f7f\u7528\u3055\u308c\u3066\u3044\u3066Python\u3092\u6271\u3046\u4e0a\u3067\u306f\u3068\u3066\u3082\u91cd\u8981\u306a\u3082\u306e<\/span>\u3068\u306a\u308a\u307e\u3059\u306e\u3067\u3001\u3057\u3063\u304b\u308a\u3068\u30de\u30b9\u30bf\u30fc\u3057\u3066\u3044\u304d\u307e\u3057\u3087\u3046\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f! \u30d7\u30ed\u30b0\u30e9\u30de\u30fc\u306eakira\u3067\u3059\u3002 Python\u3067\u306f\u30ea\u30b9\u30c8\u3084NumPy\u3092\u4f7f\u7528\u3057\u3066\u3001\u884c\u5217\u306e\u8a08\u7b97\u3092\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 \u300cPython\u306e\u884c\u5217\u3063\u3066\u306a\u3093\u3060\u308d\u3046\uff1f\u300d\u300c\u6a5f\u68b0\u5b66\u7fd2\u3067\u884c\u5217\u3063\u3066\u3069\u3046\u3044\u3046\u6642\u306b\u4f7f\u3046\u3093\u3060\u308d\u3046\uff1f\u300d \u3068\u7591\u554f [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":67376,"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-75248","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.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>\u3010Python\u5165\u9580\u3011\u884c\u5217\u306e\u57fa\u790e\u304b\u3089\u5b9f\u969b\u306e\u6d3b\u7528\u65b9\u6cd5\u307e\u3067\uff01 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0<\/title>\n<meta name=\"description\" content=\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010Python\u5165\u9580\u3011\u884c\u5217\u306e\u57fa\u790e\u304b\u3089\u5b9f\u969b\u306e\u6d3b\u7528\u65b9\u6cd5\u307e\u3067\uff01 \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\/75248\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010Python\u5165\u9580\u3011\u884c\u5217\u306e\u57fa\u790e\u304b\u3089\u5b9f\u969b\u306e\u6d3b\u7528\u65b9\u6cd5\u307e\u3067\uff01 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\" \/>\n<meta property=\"og:description\" content=\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010Python\u5165\u9580\u3011\u884c\u5217\u306e\u57fa\u790e\u304b\u3089\u5b9f\u969b\u306e\u6d3b\u7528\u65b9\u6cd5\u307e\u3067\uff01 \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\/75248\" \/>\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:author\" content=\"https:\/\/www.facebook.com\/sejuku2013\/\" \/>\n<meta property=\"article:published_time\" content=\"2018-10-15T07:09:27+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-06T02:52:54+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/08\/python.png\" \/>\n\t<meta property=\"og:image:width\" content=\"700\" \/>\n\t<meta property=\"og:image:height\" content=\"400\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/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\\\/75248#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/75248\"},\"author\":{\"name\":\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/person\\\/e8ca7fd09857a736a25e6b4455a3ab61\"},\"headline\":\"\u3010Python\u5165\u9580\u3011\u884c\u5217\u306e\u57fa\u790e\u304b\u3089\u5b9f\u969b\u306e\u6d3b\u7528\u65b9\u6cd5\u307e\u3067\uff01\",\"datePublished\":\"2018-10-15T07:09:27+00:00\",\"dateModified\":\"2024-05-06T02:52:54+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/75248\"},\"wordCount\":260,\"publisher\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/75248#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/08\\\/python.png\",\"keywords\":[\"python\"],\"articleSection\":[\"Python\u5b66\u7fd2\"],\"inLanguage\":\"ja\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/75248\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/75248\",\"name\":\"\u3010Python\u5165\u9580\u3011\u884c\u5217\u306e\u57fa\u790e\u304b\u3089\u5b9f\u969b\u306e\u6d3b\u7528\u65b9\u6cd5\u307e\u3067\uff01 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/75248#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/75248#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/08\\\/python.png\",\"datePublished\":\"2018-10-15T07:09:27+00:00\",\"dateModified\":\"2024-05-06T02:52:54+00:00\",\"description\":\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010Python\u5165\u9580\u3011\u884c\u5217\u306e\u57fa\u790e\u304b\u3089\u5b9f\u969b\u306e\u6d3b\u7528\u65b9\u6cd5\u307e\u3067\uff01 \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\\\/75248#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/75248\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/75248#primaryimage\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/08\\\/python.png\",\"contentUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/08\\\/python.png\",\"width\":700,\"height\":400},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/75248#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010Python\u5165\u9580\u3011\u884c\u5217\u306e\u57fa\u790e\u304b\u3089\u5b9f\u969b\u306e\u6d3b\u7528\u65b9\u6cd5\u307e\u3067\uff01\"}]},{\"@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\\\/e8ca7fd09857a736a25e6b4455a3ab61\",\"name\":\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/507c280c5c67d2c11fec4fdba20e5bf1ec2fe91f9deb42d2ec50382778b311bf?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/507c280c5c67d2c11fec4fdba20e5bf1ec2fe91f9deb42d2ec50382778b311bf?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/507c280c5c67d2c11fec4fdba20e5bf1ec2fe91f9deb42d2ec50382778b311bf?s=96&d=mm&r=g\",\"caption\":\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8\"},\"description\":\"\u3010\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u3011 DX\u8a8d\u5b9a\u53d6\u5f97\u4e8b\u696d\u8005\u306b\u9078\u5b9a\u3055\u308c\u3066\u3044\u308b\u682a\u5f0f\u4f1a\u793eSAMURAI\u306e\u30de\u30fc\u30b1\u30c6\u30a3\u30f3\u30b0\u30fb\u30b3\u30df\u30e5\u30cb\u30b1\u30fc\u30b7\u30e7\u30f3\u90e8\u304c\u904b\u55b6\u3002\u300c\u8cea\u306e\u9ad8\u3044IT\u6559\u80b2\u3092\u3001\u3059\u3079\u3066\u306e\u4eba\u306b\u300d\u3092\u30df\u30c3\u30b7\u30e7\u30f3\u306b\u3001IT\u30fb\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u5b66\u3073\u59cb\u3081\u305f\u521d\u5b66\u8005\u306e\u65b9\u306b\u5411\u3051\u8a18\u4e8b\u3092\u57f7\u7b46\u3002 \u7d2f\u8a08\u6307\u5c0e\u8005\u65704\u4e075,000\u540d\u4ee5\u4e0a\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30af\u30fc\u30eb\u300c\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u300d\u3001\u7d2f\u8a08\u767b\u9332\u8005\u65701\u4e078,000\u4eba\u4ee5\u4e0a\u306e\u30aa\u30f3\u30e9\u30a4\u30f3\u5b66\u7fd2\u30b5\u30fc\u30d3\u30b9\u300c\u4f8d\u30c6\u30e9\u30b3\u30e4\u300d\u3067\u6271\u3046\u6559\u6750\u958b\u767a\u306e\u30ce\u30a6\u30cf\u30a6\u30012013\u5e74\u306e\u5275\u696d\u304b\u3089\u904b\u55b6\u3067\u5f97\u305f\u77e5\u898b\u306b\u57fa\u3065\u304d\u3001\u8a18\u4e8b\u306e\u57f7\u7b46\u3060\u3051\u3067\u306a\u304f\u7de8\u96c6\u30fb\u76e3\u4fee\u3082\u62c5\u5f53\u3057\u3066\u3044\u307e\u3059\u3002 \u3010\u5c02\u9580\u5206\u91ce\u3011 IT\\\/Web\u958b\u767a\\\/AI\u30fb\u30ed\u30dc\u30c3\u30c8\u958b\u767a\\\/\u30a4\u30f3\u30d5\u30e9\u958b\u767a\\\/\u30b2\u30fc\u30e0\u958b\u767a\\\/AI\\\/Web\u30c7\u30b6\u30a4\u30f3\",\"sameAs\":[\"https:\\\/\\\/www.sejuku.net\\\/\",\"https:\\\/\\\/www.facebook.com\\\/sejuku2013\\\/\",\"https:\\\/\\\/www.instagram.com\\\/samuraiengineer_official\\\/\",\"https:\\\/\\\/x.com\\\/https:\\\/\\\/twitter.com\\\/samuraijuku\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCCFOQO5aDK0xXam4cUQXT8g\"],\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/author\\\/samurai-blog\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u3010Python\u5165\u9580\u3011\u884c\u5217\u306e\u57fa\u790e\u304b\u3089\u5b9f\u969b\u306e\u6d3b\u7528\u65b9\u6cd5\u307e\u3067\uff01 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010Python\u5165\u9580\u3011\u884c\u5217\u306e\u57fa\u790e\u304b\u3089\u5b9f\u969b\u306e\u6d3b\u7528\u65b9\u6cd5\u307e\u3067\uff01 \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\/75248","og_locale":"ja_JP","og_type":"article","og_title":"\u3010Python\u5165\u9580\u3011\u884c\u5217\u306e\u57fa\u790e\u304b\u3089\u5b9f\u969b\u306e\u6d3b\u7528\u65b9\u6cd5\u307e\u3067\uff01 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","og_description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010Python\u5165\u9580\u3011\u884c\u5217\u306e\u57fa\u790e\u304b\u3089\u5b9f\u969b\u306e\u6d3b\u7528\u65b9\u6cd5\u307e\u3067\uff01 \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\/75248","og_site_name":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","article_publisher":"https:\/\/www.facebook.com\/sejuku2013","article_author":"https:\/\/www.facebook.com\/sejuku2013\/","article_published_time":"2018-10-15T07:09:27+00:00","article_modified_time":"2024-05-06T02:52:54+00:00","og_image":[{"width":700,"height":400,"url":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/08\/python.png","type":"image\/png"}],"author":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/samuraijuku","twitter_site":"@samuraijuku","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.sejuku.net\/blog\/75248#article","isPartOf":{"@id":"https:\/\/www.sejuku.net\/blog\/75248"},"author":{"name":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8","@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/person\/e8ca7fd09857a736a25e6b4455a3ab61"},"headline":"\u3010Python\u5165\u9580\u3011\u884c\u5217\u306e\u57fa\u790e\u304b\u3089\u5b9f\u969b\u306e\u6d3b\u7528\u65b9\u6cd5\u307e\u3067\uff01","datePublished":"2018-10-15T07:09:27+00:00","dateModified":"2024-05-06T02:52:54+00:00","mainEntityOfPage":{"@id":"https:\/\/www.sejuku.net\/blog\/75248"},"wordCount":260,"publisher":{"@id":"https:\/\/www.sejuku.net\/blog\/#organization"},"image":{"@id":"https:\/\/www.sejuku.net\/blog\/75248#primaryimage"},"thumbnailUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/08\/python.png","keywords":["python"],"articleSection":["Python\u5b66\u7fd2"],"inLanguage":"ja"},{"@type":"WebPage","@id":"https:\/\/www.sejuku.net\/blog\/75248","url":"https:\/\/www.sejuku.net\/blog\/75248","name":"\u3010Python\u5165\u9580\u3011\u884c\u5217\u306e\u57fa\u790e\u304b\u3089\u5b9f\u969b\u306e\u6d3b\u7528\u65b9\u6cd5\u307e\u3067\uff01 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","isPartOf":{"@id":"https:\/\/www.sejuku.net\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.sejuku.net\/blog\/75248#primaryimage"},"image":{"@id":"https:\/\/www.sejuku.net\/blog\/75248#primaryimage"},"thumbnailUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/08\/python.png","datePublished":"2018-10-15T07:09:27+00:00","dateModified":"2024-05-06T02:52:54+00:00","description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010Python\u5165\u9580\u3011\u884c\u5217\u306e\u57fa\u790e\u304b\u3089\u5b9f\u969b\u306e\u6d3b\u7528\u65b9\u6cd5\u307e\u3067\uff01 \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\/75248#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.sejuku.net\/blog\/75248"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.sejuku.net\/blog\/75248#primaryimage","url":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/08\/python.png","contentUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/08\/python.png","width":700,"height":400},{"@type":"BreadcrumbList","@id":"https:\/\/www.sejuku.net\/blog\/75248#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.sejuku.net\/blog\/"},{"@type":"ListItem","position":2,"name":"\u3010Python\u5165\u9580\u3011\u884c\u5217\u306e\u57fa\u790e\u304b\u3089\u5b9f\u969b\u306e\u6d3b\u7528\u65b9\u6cd5\u307e\u3067\uff01"}]},{"@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\/e8ca7fd09857a736a25e6b4455a3ab61","name":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/secure.gravatar.com\/avatar\/507c280c5c67d2c11fec4fdba20e5bf1ec2fe91f9deb42d2ec50382778b311bf?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/507c280c5c67d2c11fec4fdba20e5bf1ec2fe91f9deb42d2ec50382778b311bf?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/507c280c5c67d2c11fec4fdba20e5bf1ec2fe91f9deb42d2ec50382778b311bf?s=96&d=mm&r=g","caption":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u7de8\u96c6\u90e8"},"description":"\u3010\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u3011 DX\u8a8d\u5b9a\u53d6\u5f97\u4e8b\u696d\u8005\u306b\u9078\u5b9a\u3055\u308c\u3066\u3044\u308b\u682a\u5f0f\u4f1a\u793eSAMURAI\u306e\u30de\u30fc\u30b1\u30c6\u30a3\u30f3\u30b0\u30fb\u30b3\u30df\u30e5\u30cb\u30b1\u30fc\u30b7\u30e7\u30f3\u90e8\u304c\u904b\u55b6\u3002\u300c\u8cea\u306e\u9ad8\u3044IT\u6559\u80b2\u3092\u3001\u3059\u3079\u3066\u306e\u4eba\u306b\u300d\u3092\u30df\u30c3\u30b7\u30e7\u30f3\u306b\u3001IT\u30fb\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u5b66\u3073\u59cb\u3081\u305f\u521d\u5b66\u8005\u306e\u65b9\u306b\u5411\u3051\u8a18\u4e8b\u3092\u57f7\u7b46\u3002 \u7d2f\u8a08\u6307\u5c0e\u8005\u65704\u4e075,000\u540d\u4ee5\u4e0a\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30af\u30fc\u30eb\u300c\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u300d\u3001\u7d2f\u8a08\u767b\u9332\u8005\u65701\u4e078,000\u4eba\u4ee5\u4e0a\u306e\u30aa\u30f3\u30e9\u30a4\u30f3\u5b66\u7fd2\u30b5\u30fc\u30d3\u30b9\u300c\u4f8d\u30c6\u30e9\u30b3\u30e4\u300d\u3067\u6271\u3046\u6559\u6750\u958b\u767a\u306e\u30ce\u30a6\u30cf\u30a6\u30012013\u5e74\u306e\u5275\u696d\u304b\u3089\u904b\u55b6\u3067\u5f97\u305f\u77e5\u898b\u306b\u57fa\u3065\u304d\u3001\u8a18\u4e8b\u306e\u57f7\u7b46\u3060\u3051\u3067\u306a\u304f\u7de8\u96c6\u30fb\u76e3\u4fee\u3082\u62c5\u5f53\u3057\u3066\u3044\u307e\u3059\u3002 \u3010\u5c02\u9580\u5206\u91ce\u3011 IT\/Web\u958b\u767a\/AI\u30fb\u30ed\u30dc\u30c3\u30c8\u958b\u767a\/\u30a4\u30f3\u30d5\u30e9\u958b\u767a\/\u30b2\u30fc\u30e0\u958b\u767a\/AI\/Web\u30c7\u30b6\u30a4\u30f3","sameAs":["https:\/\/www.sejuku.net\/","https:\/\/www.facebook.com\/sejuku2013\/","https:\/\/www.instagram.com\/samuraiengineer_official\/","https:\/\/x.com\/https:\/\/twitter.com\/samuraijuku","https:\/\/www.youtube.com\/channel\/UCCFOQO5aDK0xXam4cUQXT8g"],"url":"https:\/\/www.sejuku.net\/blog\/author\/samurai-blog"}]}},"_links":{"self":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/posts\/75248","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\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/comments?post=75248"}],"version-history":[{"count":0,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/posts\/75248\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/media\/67376"}],"wp:attachment":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/media?parent=75248"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/categories?post=75248"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/tags?post=75248"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}