{"id":20373,"date":"2018-03-27T18:20:00","date_gmt":"2018-03-27T09:20:00","guid":{"rendered":"http:\/\/w3devlabs.net\/wp\/?p=20373"},"modified":"2018-03-19T21:20:58","modified_gmt":"2018-03-19T12:20:58","slug":"8-%ec%9e%90%eb%a3%8c%ea%b5%ac%ec%a1%b0-8-7-%eb%84%98%ed%8c%8c%ec%9d%b4numpy","status":"publish","type":"post","link":"http:\/\/w3devlabs.net\/wp\/?p=20373","title":{"rendered":"8.\uc790\ub8cc\uad6c\uc870 8.7 \ub118\ud30c\uc774(numpy)"},"content":{"rendered":"<h2 style=\"margin: 18pt 0px 6pt; line-height: 1.38; letter-spacing: normal; clear: none;\" dir=\"ltr\">C\uae09 \uac1c\ubc1c\uc790\uc640 \ud568\uaed8\ud558\ub294 \ud30c\uc774\uc36c<\/h2>\n<h2 style=\"margin: 18pt 0px 6pt; line-height: 1.38; letter-spacing: normal; clear: none;\" dir=\"ltr\"><span style=\"letter-spacing: normal; vertical-align: baseline; white-space: pre-wrap;\"><font style=\"font-size: 16pt;\"><font style=\"font-weight: normal;\">8.7 \ub118\ud30c\uc774(numpy)<\/font><\/font><\/span><\/h2>\n<p style=\"line-height: 1.38; letter-spacing: normal; margin-top: 0pt; margin-bottom: 0pt;\" dir=\"ltr\"><span style=\"letter-spacing: normal; vertical-align: baseline; white-space: pre-wrap;\"><font style=\"font-size: 11pt;\">\ube45\ub370\uc774\ud130 \ub610\ub294 \ub525\ub7ec\ub2dd\uc744 \uad6c\ud604\ud558\ub2e4\ubcf4\uba74 \ubc30\uc5f4\uc774\ub098 \ud589\ub82c \uacc4\uc0b0\uc774 \ub9ce\uc774 \ub098\uc635\ub2c8\ub2e4. numpy \ubc30\uc5f4 \ud074\ub798\uc2a4\uc778 numpy.array\uc5d0\ub294 \uc774\ub7ec\ud55c \uae30\ub2a5\uc744 \uad6c\ud604\ud558\uae30 \ud3b8\ub9ac\ud55c \uba54\uc18c\ub4dc\uac00 \ub9ce\uc774 \ud3ec\ud568\ub418\uc5b4\uc788\uc2b5\ub2c8\ub2e4. <\/font><\/span><\/p>\n<p><br style=\"letter-spacing: normal;\"><\/p>\n<h3 style=\"margin: 16pt 0px 4pt; line-height: 1.38; letter-spacing: normal; padding-top: 0px; clear: none;\" dir=\"ltr\"><span style=\"letter-spacing: normal; vertical-align: baseline; white-space: pre-wrap;\"><font style=\"font-size: 14pt;\"><font style=\"font-weight: normal;\">8.7.1 numpy \uc124\uce58<\/font><\/font><\/span><\/h3>\n<p style=\"line-height: 1.38; letter-spacing: normal; margin-top: 0pt; margin-bottom: 0pt;\" dir=\"ltr\"><span style=\"letter-spacing: normal; vertical-align: baseline; white-space: pre-wrap;\"><font style=\"font-size: 11pt;\">&gt; pip install numpy<\/font><\/span><\/p>\n<p><br style=\"letter-spacing: normal;\"><\/p>\n<p style=\"line-height: 1.38; letter-spacing: normal; margin-top: 0pt; margin-bottom: 0pt;\" dir=\"ltr\"><span style=\"letter-spacing: normal; vertical-align: baseline; white-space: pre-wrap;\"><img loading=\"lazy\" decoding=\"async\" width=\"439\" height=\"145\" style=\"border: currentcolor; border-image: none; letter-spacing: normal; max-width: none; transform: rotate(0rad); -webkit-transform: rotate(0.00rad);\" src=\"https:\/\/lh5.googleusercontent.com\/5EBfH6DyRwHlx4V2jnSOFoRYim8izokpdatqCT_rL8wTc96t97akxQVJ2kP2Q3CDgRy5KUYgVSndCB-r7SQ6D2-r1DfroqsxLbxgu-gvO9HRfUAmvAwZcWPgE4riKUejEfX0RK9Y\"><\/span><\/p>\n<p style=\"line-height: 1.38; letter-spacing: normal; margin-top: 0pt; margin-bottom: 0pt;\" dir=\"ltr\"><span style=\"letter-spacing: normal; vertical-align: baseline; white-space: pre-wrap;\"><font style=\"font-size: 11pt;\">\uc778\uc2a4\ud1a8\uc744 \uc644\ub8cc\ud558\uc600\uc2b5\ub2c8\ub2e4.<\/font><\/span><\/p>\n<p style=\"line-height: 1.38; letter-spacing: normal; margin-top: 0pt; margin-bottom: 0pt;\" dir=\"ltr\"><span style=\"letter-spacing: normal; vertical-align: baseline; white-space: pre-wrap;\"><img loading=\"lazy\" decoding=\"async\" width=\"484\" height=\"152\" style=\"border: currentcolor; border-image: none; letter-spacing: normal; max-width: none; transform: rotate(0rad); -webkit-transform: rotate(0.00rad);\" src=\"https:\/\/lh4.googleusercontent.com\/ACF-OpXEiJ3rHA_dbGRy_r8QJn6Y-MuqwalxAl8dlVD-08B_JccKRmM-3FQ_3mZrZFcaUEiYXvKopgV2KsQyPWBV55MWVF5OK_-sz_MHz-zjWyvnlPSJKCUYktcvJSFKheVpGyJc\"><\/span><\/p>\n<p style=\"line-height: 1.38; letter-spacing: normal; margin-top: 0pt; margin-bottom: 0pt;\" dir=\"ltr\"><span style=\"letter-spacing: normal; vertical-align: baseline; white-space: pre-wrap;\"><font style=\"font-size: 11pt;\">\ud30c\uc774\uc36c\uc5d0\uc11c import numpy\ud574\uc11c \uc624\ub958\uac00 \uc5c6\ub2e4\uba74 \uc815\uc0c1\uc801\uc73c\ub85c \uc124\uce58\ub41c \uac83\uc785\ub2c8\ub2e4.<\/font><\/span><\/p>\n<p><br style=\"letter-spacing: normal;\"><\/p>\n<h3 style=\"margin: 16pt 0px 4pt; line-height: 1.38; letter-spacing: normal; padding-top: 0px; clear: none;\" dir=\"ltr\"><span style=\"letter-spacing: normal; vertical-align: baseline; white-space: pre-wrap;\"><font style=\"font-size: 14pt;\"><font style=\"font-weight: normal;\">8.7.2 numpy \ubc30\uc5f4 \ub9cc\ub4e4\uae30<\/font><\/font><\/span><\/h3>\n<p style=\"line-height: 1.38; letter-spacing: normal; margin-top: 0pt; margin-bottom: 0pt;\" dir=\"ltr\"><span style=\"letter-spacing: normal; vertical-align: baseline; white-space: pre-wrap;\"><font style=\"font-size: 11pt;\">numpy \ubc30\uc5f4\uc740 numpy.array()\ud568\uc218\ub97c \uc774\uc6a9\ud558\uc5ec \ub9cc\ub4ed\ub2c8\ub2e4. numpy.array()\ub294 \ud30c\uc774\uc36c\uc758 \ub9ac\uc2a4\ud2b8\ub97c \uc778\uc218\ub85c \ubc1b\uc544\uc11c numpy \ub77c\uc774\ube0c\ub7ec\ub9ac\uac00 \uc81c\uacf5\ud558\ub294 \ubc30\uc5f4\uc758 \ud615\ud0dc\uc778 numpy.ndarray\ud615\uc73c\ub85c \ub9ac\ud134\ud569\ub2c8\ub2e4. <\/font><\/span><\/p>\n<p><br style=\"letter-spacing: normal;\"><\/p>\n<p style=\"line-height: 1.38; letter-spacing: normal; margin-top: 0pt; margin-bottom: 0pt;\" dir=\"ltr\"><span style=\"letter-spacing: normal; vertical-align: baseline; white-space: pre-wrap;\"><img loading=\"lazy\" decoding=\"async\" width=\"517\" height=\"426\" style=\"border: currentcolor; border-image: none; letter-spacing: normal; max-width: none; transform: rotate(0rad); -webkit-transform: rotate(0.00rad);\" src=\"https:\/\/lh3.googleusercontent.com\/i6On1ZhARjhxlVqg79a8-O5iapU9CqNKnWRdUCeBS2UVo_wueEpzzS-SmQPWwwrIY-_EoZBCKn0kPJ8L4ge1Uv8yL50cgLrGlh5FXdQ8zPlHUTFqiCxV4dLZGmywwB5XmtZBzkYe\"><\/span><\/p>\n<p style=\"line-height: 1.38; letter-spacing: normal; margin-top: 0pt; margin-bottom: 0pt;\" dir=\"ltr\"><span style=\"letter-spacing: normal; vertical-align: baseline; white-space: pre-wrap;\"><font style=\"font-size: 11pt;\">a \ubcc0\uc218\uc5d0 numpy.array() \ud568\uc218\ub97c \uc774\uc6a9\ud558\uc5ec 1, 2,3,4 ,5\ub97c \ud560\ub2f9\ud569\ub2c8\ub2e4. <\/font><\/span><\/p>\n<p><br style=\"letter-spacing: normal;\"><\/p>\n<p style=\"line-height: 1.38; letter-spacing: normal; margin-top: 0pt; margin-bottom: 0pt;\" dir=\"ltr\"><span style=\"letter-spacing: normal; vertical-align: baseline; white-space: pre-wrap;\"><img loading=\"lazy\" decoding=\"async\" width=\"484\" height=\"152\" style=\"border: currentcolor; border-image: none; letter-spacing: normal; max-width: none; transform: rotate(0rad); -webkit-transform: rotate(0.00rad);\" src=\"https:\/\/lh3.googleusercontent.com\/xtiwrPsL8T9q4PuKSzgqy-B1NDV0FbquFCtOlwcNNePuAuDlygD-LsyZAqQaJc9ZazZfZzEkt5VjMXpvnry3pUS_Jyu5DX41Jshl2xgrMthgUHTFqQb6GPEyqSLDiQ76Bo9iNvmJ\"><\/span><\/p>\n<p style=\"line-height: 1.38; letter-spacing: normal; margin-top: 0pt; margin-bottom: 0pt;\" dir=\"ltr\"><span style=\"letter-spacing: normal; vertical-align: baseline; white-space: pre-wrap;\"><font style=\"font-size: 11pt;\">\ucd9c\ub825\ud574\ubcf4\uba74 1 2 3 4 5 \uac12\uacfc \ud0c0\uc785\uc740 numpy.ndarray\uac00 \ucd9c\ub825\ub418\ub294\uac83\uc744 \ud655\uc778\ud560\uc218 \uc788\uc2b5\ub2c8\ub2e4. <\/font><\/span><\/p>\n<p><br style=\"letter-spacing: normal;\"><\/p>\n<h3 style=\"margin: 16pt 0px 4pt; line-height: 1.38; letter-spacing: normal; padding-top: 0px; clear: none;\" dir=\"ltr\"><span style=\"letter-spacing: normal; vertical-align: baseline; white-space: pre-wrap;\"><font style=\"font-size: 14pt;\"><font style=\"font-weight: normal;\">8.7.3 numpy \uc5f0\uc0b0<\/font><\/font><\/span><\/h3>\n<p style=\"line-height: 1.38; letter-spacing: normal; margin-top: 0pt; margin-bottom: 0pt;\" dir=\"ltr\"><span style=\"letter-spacing: normal; vertical-align: baseline; white-space: pre-wrap;\"><font style=\"font-size: 11pt;\">\uc544\ub798\ub294 numpy.array\uc758 \ub367\uc148, \ube84\uc148, \uacf1\uc148, \ub098\ub217\uc148\uacfc \uac19\uc740 \uc5f0\uc0b0\uc744 \uc218\ud589\ud558\ub294&nbsp; \uc608\uc81c\uc785\ub2c8\ub2e4. <\/font><\/span><\/p>\n<p style=\"line-height: 1.38; letter-spacing: normal; margin-top: 0pt; margin-bottom: 0pt;\" dir=\"ltr\"><span style=\"letter-spacing: normal; vertical-align: baseline; white-space: pre-wrap;\"><img loading=\"lazy\" decoding=\"async\" width=\"517\" height=\"496\" style=\"border: currentcolor; border-image: none; letter-spacing: normal; max-width: none; transform: rotate(0rad); -webkit-transform: rotate(0.00rad);\" src=\"https:\/\/lh5.googleusercontent.com\/j3E-i6BtmjdUwkltnLnUZ9QFs1eGu7LeQCP5Wan_7OBfM3NINuWeV9ol5W-XB3n0YDHFsAu62ptOXSn8tCwynSLfHp1tvNaCG0ktf-GD0evzglMbDv_mgvzxmtqIBPsxMcaWM_oa\"><\/span><\/p>\n<p><br style=\"letter-spacing: normal;\"><br style=\"letter-spacing: normal;\"><\/p>\n<p style=\"line-height: 1.38; letter-spacing: normal; margin-top: 0pt; margin-bottom: 0pt;\" dir=\"ltr\"><span style=\"letter-spacing: normal; vertical-align: baseline; white-space: pre-wrap;\"><img loading=\"lazy\" decoding=\"async\" width=\"484\" height=\"152\" style=\"border: currentcolor; border-image: none; letter-spacing: normal; max-width: none; transform: rotate(0rad); -webkit-transform: rotate(0.00rad);\" src=\"https:\/\/lh5.googleusercontent.com\/4tt-a2HFssYCPTjVGijpX1x8Wud7RX2MkOa0nGe2j6zqvsQgqzSBYYRmm8RjMoyQPEFNlXpIFUdhzGirc-YktRPjUrfC0eSqU1UCZFECR-Jjdw3jHRGQw8a-DrbqTT3qc-tJLP1i\"><\/span><\/p>\n<p style=\"line-height: 1.38; letter-spacing: normal; margin-top: 0pt; margin-bottom: 0pt;\" dir=\"ltr\"><span style=\"letter-spacing: normal; vertical-align: baseline; white-space: pre-wrap;\"><font style=\"font-size: 11pt;\">\ub367\uc148, \ube84\uc148, \uacf1\uc148, \ub098\ub217\uc148\uc758 \uac12\uc774 \uc815\uc0c1\uc801\uc73c\ub85c \ucd9c\ub825\ub418\ub294\uac83\uc744 \ud655\uc778\ud560\uc218 \uc788\uc2b5\ub2c8\ub2e4. <\/font><\/span><\/p>\n<p><br style=\"letter-spacing: normal;\"><\/p>\n<h3 style=\"margin: 16pt 0px 4pt; line-height: 1.38; letter-spacing: normal; padding-top: 0px; clear: none;\" dir=\"ltr\"><span style=\"letter-spacing: normal; vertical-align: baseline; white-space: pre-wrap;\"><font style=\"font-size: 14pt;\"><font style=\"font-weight: normal;\">8.7.4 numpy\uc758 \ub2e4\ucc28\uc6d0 \ubc30\uc5f4<\/font><\/font><\/span><\/h3>\n<p style=\"line-height: 1.38; letter-spacing: normal; margin-top: 0pt; margin-bottom: 0pt;\" dir=\"ltr\"><span style=\"letter-spacing: normal; vertical-align: baseline; white-space: pre-wrap;\"><font style=\"font-size: 11pt;\">numpy\ub294 1\ucc28\uc6d0 \ubc30\uc5f4\ubfd0 \uc544\ub2c8\ub77c \ub2e4\ucc28\uc6d0 \ubc30\uc5f4\ub3c4 \uc9c0\uc6d0\ud558\uace0 \uc788\uc2b5\ub2c8\ub2e4. <\/font><\/span><\/p>\n<p><br style=\"letter-spacing: normal;\"><\/p>\n<p style=\"line-height: 1.38; letter-spacing: normal; margin-top: 0pt; margin-bottom: 0pt;\" dir=\"ltr\"><span style=\"letter-spacing: normal; vertical-align: baseline; white-space: pre-wrap;\"><font style=\"font-size: 11pt;\">\uc544\ub798\uc640 \uac19\uc774 2\ucc28\uc6d0 \ubc30\uc5f4\uc744 \ub9cc\ub4e4\uc218 \uc788\uc2b5\ub2c8\ub2e4. <\/font><\/span><\/p>\n<p><br style=\"letter-spacing: normal;\"><\/p>\n<p style=\"line-height: 1.38; letter-spacing: normal; margin-top: 0pt; margin-bottom: 0pt;\" dir=\"ltr\"><span style=\"letter-spacing: normal; vertical-align: baseline; white-space: pre-wrap;\"><font style=\"font-size: 11pt;\">a = numpy.array([[1, 2], [3, 4]]) <\/font><\/span><\/p>\n<p style=\"line-height: 1.38; letter-spacing: normal; margin-top: 0pt; margin-bottom: 0pt;\" dir=\"ltr\"><span style=\"letter-spacing: normal; vertical-align: baseline; white-space: pre-wrap;\"><font style=\"font-size: 11pt;\">2\ucc28\uc6d0 \ubc30\uc5f4\uc744 \ub9cc\ub4e4\uc5b4\uc11c \uc544\ub798\uc640 \uac19\uc774 \ucd9c\ub825\ud574 \ubcf4\uc558\uc2b5\ub2c8\ub2e4.<\/font><\/span><\/p>\n<p style=\"line-height: 1.38; letter-spacing: normal; margin-top: 0pt; margin-bottom: 0pt;\" dir=\"ltr\"><span style=\"letter-spacing: normal; vertical-align: baseline; white-space: pre-wrap;\"><font style=\"font-size: 11pt;\">print( a.shape )<\/font><\/span><\/p>\n<p style=\"line-height: 1.38; letter-spacing: normal; margin-top: 0pt; margin-bottom: 0pt;\" dir=\"ltr\"><span style=\"letter-spacing: normal; vertical-align: baseline; white-space: pre-wrap;\"><font style=\"font-size: 11pt;\">a.shape\ub294 a\ubc30\uc5f4\uc758 \uac01 \ucc28\uc6d0\uc758 \ud06c\uae30\ub97c \uc54c\ub824\uc8fc\ub294 \uc815\uc218\uc758 \ud29c\ud50c\uc785\ub2c8\ub2e4.<\/font><\/span><\/p>\n<p style=\"line-height: 1.38; letter-spacing: normal; margin-top: 0pt; margin-bottom: 0pt;\" dir=\"ltr\"><span style=\"letter-spacing: normal; vertical-align: baseline; white-space: pre-wrap;\"><font style=\"font-size: 11pt;\">print( a.dtype )<\/font><\/span><\/p>\n<p style=\"line-height: 1.38; letter-spacing: normal; margin-top: 0pt; margin-bottom: 0pt;\" dir=\"ltr\"><span style=\"letter-spacing: normal; vertical-align: baseline; white-space: pre-wrap;\"><font style=\"font-size: 11pt;\">\ubaa8\ub4e0 numpy\ubc30\uc5f4\uc740 \uac19\uc740 \ud0c0\uc785 \uc694\uc18c\uc758 grid \uc785\ub2c8\ub2e4. numpy\ub294 \ubc30\uc5f4\uc744 \uad6c\uc131\ud558\ub294\ub370 \uc0ac\uc6a9\ud560 \uc218 \uc788\ub294 \uc22b\uc790 \uc790\ub8cc\ud0c0\uc785\uc758 \ud070 \uc9d1\ud569\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4. <\/font><\/span><\/p>\n<p><br style=\"letter-spacing: normal;\"><\/p>\n<p style=\"line-height: 1.38; letter-spacing: normal; margin-top: 0pt; margin-bottom: 0pt;\" dir=\"ltr\"><span style=\"letter-spacing: normal; vertical-align: baseline; white-space: pre-wrap;\"><img loading=\"lazy\" decoding=\"async\" width=\"517\" height=\"354\" style=\"border: currentcolor; border-image: none; letter-spacing: normal; max-width: none; transform: rotate(0rad); -webkit-transform: rotate(0.00rad);\" src=\"https:\/\/lh5.googleusercontent.com\/50O027tsAJbu_wsBagt_I_yHSQlHi0EEaqEXintAA-4iDv-XLmF_TZXLdrcOw065MgSBbc-ZHC3qAYzijYX09KvTy4C8K-2OcHxINuUvhjJBhV1AbzQV_ZznaWH1E5Qe5T4r6gCY\"><\/span><\/p>\n<p><br style=\"letter-spacing: normal;\"><br style=\"letter-spacing: normal;\"><\/p>\n<p style=\"line-height: 1.38; letter-spacing: normal; margin-top: 0pt; margin-bottom: 0pt;\" dir=\"ltr\"><span style=\"letter-spacing: normal; vertical-align: baseline; white-space: pre-wrap;\"><img loading=\"lazy\" decoding=\"async\" width=\"484\" height=\"194\" style=\"border: currentcolor; border-image: none; letter-spacing: normal; max-width: none; transform: rotate(0rad); -webkit-transform: rotate(0.00rad);\" src=\"https:\/\/lh5.googleusercontent.com\/Hkmyp6OIjIyChpsN_NSp2sJOAWckBiCUtp3LexR-TMU6ABivt7_UXWV1rEXnIHEZZOVpAQtH-rUMsRW9XxfGw5uSogw4JhQYEsDY6Q3Na_9OjIm1YufVNl1YKADJtb4jVDY9RxBx\"><\/span><\/p>\n<p style=\"line-height: 1.38; letter-spacing: normal; margin-top: 0pt; margin-bottom: 0pt;\" dir=\"ltr\"><span style=\"letter-spacing: normal; vertical-align: baseline; white-space: pre-wrap;\"><font style=\"font-size: 11pt;\">\uc704\uc640 \uac19\uc740 \uacb0\uacfc\uac12\uc774 \ub098\uc635\ub2c8\ub2e4. <\/font><\/span><\/p>\n<p><br style=\"letter-spacing: normal;\"><\/p>\n<h3 style=\"margin: 16pt 0px 4pt; line-height: 1.38; letter-spacing: normal; padding-top: 0px; clear: none;\" dir=\"ltr\"><span style=\"letter-spacing: normal; vertical-align: baseline; white-space: pre-wrap;\"><font style=\"font-size: 14pt;\"><font style=\"font-weight: normal;\">8.7.5 \ub2e4\ucc28\uc6d0 \ubc30\uc5f4 \uc5f0\uc0b0<\/font><\/font><\/span><\/h3>\n<p style=\"line-height: 1.38; letter-spacing: normal; margin-top: 0pt; margin-bottom: 0pt;\" dir=\"ltr\"><span style=\"letter-spacing: normal; vertical-align: baseline; white-space: pre-wrap;\"><font style=\"font-size: 11pt;\">\ub2e4\ucc28\uc6d0 \ubc30\uc5f4\uc758 \uc5f0\uc0b0\ub3c4 1\ucc28\uc6d0 \ubc30\uc5f4\uc758 \uc5f0\uc0b0\uacfc \ub3d9\uc77c\ud55c \ubc29\ubc95\uc73c\ub85c \uc5f0\uc0b0\uc744 \ud558\uace0 \uc788\uc2b5\ub2c8\ub2e4. <\/font><\/span><\/p>\n<p><br style=\"letter-spacing: normal;\"><\/p>\n<p style=\"line-height: 1.38; letter-spacing: normal; margin-top: 0pt; margin-bottom: 0pt;\" dir=\"ltr\"><span style=\"letter-spacing: normal; vertical-align: baseline; white-space: pre-wrap;\"><img loading=\"lazy\" decoding=\"async\" width=\"517\" height=\"354\" style=\"border: currentcolor; border-image: none; letter-spacing: normal; max-width: none; transform: rotate(0rad); -webkit-transform: rotate(0.00rad);\" src=\"https:\/\/lh6.googleusercontent.com\/NvnSCgyS6BbdY3sGBL2YnXkPUGF5JRN2UwdDGHCoojgD2Fvu_YR44SZVzkzZNRF7I8C0U2-9edliZ1AMqHzjfakcc1_ba-JztVFuh3l-9wrMiBPvd2K0irt7qLvBRQFEMEYTVXoQ\"><\/span><\/p>\n<p style=\"line-height: 1.38; letter-spacing: normal; margin-top: 0pt; margin-bottom: 0pt;\" dir=\"ltr\"><span style=\"letter-spacing: normal; vertical-align: baseline; white-space: pre-wrap;\"><font style=\"font-size: 11pt;\">2\ucc28\uc6d0 \ubc30\uc5f4\uc758 +, X \uc608\uc81c\uc785\ub2c8\ub2e4.<\/font><\/span><\/p>\n<p><br style=\"letter-spacing: normal;\"><\/p>\n<p style=\"line-height: 1.38; letter-spacing: normal; margin-top: 0pt; margin-bottom: 0pt;\" dir=\"ltr\"><span style=\"letter-spacing: normal; vertical-align: baseline; white-space: pre-wrap;\"><img loading=\"lazy\" decoding=\"async\" width=\"484\" height=\"194\" style=\"border: currentcolor; border-image: none; letter-spacing: normal; max-width: none; transform: rotate(0rad); -webkit-transform: rotate(0.00rad);\" src=\"https:\/\/lh3.googleusercontent.com\/1bn_ffpxVrnQvE9pK0aLR767kDrJfzca7yYFSAWYGXN3RrAREvER5WWWrQQepGmRU9DGffeRI-wlULLuNM_FdzjUiNJdSQZzB0Mm5Wy_M6ZW-dkSouiXeEWNngEBCAE1bXRSOlIj\"><\/span><\/p>\n<p style=\"line-height: 1.38; letter-spacing: normal; margin-top: 0pt; margin-bottom: 0pt;\" dir=\"ltr\"><span style=\"letter-spacing: normal; vertical-align: baseline; white-space: pre-wrap;\"><font style=\"font-size: 11pt;\">\uc704\uc640 \uac19\uc774 \uacb0\uacfc\uac12\uc774 \ucd9c\ub825\ub429\ub2c8\ub2e4. <\/font><\/span><\/p>\n<p><br style=\"letter-spacing: normal;\"><\/p>\n<h3 style=\"margin: 16pt 0px 4pt; line-height: 1.38; letter-spacing: normal; padding-top: 0px; clear: none;\" dir=\"ltr\"><span style=\"letter-spacing: normal; vertical-align: baseline; white-space: pre-wrap;\"><font style=\"font-size: 14pt;\"><font style=\"font-weight: normal;\">8.7.6 \ube0c\ub85c\ub4dc\uce90\uc2a4\ud2b8<\/font><\/font><\/span><\/h3>\n<p style=\"line-height: 1.38; letter-spacing: normal; margin-top: 0pt; margin-bottom: 0pt;\" dir=\"ltr\"><span style=\"letter-spacing: normal; vertical-align: baseline; white-space: pre-wrap;\"><font style=\"font-size: 11pt;\">\uc77c\ubc18\uc801\uc73c\ub85c \uc6b0\ub9ac\ub294 \ubc30\uc5f4\uc744 \uacc4\uc0b0\ud560\ub54c \ub3d9\uc77c\ud55c \ucc28\uc6d0\uc758 \ubc30\uc5f4\uc744 \uacc4\uc0b0\ud569\ub2c8\ub2e4. \uadf8\ub7f0\ub370 numpy\uc5d0\uc11c\ub294 \ud615\uc0c1(\ucc28\uc6d0)\uc774 \ub2e4\ub978 \ubc30\uc5f4\ub07c\ub9ac \uacc4\uc0b0\ub3c4 \uac00\ub2a5\ud569\ub2c8\ub2e4. \uc774\ub7ec\ud55c \uae30\ub2a5\uc744 \ube0c\ub85c\ub4dc\uce90\uc2a4\ud2b8\ub77c\uace0 \ud569\ub2c8\ub2e4. <\/font><\/span><\/p>\n<p><br style=\"letter-spacing: normal;\"><\/p>\n<p style=\"line-height: 1.38; letter-spacing: normal; margin-top: 0pt; margin-bottom: 0pt;\" dir=\"ltr\"><span style=\"letter-spacing: normal; vertical-align: baseline; white-space: pre-wrap;\"><img loading=\"lazy\" decoding=\"async\" width=\"517\" height=\"354\" style=\"border: currentcolor; border-image: none; letter-spacing: normal; max-width: none; transform: rotate(0rad); -webkit-transform: rotate(0.00rad);\" src=\"https:\/\/lh6.googleusercontent.com\/fKwrIPUBYJKJV4xtD9WoFvD5oTQrv7eiplmgUGX_KicdXwUapNid5clsRq6eU7WxTXWsmSJhvp8UnAoAM1Up8ghnFtl2VhGkFPfscTDyV1-wQ0OzYY_eMWW0Yp-CxgoAMZb36vIV\"><\/span><\/p>\n<p><br style=\"letter-spacing: normal;\"><\/p>\n<p style=\"line-height: 1.38; letter-spacing: normal; margin-top: 0pt; margin-bottom: 0pt;\" dir=\"ltr\"><span style=\"letter-spacing: normal; vertical-align: baseline; white-space: pre-wrap;\"><img loading=\"lazy\" decoding=\"async\" width=\"484\" height=\"194\" style=\"border: currentcolor; border-image: none; letter-spacing: normal; max-width: none; transform: rotate(0rad); -webkit-transform: rotate(0.00rad);\" src=\"https:\/\/lh5.googleusercontent.com\/z-4mCzZJoprQY4nucNfpGS1wP7gc5KNGwcBA7hCyv_o8yVWmMNYeXFfJ5Xcm4VUQTR_P0r8lL25YR20N4m6HPJqm7eRlcQdYj5tJXl0xC_tvYCNVyP6qYTfBcYn4iC4rFaeYt-hv\"><\/span><\/p>\n<p style=\"line-height: 1.38; letter-spacing: normal; margin-top: 0pt; margin-bottom: 0pt;\" dir=\"ltr\"><span style=\"letter-spacing: normal; vertical-align: baseline; white-space: pre-wrap;\"><font style=\"font-size: 11pt;\">\uc704\uc640 \uac19\uc774 \uacb0\uacfc\uac00 \ucd9c\ub825\ub429\ub2c8\ub2e4.<\/font><\/span><\/p>\n<p><br style=\"letter-spacing: normal;\"><\/p>\n<h3 style=\"margin: 16pt 0px 4pt; line-height: 1.38; letter-spacing: normal; padding-top: 0px; clear: none;\" dir=\"ltr\"><span style=\"letter-spacing: normal; vertical-align: baseline; white-space: pre-wrap;\"><font style=\"font-size: 14pt;\"><font style=\"font-weight: normal;\">8.7.7 numpy \uc6d0\uc18c\uc811\uadfc<\/font><\/font><\/span><\/h3>\n<p><br style=\"letter-spacing: normal;\"><\/p>\n<p style=\"line-height: 1.38; letter-spacing: normal; margin-top: 0pt; margin-bottom: 0pt;\" dir=\"ltr\"><span style=\"letter-spacing: normal; vertical-align: baseline; white-space: pre-wrap;\"><font style=\"font-size: 11pt;\">numpy\uc5d0\uc11c \uc6d0\uc18c\uc758 \uc778\ub371\uc2a4\ub294 0\ubd80\ud130 \uc2dc\uc791\ud569\ub2c8\ub2e4. \uac01 \uc6d0\uc18c\uc5d0 \uc811\uadfc\ud558\ub824\uba74 \ud574\ub2f9\ud558\ub294 \uc778\ub371\uc2a4\ub97c \uc785\ub825\ud558\uba74 \ub429\ub2c8\ub2e4. <\/font><\/span><\/p>\n<p><br style=\"letter-spacing: normal;\"><\/p>\n<p style=\"line-height: 1.38; letter-spacing: normal; margin-top: 0pt; margin-bottom: 0pt;\" dir=\"ltr\"><span style=\"letter-spacing: normal; vertical-align: baseline; white-space: pre-wrap;\"><font style=\"font-size: 11pt;\">\uc5ec\ub290 \ubc30\uc5f4\uacfc \uac19\uc774 \uc791\uc5c5\ud558\uba74 \ub429\ub2c8\ub2e4. \uc544\ub798\uc640 \uac19\uc740 \uacb0\uacfc\ub97c \uc5bb\uc744\uc218 \uc788\uc2b5\ub2c8\ub2e4. <\/font><\/span><\/p>\n<p style=\"line-height: 1.38; letter-spacing: normal; margin-top: 0pt; margin-bottom: 0pt;\" dir=\"ltr\"><span style=\"letter-spacing: normal; vertical-align: baseline; white-space: pre-wrap;\"><img loading=\"lazy\" decoding=\"async\" width=\"602\" height=\"365\" style=\"border: currentcolor; border-image: none; letter-spacing: normal; max-width: none; transform: rotate(0rad); -webkit-transform: rotate(0.00rad);\" src=\"https:\/\/lh4.googleusercontent.com\/pXB34MH5mRXTnaFTgLGIik-1-5XZEoZBAB-iuecR2f_8mzTJSp6f42B6c8Aah2etwTN_xel-qJ6RzgbEC_OoMQx9wp3S3qna_Rp2EPv5hh4CIeqj8m5JB90Aa7FDj_OFSv9UxyvT\"><\/span><\/p>\n<p><br style=\"letter-spacing: normal;\"><\/p>\n<p style=\"line-height: 1.38; letter-spacing: normal; margin-top: 0pt; margin-bottom: 0pt;\" dir=\"ltr\"><span style=\"letter-spacing: normal; vertical-align: baseline; white-space: pre-wrap;\"><img loading=\"lazy\" decoding=\"async\" width=\"484\" height=\"194\" style=\"border: currentcolor; border-image: none; letter-spacing: normal; max-width: none; transform: rotate(0rad); -webkit-transform: rotate(0.00rad);\" src=\"https:\/\/lh6.googleusercontent.com\/ZgU5CFopLPH-1a5dE0WE3cTiuPZ8zxDstFjtuLjstBdgqJJOKt7Ho8SacYMYKgheI1fy_esBvPPPOD4ixQ15kvcKPUxFoPkZNEC5CNgqSyEh7EJBh2hyUW0gMffHKkupRVO7_quH\"><\/span><\/p>\n<p><br style=\"letter-spacing: normal;\"><\/p>\n<h3 style=\"margin: 16pt 0px 4pt; line-height: 1.38; letter-spacing: normal; padding-top: 0px; clear: none;\" dir=\"ltr\"><span style=\"letter-spacing: normal; vertical-align: baseline; white-space: pre-wrap;\"><font style=\"font-size: 14pt;\"><font style=\"font-weight: normal;\">8.7.8 \uc6d0\uc18c\uc5f0\uc0b0<\/font><\/font><\/span><\/h3>\n<p><br style=\"letter-spacing: normal;\"><\/p>\n<p style=\"line-height: 1.38; letter-spacing: normal; margin-top: 0pt; margin-bottom: 0pt;\" dir=\"ltr\"><span style=\"letter-spacing: normal; vertical-align: baseline; white-space: pre-wrap;\"><font style=\"font-size: 11pt;\">a = numpy.array([[1, 2], [3, 4], [5, 6], [7, 8]])<\/font><\/span><\/p>\n<p><br style=\"letter-spacing: normal;\"><\/p>\n<p style=\"line-height: 1.38; letter-spacing: normal; margin-top: 0pt; margin-bottom: 0pt;\" dir=\"ltr\"><span style=\"letter-spacing: normal; vertical-align: baseline; white-space: pre-wrap;\"><font style=\"font-size: 11pt;\">print( a &gt; 4 )<\/font><\/span><\/p>\n<p style=\"line-height: 1.38; letter-spacing: normal; margin-top: 0pt; margin-bottom: 0pt;\" dir=\"ltr\"><span style=\"letter-spacing: normal; vertical-align: baseline; white-space: pre-wrap;\"><font style=\"font-size: 11pt;\">a \uc6d0\uc18c\ub97c \ubaa8\ub450 \ube44\uad50\ud574\uc11c 4\ubcf4\ub2e4 \ud070\uacbd\uc6b0 True\ub97c \ub9ac\ud134\ud558\uace0 \uc791\uc740\uacbd\uc6b0 False \ub97c \ub9ac\ud134\ud569\ub2c8\ub2e4.<\/font><\/span><\/p>\n<p><br style=\"letter-spacing: normal;\"><\/p>\n<p style=\"line-height: 1.38; letter-spacing: normal; margin-top: 0pt; margin-bottom: 0pt;\" dir=\"ltr\"><span style=\"letter-spacing: normal; vertical-align: baseline; white-space: pre-wrap;\"><font style=\"font-size: 11pt;\">print( len(a &gt; 4) )<\/font><\/span><\/p>\n<p style=\"line-height: 1.38; letter-spacing: normal; margin-top: 0pt; margin-bottom: 0pt;\" dir=\"ltr\"><span style=\"letter-spacing: normal; vertical-align: baseline; white-space: pre-wrap;\"><font style=\"font-size: 11pt;\">a \uc6d0\uc18c\uc758 \uac12\uc744 \ubaa8\ub450 \ube44\uad50\ud574\uc11c 4\ubcf4\ub2e4 \ud070\uacbd\uc6b0\uc758 \uc6d0\uc18c \uac2f\uc218\ub97c \ub9ac\ud134\ud569\ub2c8\ub2e4.<\/font><\/span><\/p>\n<p><br style=\"letter-spacing: normal;\"><br style=\"letter-spacing: normal;\"><\/p>\n<p style=\"line-height: 1.38; letter-spacing: normal; margin-top: 0pt; margin-bottom: 0pt;\" dir=\"ltr\"><span style=\"letter-spacing: normal; vertical-align: baseline; white-space: pre-wrap;\"><img loading=\"lazy\" decoding=\"async\" width=\"602\" height=\"365\" style=\"border: currentcolor; border-image: none; letter-spacing: normal; max-width: none; transform: rotate(0rad); -webkit-transform: rotate(0.00rad);\" src=\"https:\/\/lh4.googleusercontent.com\/txAIHoMuDHP3oLvSrRDush5poVrAiJ4gLEKKiq5HddH6Fpl_OnIgKMQ8Xlu-x-ZFncHIGMqMqf-bNVo8WE_5zZcfP_91tqQJc1u6Ss_A7bKt6wYa1oQnRYd8E9X2C4k_oyufADHo\"><\/span><\/p>\n<p><br style=\"letter-spacing: normal;\"><\/p>\n<p style=\"line-height: 1.38; letter-spacing: normal; margin-top: 0pt; margin-bottom: 0pt;\" dir=\"ltr\"><span style=\"letter-spacing: normal; vertical-align: baseline; white-space: pre-wrap;\"><img loading=\"lazy\" decoding=\"async\" width=\"484\" height=\"194\" style=\"border: currentcolor; border-image: none; letter-spacing: normal; max-width: none; transform: rotate(0rad); -webkit-transform: rotate(0.00rad);\" src=\"https:\/\/lh6.googleusercontent.com\/AI_WwGUoqvaObXwZlbrrSOugXRXDjWawJOErRqnW1sUdn45FuIamLz92qCL_XGNE_DVrCUrl28aRsAGzXBhXeIFqWUB4-ztGATpQgkb2IXme4s1D6vWPe-KDQxDnmnCYiVZBPd1T\"><\/span><\/p>\n<p style=\"line-height: 1.38; letter-spacing: normal; margin-top: 0pt; margin-bottom: 0pt;\" dir=\"ltr\"><span style=\"letter-spacing: normal; vertical-align: baseline; white-space: pre-wrap;\"><font style=\"font-size: 11pt;\">\uc704\uc640\uac19\uc740 \uacb0\uacfc\ub97c \uc5bb\uc744\uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/font><\/span><\/p>\n<p><br style=\"letter-spacing: normal;\"><\/p>\n<p style=\"line-height: 1.38; letter-spacing: normal; margin-top: 0pt; margin-bottom: 0pt;\" dir=\"ltr\"><span style=\"letter-spacing: normal; vertical-align: baseline; white-space: pre-wrap;\"><font style=\"font-size: 11pt;\">\uc774\uc640 \uac19\uc740 \ubc29\ubc95\uc744 \uc774\uc6a9\ud558\uc5ec \ub2e4\uc591\ud55c \uc885\ub958\uc758 \ud2b9\uc815 \uc870\uac74\uc744 \ub9cc\uc871\ud558\ub294 \uc6d0\uc18c\ub97c \uc5bb\ub294\ub370 \uc720\uc6a9\ud55c \uae30\ub2a5\uc785\ub2c8\ub2e4.<\/font><\/span><\/p>\n<p><br style=\"letter-spacing: normal;\"><br style=\"letter-spacing: normal;\"><br style=\"letter-spacing: normal;\"><br style=\"letter-spacing: normal;\"><\/p>\n<h2 style=\"margin: 18pt 0px 6pt; line-height: 1.38; letter-spacing: normal; padding-top: 0px; clear: none;\" dir=\"ltr\"><span style=\"letter-spacing: normal; vertical-align: baseline; white-space: pre-wrap;\"><font style=\"font-size: 16pt;\"><font style=\"font-weight: normal;\">8.99 \uc694\uc57d<\/font><\/font><\/span><\/h2>\n<p style=\"line-height: 1.38; letter-spacing: normal; margin-top: 0pt; margin-bottom: 0pt;\" dir=\"ltr\"><span style=\"letter-spacing: normal; vertical-align: baseline; white-space: pre-wrap;\"><font style=\"font-size: 11pt;\">\uc774\ubc88\uc7a5\uc5d0\uc11c\ub294 \ubb38\uc790\uc5f4, \ud29c\ud50c, \ub9f5, \uc9d1\ud569\ub4f1\uc758 \uc790\ub8cc\uad6c\uc870\uc5d0 \ud544\uc694\ud55c \ub0b4\uc6a9\ub4e4\uc744 \ubc30\uc6e0\uc2b5\ub2c8\ub2e4. \uc9c0\uae08\uc740 \uc5b4\ub835\uace0 \uc774\ud574 \uc548\ub418\ub294 \ubd80\ubd84\ub4e4\uc774 \uc788\uc9c0\ub9cc \uc758\ubb38\ub098\ub294 \uc810\uc774 \uc788\uc73c\uba74 \uaf2d \uc190\uc73c\ub85c \uccd0\uc11c \uacb0\uacfc\ub97c \ud655\uc778\ud558\uc2dc\uae30 \ubc14\ub78d\ub2c8\ub2e4. <\/font><\/span><\/p>\n<p style=\"line-height: 1.38; letter-spacing: normal; margin-top: 0pt; margin-bottom: 0pt;\" dir=\"ltr\"><span style=\"letter-spacing: normal; vertical-align: baseline; white-space: pre-wrap;\"><font style=\"font-size: 11pt;\">\u201c\ubc31\ubb38\uc774 \ubd88\uc5ec\uc77c\uacac, \ubc31\uacac\uc774 \ubd88\uc5ec\uc77c\ud0c0&#8221;\ub77c\ub294 \ub9d0\uc774 \uc788\uc2b5\ub2c8\ub2e4. \ubc31\ubc88\uc77d\uc5b4\ub3c4 \ud55c\ubc88 \ubcf4\ub294\uac8c \ub0ab\uace0 \ubc31\ubc88 \ubcf4\uc544\ub3c4 \ud55c\ubc88 \ud0c0\uc774\ud544\ud558\ub294\uac8c \ub0ab\ub2e4\ub294 \uc758\ubbf8\uc785\ub2c8\ub2e4. \uaf2d \ucf54\ub529\uc740 \ubcf8\uc778\uc758 \uc190\uc73c\ub85c \uccd0\uc11c \uacb0\uacfc\ub97c \ud655\uc778\ud558\ub294 \uc2b5\uad00\uc744 \ub4e4\uc774\ub294\uac83\uc774 \uc88b\uc2b5\ub2c8\ub2e4. <\/font><\/span><\/p>\n<p><br style=\"letter-spacing: normal;\"><br style=\"letter-spacing: normal;\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>C\uae09 \uac1c\ubc1c\uc790\uc640 \ud568\uaed8\ud558\ub294 \ud30c\uc774\uc36c 8.7 \ub118\ud30c\uc774(numpy) \ube45\ub370\uc774\ud130 \ub610\ub294 \ub525\ub7ec\ub2dd\uc744 \uad6c\ud604\ud558\ub2e4\ubcf4\uba74 \ubc30\uc5f4\uc774\ub098 \ud589\ub82c \uacc4\uc0b0\uc774 \ub9ce\uc774 \ub098\uc635\ub2c8\ub2e4. numpy \ubc30\uc5f4 \ud074\ub798\uc2a4\uc778 numpy.array\uc5d0\ub294 \uc774\ub7ec\ud55c \uae30\ub2a5\uc744 \uad6c\ud604\ud558\uae30 \ud3b8\ub9ac\ud55c \uba54\uc18c\ub4dc\uac00 \ub9ce\uc774 \ud3ec\ud568\ub418\uc5b4\uc788\uc2b5\ub2c8\ub2e4. 8.7.1 numpy \uc124\uce58 &gt; pip install numpy \uc778\uc2a4\ud1a8\uc744 \uc644\ub8cc\ud558\uc600\uc2b5\ub2c8\ub2e4. \ud30c\uc774\uc36c\uc5d0\uc11c import numpy\ud574\uc11c \uc624\ub958\uac00 \uc5c6\ub2e4\uba74 \uc815\uc0c1\uc801\uc73c\ub85c \uc124\uce58\ub41c \uac83\uc785\ub2c8\ub2e4. 8.7.2 numpy \ubc30\uc5f4 \ub9cc\ub4e4\uae30 numpy \ubc30\uc5f4\uc740 numpy.array()\ud568\uc218\ub97c \uc774\uc6a9\ud558\uc5ec \ub9cc\ub4ed\ub2c8\ub2e4. numpy.array()\ub294 \ud30c\uc774\uc36c\uc758 \ub9ac\uc2a4\ud2b8\ub97c &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/w3devlabs.net\/wp\/?p=20373\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;8.\uc790\ub8cc\uad6c\uc870 8.7 \ub118\ud30c\uc774(numpy)&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"categories":[5836],"tags":[24282,16211,24281,24272,5625],"class_list":["post-20373","post","type-post","status-publish","format-standard","hentry","category-5836","tag-numpy","tag-python","tag-24281","tag-24272","tag-5625","entry"],"_links":{"self":[{"href":"http:\/\/w3devlabs.net\/wp\/index.php?rest_route=\/wp\/v2\/posts\/20373","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/w3devlabs.net\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/w3devlabs.net\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/w3devlabs.net\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/w3devlabs.net\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=20373"}],"version-history":[{"count":1,"href":"http:\/\/w3devlabs.net\/wp\/index.php?rest_route=\/wp\/v2\/posts\/20373\/revisions"}],"predecessor-version":[{"id":20374,"href":"http:\/\/w3devlabs.net\/wp\/index.php?rest_route=\/wp\/v2\/posts\/20373\/revisions\/20374"}],"wp:attachment":[{"href":"http:\/\/w3devlabs.net\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=20373"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/w3devlabs.net\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=20373"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/w3devlabs.net\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=20373"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}