{"id":2142,"date":"2020-02-04T11:35:31","date_gmt":"2020-02-04T02:35:31","guid":{"rendered":"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/?page_id=2142"},"modified":"2026-04-08T10:45:43","modified_gmt":"2026-04-08T01:45:43","slug":"%e7%ac%ac1%e3%83%bb2%e5%9b%9e","status":"publish","type":"page","link":"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e7%90%86a%e6%bc%94%e7%bf%92\/%e7%ac%ac1%e3%83%bb2%e5%9b%9e\/","title":{"rendered":"\u8a08\u7b97\u6570\u7406A\u6f14\u7fd2\u7b2c1\u30fb2\u56de"},"content":{"rendered":"\r\n<p><\/p>\r\n\r\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">\u30b3\u30f3\u30c6\u30f3\u30c4<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69eba3c490b53\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69eba3c490b53\" checked aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e7%90%86a%e6%bc%94%e7%bf%92\/%e7%ac%ac1%e3%83%bb2%e5%9b%9e\/#%e7%ac%ac%ef%bc%91%e3%83%bb%ef%bc%92%e5%9b%9e%ef%bc%88%e7%ac%ac%ef%bc%91%e9%80%b1%ef%bc%89\" >\u7b2c\uff11\u30fb\uff12\u56de\uff08\u7b2c\uff11\u9031\uff09<\/a><ul class='ez-toc-list-level-2' ><li class='ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e7%90%86a%e6%bc%94%e7%bf%92\/%e7%ac%ac1%e3%83%bb2%e5%9b%9e\/#%e3%81%af%e3%81%98%e3%82%81%e3%81%ab\" >\u306f\u3058\u3081\u306b<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e7%90%86a%e6%bc%94%e7%bf%92\/%e7%ac%ac1%e3%83%bb2%e5%9b%9e\/#%e4%bb%8a%e9%80%b1%e3%81%ae%e6%bc%94%e7%bf%92\" >\u4eca\u9031\u306e\u6f14\u7fd2<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e7%90%86a%e6%bc%94%e7%bf%92\/%e7%ac%ac1%e3%83%bb2%e5%9b%9e\/#%e6%9c%ac%e3%82%bf%e3%83%bc%e3%83%a0%e5%86%85%e3%81%ab%e3%80%81%e3%81%93%e3%81%ae%e6%bc%94%e7%bf%92%e3%81%a7%e8%a1%8c%e3%81%86%e3%81%93%e3%81%a8\" >\u672c\u30bf\u30fc\u30e0\u5185\u306b\u3001\u3053\u306e\u6f14\u7fd2\u3067\u884c\u3046\u3053\u3068<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e7%90%86a%e6%bc%94%e7%bf%92\/%e7%ac%ac1%e3%83%bb2%e5%9b%9e\/#%e6%bc%94%e7%bf%92%e3%81%ae%e3%83%9b%e3%83%bc%e3%83%a0%e3%83%9a%e3%83%bc%e3%82%b8%e3%81%ae%e7%b4%b9%e4%bb%8b%e3%81%a8%e8%a6%8b%e6%96%b9\" >\u6f14\u7fd2\u306e\u30db\u30fc\u30e0\u30da\u30fc\u30b8\u306e\u7d39\u4ecb\u3068\u898b\u65b9<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e7%90%86a%e6%bc%94%e7%bf%92\/%e7%ac%ac1%e3%83%bb2%e5%9b%9e\/#python%e5%85%a5%e9%96%80\" >Python\u5165\u9580<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e7%90%86a%e6%bc%94%e7%bf%92\/%e7%ac%ac1%e3%83%bb2%e5%9b%9e\/#%e6%ba%96%e5%82%99\" >\u6e96\u5099<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e7%90%86a%e6%bc%94%e7%bf%92\/%e7%ac%ac1%e3%83%bb2%e5%9b%9e\/#hello_world\" >Hello, World!!<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e7%90%86a%e6%bc%94%e7%bf%92\/%e7%ac%ac1%e3%83%bb2%e5%9b%9e\/#spyder%e3%82%92%e4%bd%bf%e3%81%86\" >Spyder\u3092\u4f7f\u3046<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e7%90%86a%e6%bc%94%e7%bf%92\/%e7%ac%ac1%e3%83%bb2%e5%9b%9e\/#macos%e3%80%81linux%e3%81%ae%e5%a0%b4%e5%90%88\" >macOS\u3001Linux\u306e\u5834\u5408<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e7%90%86a%e6%bc%94%e7%bf%92\/%e7%ac%ac1%e3%83%bb2%e5%9b%9e\/#windows%e3%81%ae%e5%a0%b4%e5%90%88\" >Windows\u306e\u5834\u5408<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e7%90%86a%e6%bc%94%e7%bf%92\/%e7%ac%ac1%e3%83%bb2%e5%9b%9e\/#%e3%83%97%e3%83%ad%e3%82%b0%e3%83%a9%e3%83%a0%e3%81%ae%e5%ae%9f%e8%a1%8c\" >\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u5b9f\u884c<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e7%90%86a%e6%bc%94%e7%bf%92\/%e7%ac%ac1%e3%83%bb2%e5%9b%9e\/#%e3%82%b3%e3%83%b3%e3%82%bd%e3%83%bc%e3%83%ab%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9\" >\u30b3\u30f3\u30bd\u30fc\u30eb\u306e\u4f7f\u3044\u65b9<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e7%90%86a%e6%bc%94%e7%bf%92\/%e7%ac%ac1%e3%83%bb2%e5%9b%9e\/#%e3%82%b3%e3%83%b3%e3%82%bd%e3%83%bc%e3%83%ab%e3%81%a8%e3%82%a8%e3%83%87%e3%82%a3%e3%82%bf%e3%81%ae%e4%bd%bf%e3%81%84%e5%88%86%e3%81%91%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6\" >\u30b3\u30f3\u30bd\u30fc\u30eb\u3068\u30a8\u30c7\u30a3\u30bf\u306e\u4f7f\u3044\u5206\u3051\u306b\u3064\u3044\u3066<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e7%90%86a%e6%bc%94%e7%bf%92\/%e7%ac%ac1%e3%83%bb2%e5%9b%9e\/#%e3%82%b3%e3%83%a1%e3%83%b3%e3%83%88%e6%96%87\" >\u30b3\u30e1\u30f3\u30c8\u6587<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-16\" href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e7%90%86a%e6%bc%94%e7%bf%92\/%e7%ac%ac1%e3%83%bb2%e5%9b%9e\/#%e5%a4%89%e6%95%b0\" >\u5909\u6570<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-17\" href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e7%90%86a%e6%bc%94%e7%bf%92\/%e7%ac%ac1%e3%83%bb2%e5%9b%9e\/#%e3%83%87%e3%83%bc%e3%82%bf%e5%9e%8b%e3%81%a8%e5%88%9d%e6%9c%9f%e5%8c%96\" >\u30c7\u30fc\u30bf\u578b\u3068\u521d\u671f\u5316<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-18\" href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e7%90%86a%e6%bc%94%e7%bf%92\/%e7%ac%ac1%e3%83%bb2%e5%9b%9e\/#%e5%b0%8f%e3%83%8d%e3%82%bf%ef%bc%9a%e5%a4%89%e6%95%b0%e3%81%ab%e4%bb%a3%e5%85%a5%e3%81%95%e3%82%8c%e3%81%a6%e3%81%84%e3%82%8b%e5%80%a4%e3%82%92%e7%a2%ba%e8%aa%8d\" >\u5c0f\u30cd\u30bf\uff1a\u5909\u6570\u306b\u4ee3\u5165\u3055\u308c\u3066\u3044\u308b\u5024\u3092\u78ba\u8a8d<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-19\" href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e7%90%86a%e6%bc%94%e7%bf%92\/%e7%ac%ac1%e3%83%bb2%e5%9b%9e\/#%e5%a4%89%e6%95%b0%e3%81%ae%e5%87%ba%e5%8a%9b\" >\u5909\u6570\u306e\u51fa\u529b<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-20\" href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e7%90%86a%e6%bc%94%e7%bf%92\/%e7%ac%ac1%e3%83%bb2%e5%9b%9e\/#%e5%b0%8f%e3%83%8d%e3%82%bf%ef%bc%9aprint%e6%96%87%e3%81%a7%e5%a4%89%e6%95%b0%e3%81%ae%e5%89%8d%e5%be%8c%e3%81%ae%e7%a9%ba%e7%99%bd%e3%82%92%e6%b6%88%e3%81%99%e3%81%ab%e3%81%af\" >\u5c0f\u30cd\u30bf\uff1aprint\u6587\u3067\u5909\u6570\u306e\u524d\u5f8c\u306e\u7a7a\u767d\u3092\u6d88\u3059\u306b\u306f<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-21\" href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e7%90%86a%e6%bc%94%e7%bf%92\/%e7%ac%ac1%e3%83%bb2%e5%9b%9e\/#%e5%a4%89%e6%95%b0%e3%81%ae%e5%85%a5%e5%8a%9b\" >\u5909\u6570\u306e\u5165\u529b<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-22\" href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e7%90%86a%e6%bc%94%e7%bf%92\/%e7%ac%ac1%e3%83%bb2%e5%9b%9e\/#%e5%9b%9b%e5%89%87%e6%bc%94%e7%ae%97%ce%b1\" >\u56db\u5247\u6f14\u7b97+\u03b1<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-23\" href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e7%90%86a%e6%bc%94%e7%bf%92\/%e7%ac%ac1%e3%83%bb2%e5%9b%9e\/#%e3%83%aa%e3%82%b9%e3%83%88\" >\u30ea\u30b9\u30c8<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-24\" href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e7%90%86a%e6%bc%94%e7%bf%92\/%e7%ac%ac1%e3%83%bb2%e5%9b%9e\/#%e5%b0%8f%e3%83%8d%e3%82%bf%ef%bc%9a%e5%b1%a5%e6%ad%b4%e3%82%92%e7%a2%ba%e8%aa%8d\" >\u5c0f\u30cd\u30bf\uff1a\u5c65\u6b74\u3092\u78ba\u8a8d<\/a><\/li><\/ul><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-25\" href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e7%90%86a%e6%bc%94%e7%bf%92\/%e7%ac%ac1%e3%83%bb2%e5%9b%9e\/#%e5%88%b6%e5%be%a1%e6%96%87\" >\u5236\u5fa1\u6587<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-26\" href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e7%90%86a%e6%bc%94%e7%bf%92\/%e7%ac%ac1%e3%83%bb2%e5%9b%9e\/#%e3%82%a4%e3%83%b3%e3%83%87%e3%83%b3%e3%83%88%e5%ad%97%e4%b8%8b%e3%81%92%e3%81%ae%e6%b3%a8%e6%84%8f%e7%82%b9\" >\u30a4\u30f3\u30c7\u30f3\u30c8(\u5b57\u4e0b\u3052)\u306e\u6ce8\u610f\u70b9<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-27\" href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e7%90%86a%e6%bc%94%e7%bf%92\/%e7%ac%ac1%e3%83%bb2%e5%9b%9e\/#if%e6%96%87\" >if\u6587<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-28\" href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e7%90%86a%e6%bc%94%e7%bf%92\/%e7%ac%ac1%e3%83%bb2%e5%9b%9e\/#%e6%af%94%e8%bc%83%e6%bc%94%e7%ae%97%e5%ad%90%e3%81%a8%e8%a4%87%e6%95%b0%e6%9d%a1%e4%bb%b6\" >\u6bd4\u8f03\u6f14\u7b97\u5b50\u3068\u8907\u6570\u6761\u4ef6<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-29\" href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e7%90%86a%e6%bc%94%e7%bf%92\/%e7%ac%ac1%e3%83%bb2%e5%9b%9e\/#%e8%aa%b2%e9%a1%8c1\" >\u8ab2\u984c1<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-30\" href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e7%90%86a%e6%bc%94%e7%bf%92\/%e7%ac%ac1%e3%83%bb2%e5%9b%9e\/#%e8%aa%b2%e9%a1%8c2\" >\u8ab2\u984c2<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-31\" href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e7%90%86a%e6%bc%94%e7%bf%92\/%e7%ac%ac1%e3%83%bb2%e5%9b%9e\/#%e8%aa%b2%e9%a1%8c3\" >\u8ab2\u984c3<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-32\" href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e7%90%86a%e6%bc%94%e7%bf%92\/%e7%ac%ac1%e3%83%bb2%e5%9b%9e\/#%e8%aa%b2%e9%a1%8c4\" >\u8ab2\u984c4<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-33\" href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e7%90%86a%e6%bc%94%e7%bf%92\/%e7%ac%ac1%e3%83%bb2%e5%9b%9e\/#%e8%aa%b2%e9%a1%8c5\" >\u8ab2\u984c5<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-34\" href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e7%90%86a%e6%bc%94%e7%bf%92\/%e7%ac%ac1%e3%83%bb2%e5%9b%9e\/#%e8%aa%b2%e9%a1%8c6\" >\u8ab2\u984c6<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-35\" href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e7%90%86a%e6%bc%94%e7%bf%92\/%e7%ac%ac1%e3%83%bb2%e5%9b%9e\/#%e7%b9%b0%e3%82%8a%e8%bf%94%e3%81%97%e6%96%87\" >\u7e70\u308a\u8fd4\u3057\u6587<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-36\" href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e7%90%86a%e6%bc%94%e7%bf%92\/%e7%ac%ac1%e3%83%bb2%e5%9b%9e\/#for%e6%96%87\" >for\u6587<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-37\" href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e7%90%86a%e6%bc%94%e7%bf%92\/%e7%ac%ac1%e3%83%bb2%e5%9b%9e\/#while%e6%96%87\" >while\u6587<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-38\" href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e7%90%86a%e6%bc%94%e7%bf%92\/%e7%ac%ac1%e3%83%bb2%e5%9b%9e\/#%e5%b0%8f%e3%83%8d%e3%82%bf%ef%bc%9aprint%e6%96%87%e3%81%ae%e6%9c%80%e5%be%8c%e3%81%ae%e6%94%b9%e8%a1%8c%e3%82%92%e6%b6%88%e3%81%99%e3%81%ab%e3%81%af\" >\u5c0f\u30cd\u30bf\uff1aprint\u6587\u306e\u6700\u5f8c\u306e\u6539\u884c\u3092\u6d88\u3059\u306b\u306f<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-39\" href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e7%90%86a%e6%bc%94%e7%bf%92\/%e7%ac%ac1%e3%83%bb2%e5%9b%9e\/#%e4%be%8b%e9%a1%8c\" >\u4f8b\u984c<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-40\" href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e7%90%86a%e6%bc%94%e7%bf%92\/%e7%ac%ac1%e3%83%bb2%e5%9b%9e\/#%e8%aa%b2%e9%a1%8c7\" >\u8ab2\u984c7<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-41\" href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e7%90%86a%e6%bc%94%e7%bf%92\/%e7%ac%ac1%e3%83%bb2%e5%9b%9e\/#%e8%aa%b2%e9%a1%8c8\" >\u8ab2\u984c8<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-42\" href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e7%90%86a%e6%bc%94%e7%bf%92\/%e7%ac%ac1%e3%83%bb2%e5%9b%9e\/#%e8%aa%b2%e9%a1%8c9\" >\u8ab2\u984c9<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-43\" href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e7%90%86a%e6%bc%94%e7%bf%92\/%e7%ac%ac1%e3%83%bb2%e5%9b%9e\/#%e8%aa%b2%e9%a1%8c10\" >\u8ab2\u984c10<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-44\" href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e7%90%86a%e6%bc%94%e7%bf%92\/%e7%ac%ac1%e3%83%bb2%e5%9b%9e\/#%e8%aa%b2%e9%a1%8c11\" >\u8ab2\u984c11<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-45\" href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e7%90%86a%e6%bc%94%e7%bf%92\/%e7%ac%ac1%e3%83%bb2%e5%9b%9e\/#%e8%aa%b2%e9%a1%8c12\" >\u8ab2\u984c12<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-46\" href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e7%90%86a%e6%bc%94%e7%bf%92\/%e7%ac%ac1%e3%83%bb2%e5%9b%9e\/#%e8%aa%b2%e9%a1%8c13\" >\u8ab2\u984c13<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-47\" href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e7%90%86a%e6%bc%94%e7%bf%92\/%e7%ac%ac1%e3%83%bb2%e5%9b%9e\/#%e8%aa%b2%e9%a1%8c14\" >\u8ab2\u984c14<\/a><\/li><\/ul><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-48\" href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e7%90%86a%e6%bc%94%e7%bf%92\/%e7%ac%ac1%e3%83%bb2%e5%9b%9e\/#%e9%96%a2%e6%95%b0\" >\u95a2\u6570<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-49\" href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e7%90%86a%e6%bc%94%e7%bf%92\/%e7%ac%ac1%e3%83%bb2%e5%9b%9e\/#numpy%ef%bc%9a%e6%95%b0%e5%ad%a6%e9%96%a2%e6%95%b0%e3%80%81%e3%83%99%e3%82%af%e3%83%88%e3%83%ab%e3%81%aa%e3%81%a9%e3%81%ae%e5%88%a9%e7%94%a8\" >NumPy\uff1a\u6570\u5b66\u95a2\u6570\u3001\u30d9\u30af\u30c8\u30eb\u306a\u3069\u306e\u5229\u7528<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-50\" href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e7%90%86a%e6%bc%94%e7%bf%92\/%e7%ac%ac1%e3%83%bb2%e5%9b%9e\/#%e6%95%b0%e5%ad%a6%e9%96%a2%e6%95%b0%e3%83%bb%e5%ae%9a%e6%95%b0%e3%81%ae%e5%88%a9%e7%94%a8\" >\u6570\u5b66\u95a2\u6570\u30fb\u5b9a\u6570\u306e\u5229\u7528<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-51\" href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e7%90%86a%e6%bc%94%e7%bf%92\/%e7%ac%ac1%e3%83%bb2%e5%9b%9e\/#%e3%83%99%e3%82%af%e3%83%88%e3%83%ab%ef%bc%88array%ef%bc%89%e3%81%ae%e5%88%a9%e7%94%a8\" >\u30d9\u30af\u30c8\u30eb\uff08Array\uff09\u306e\u5229\u7528<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-52\" href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e7%90%86a%e6%bc%94%e7%bf%92\/%e7%ac%ac1%e3%83%bb2%e5%9b%9e\/#%e5%b0%8f%e3%83%8d%e3%82%bf%ef%bc%9a%e3%83%aa%e3%82%b9%e3%83%88%e3%81%a8nparray%e3%80%81range%e3%81%a8nparange\" >\u5c0f\u30cd\u30bf\uff1a\u30ea\u30b9\u30c8\u3068np.array\u3001range\u3068np.arange<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-53\" href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e7%90%86a%e6%bc%94%e7%bf%92\/%e7%ac%ac1%e3%83%bb2%e5%9b%9e\/#%e8%aa%b2%e9%a1%8c15\" >\u8ab2\u984c15<\/a><\/li><\/ul><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-54\" href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e7%90%86a%e6%bc%94%e7%bf%92\/%e7%ac%ac1%e3%83%bb2%e5%9b%9e\/#matplotlib%ef%bc%9a%e3%82%b0%e3%83%a9%e3%83%95%e3%81%ae%e6%8f%8f%e7%94%bb%ef%bc%88%e6%ac%a1%e5%9b%9e%e3%81%a1%e3%82%83%e3%82%93%e3%81%a8%e8%aa%ac%e6%98%8e%e3%81%97%e3%81%be%e3%81%99%ef%bc%89\" >Matplotlib\uff1a\u30b0\u30e9\u30d5\u306e\u63cf\u753b\uff08\u6b21\u56de\u3061\u3083\u3093\u3068\u8aac\u660e\u3057\u307e\u3059\uff09<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-55\" href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e7%90%86a%e6%bc%94%e7%bf%92\/%e7%ac%ac1%e3%83%bb2%e5%9b%9e\/#%e7%a2%ba%e8%aa%8d%e5%95%8f%e9%a1%8c\" >\u78ba\u8a8d\u554f\u984c<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-56\" href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e7%90%86a%e6%bc%94%e7%bf%92\/%e7%ac%ac1%e3%83%bb2%e5%9b%9e\/#%e5%95%8f%e9%a1%8c1\" >\u554f\u984c1<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-57\" href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e7%90%86a%e6%bc%94%e7%bf%92\/%e7%ac%ac1%e3%83%bb2%e5%9b%9e\/#%e5%95%8f%e9%a1%8c2\" >\u554f\u984c2<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-58\" href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e7%90%86a%e6%bc%94%e7%bf%92\/%e7%ac%ac1%e3%83%bb2%e5%9b%9e\/#%e5%95%8f%e9%a1%8c3\" >\u554f\u984c3<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-59\" href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e7%90%86a%e6%bc%94%e7%bf%92\/%e7%ac%ac1%e3%83%bb2%e5%9b%9e\/#i\" >\u00a0<\/a><\/li><\/ul><\/li><\/ul><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h1><span class=\"ez-toc-section\" id=\"%e7%ac%ac%ef%bc%91%e3%83%bb%ef%bc%92%e5%9b%9e%ef%bc%88%e7%ac%ac%ef%bc%91%e9%80%b1%ef%bc%89\"><\/span><b>\u7b2c\uff11\u30fb\uff12\u56de\uff08\u7b2c\uff11\u9031\uff09<\/b><span class=\"ez-toc-section-end\"><\/span><\/h1>\r\n<hr \/>\r\n<h2><span class=\"ez-toc-section\" id=\"%e3%81%af%e3%81%98%e3%82%81%e3%81%ab\"><\/span>\u306f\u3058\u3081\u306b<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n<p><b>\u8a08\u7b97\u6570\u7406A\u6f14\u7fd2<\/b>\u3067\u306f\u3001\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3068\u3057\u3066Python\u3092\u7528\u3044\u307e\u3059\u3002 \u8a08\u7b97\u6570\u5b66\u6f14\u7fd2\u3067\u306f\u30b3\u30f3\u30d1\u30a4\u30eb\u3092\u5fc5\u8981\u3068\u3059\u308b\u8a00\u8a9e\u3067\u3042\u308bC\u8a00\u8a9e\u3092\u7528\u3044\u3066\u3044\u307e\u3057\u305f\u304c\u3001 \u672c\u8b1b\u7fa9\u3067\u306f\u30a4\u30f3\u30bf\u30d7\u30ea\u30bf\u8a00\u8a9e\u3068\u547c\u3070\u308c\u308bPython\u3092\u7528\u3044\u307e\u3059\u3002<\/p>\r\n<p>Python\u306f\u8fd1\u5e74\u3082\u3066\u306f\u3084\u3055\u308c\u3066\u3044\u308b\u30c7\u30a3\u30fc\u30d7\u30e9\u30fc\u30cb\u30f3\u30b0\u306b\u3088\u3063\u3066\u304b\u306a\u308a\u6709\u540d\u306b\u306a\u308a\u307e\u3057\u305f\u3002 \u305d\u306e\u7406\u7531\u306e\u4e00\u3064\u306b\u3001\u8a00\u8a9e\u81ea\u4f53\u306e\u8a2d\u8a08\u306e\u65b0\u3057\u3055\u3068\u624b\u8efd\u3055\u3084\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u8c4a\u5bcc\u3055\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\r\n<p>\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u306f\u6163\u308c\u3066\u3057\u307e\u3048\u3070\u65b0\u3057\u3044\u8a00\u8a9e\u3092\u5b66\u3076\u3053\u3068\u306f\u96e3\u3057\u304f\u306a\u3044\u3067\u3059\u304c\u3001\u521d\u7d1a\u8005\u3067\u3042\u308b\u7686\u3055\u3093\u306b\u4e8c\u3064\u306e\u8a00\u8a9e\u3092\u5b66\u3093\u3067\u3082\u3089\u3046\u3053\u3068\u306f\u30ea\u30b9\u30af\u3067\u3082\u3042\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\r\n<p>\u3057\u304b\u3057\u3001Python\u306e\u624b\u8efd\u3055\u306f\u65b0\u3057\u3044\u8a00\u8a9e\u3092\u5b66\u3076\u30b3\u30b9\u30c8\u3088\u308a\u3082\u624b\u8efd\u306b\u51fa\u6765\u308b\u3068\u601d\u3044\u307e\u3059\u3057\u3001C\u8a00\u8a9e\u306e\u5b66\u7fd2\u3067\u5b66\u3093\u3060for\u6587\u30fbif\u6587\u306a\u3069\u306e\u8003\u3048\u65b9\u306f\u5168\u304f\u5909\u308f\u308a\u307e\u305b\u3093\u3002 \u6a19\u6e96\u8a9e\u304c\u95a2\u897f\u5f01\u306b\u5909\u308f\u3063\u305f\u3088\u3046\u306a\u611f\u899a\u3067\u66f8\u304d\u63db\u3048\u3066\u3044\u3051\u308b\u7a0b\u5ea6\u306e\u5dee\u3057\u304b\u3042\u308a\u307e\u305b\u3093\u3002 \u3067\u3059\u306e\u3067\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u306b\u3064\u3044\u3066\u308f\u304b\u3089\u306a\u3044\u3068\u3053\u308d\u304c\u3042\u308c\u3070\u3001 \u8a08\u7b97\u6570\u5b66\u6f14\u7fd2\u306eHP\u306f<a href=\"https:\/\/wp.me\/PaSLRw-rh\/\" target=\"_blank\" rel=\"noopener noreferrer\">\u3053\u3061\u3089<\/a>\u306b\u3042\u308a\u307e\u3059\u306e\u3067\u3001\u53c2\u8003\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\r\n<hr \/>\r\n<h2><span class=\"ez-toc-section\" id=\"%e4%bb%8a%e9%80%b1%e3%81%ae%e6%bc%94%e7%bf%92\"><\/span>\u4eca\u9031\u306e\u6f14\u7fd2<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n<p>\u4eca\u65e5\u306f\u4ee5\u4e0b\u306e\u5185\u5bb9\u3067\u6f14\u7fd2\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\r\n<ul>\r\n<li>\u672c\u30bf\u30fc\u30e0\u5185\u306b\u3001\u3053\u306e\u6f14\u7fd2\u3067\u884c\u3046\u3053\u3068<\/li>\r\n<li>\u6f14\u7fd2\u306e\u30db\u30fc\u30e0\u30da\u30fc\u30b8\u306e\u7d39\u4ecb\u3068\u898b\u65b9<\/li>\r\n<li>Python\u306e\u5c0e\u5165<\/li>\r\n<\/ul>\r\n<hr \/>\r\n<h2><span class=\"ez-toc-section\" id=\"%e6%9c%ac%e3%82%bf%e3%83%bc%e3%83%a0%e5%86%85%e3%81%ab%e3%80%81%e3%81%93%e3%81%ae%e6%bc%94%e7%bf%92%e3%81%a7%e8%a1%8c%e3%81%86%e3%81%93%e3%81%a8\"><\/span>\u672c\u30bf\u30fc\u30e0\u5185\u306b\u3001\u3053\u306e\u6f14\u7fd2\u3067\u884c\u3046\u3053\u3068<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n<p>\u85e4\u672c\u5148\u751f\u304c\u62c5\u5f53\u3055\u308c\u308b\u8a08\u7b97\u6570\u7406A\u306e\u8b1b\u7fa9\u306b\u306f\u6bce\u9031\u5fc5\u305a\u51fa\u5e2d\u3057\u3066\u304f\u3060\u3055\u3044\u3002 \u3053\u306e\u6f14\u7fd2\u306e\u5185\u5bb9\u306f\u8a08\u7b97\u6570\u7406A\u306e\u8b1b\u7fa9\u5185\u5bb9\u306b\u5f37\u304f\u4f9d\u5b58\u3057\u3001<b><u>\u8b1b\u7fa9\u5185\u5bb9\u3092\u3088\u304f\u7406\u89e3\u3057\u3066\u3044\u308b\u4e8b\u3092\u524d\u63d0\u6761\u4ef6\u3068\u3057\u3066\u3044\u307e\u3059<\/u><\/b>\u3002 \u6f14\u7fd2\u306e\u307f\u767b\u9332\u3055\u308c\u3066\u3044\u308b\u4eba\u3082\u3001\u3067\u304d\u308c\u3070\u8b1b\u7fa9\u306b\u3082\u51fa\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\r\n<p>\u6f14\u7fd2\u306e\u5f53\u9762\u306e\u76ee\u6a19\u306f\u3001\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u3092\u4f7f\u3063\u3066\u3042\u308b\u7a2e\u306e<b>\u5e38\u5fae\u5206\u65b9\u7a0b\u5f0f\u30fb\u504f\u5fae\u5206\u65b9\u7a0b\u5f0f<\/b>\u3092\u89e3\u304f\u3053\u3068\u3067\u3059\u3002 \u305f\u3060\u3057\u3001\u305d\u306e\u70ba\u306b\u306f<\/p>\r\n<ul>\r\n<li>\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u306e\u7fd2\u5f97<\/li>\r\n<li>\u8a08\u7b97\u7d50\u679c\u306e\u53ef\u8996\u5316\u6280\u8853\u306e\u7fd2\u5f97<\/li>\r\n<li>\u6570\u5024\u8a08\u7b97\u6cd5\u306e\u7fd2\u5f97<\/li>\r\n<\/ul>\r\n<p>\u3068\u3044\u3063\u305f\u3053\u3068\u304c\u5fc5\u8981\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\r\n<p>\u672c\u6f14\u7fd2\u3067\u306f\u3001Python\u3092\u7528\u3044\u307e\u3059\u304c\u3001\u57fa\u672c\u7684\u306a\u6570\u5024\u8a08\u7b97\u306e\u65b9\u6cd5\u306f\u8a08\u7b97\u6570\u5b66\u6f14\u7fd2\u3067\u5b66\u3093\u3060\u3053\u3068\u304c\u30d9\u30fc\u30b9\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\r\n<p>\u6f14\u7fd2\u5e8f\u76e4\uff08\u6b21\u56de\u304b\u30892\uff5e3\u56de\u7a0b\u5ea6\uff09\u306fPython\u306e\u4f7f\u3044\u65b9\u3068\u3001\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u30b9\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u4f7f\u3044\u65b9\u306e\u6f14\u7fd2\u3092\u884c\u3044\u307e\u3059\uff08\u4e88\u5b9a\uff09\u3002<\/p>\r\n<p>\u6b21\u306b\u6388\u696d\u3067\u7d39\u4ecb\u3055\u308c\u308b\u5e38\u5fae\u5206\u65b9\u7a0b\u5f0f\u3092\u6570\u5024\u8a08\u7b97\u3092\u7528\u3044\u3066\u89e3\u3044\u3066\u3082\u3089\u3044\u307e\u3059\u3002 \u6700\u7d42\u7684\u306b\u306f\u3001\u62e1\u6563\u65b9\u7a0b\u5f0f\uff08\u71b1\u65b9\u7a0b\u5f0f\u3068\u3082\u547c\u3070\u308c\u308b\uff09\u3084\u6ce2\u52d5\u65b9\u7a0b\u5f0f\u3068\u3044\u3063\u305f\u504f\u5fae\u5206\u65b9\u7a0b\u5f0f\u3092\u6570\u5024\u8a08\u7b97\u3067\u89e3\u3044\u3066\u3082\u3089\u3044\u3001\u7d50\u679c\u3092\u53ef\u8996\u5316\u3057\u3066\u3082\u3089\u3044\u307e\u3059\u3002<\/p>\r\n<p>\u6f14\u7fd2\u3067\u306f\u3001\u6570\u5024\u8a08\u7b97\u6cd5\u306e\u7fd2\u5f97\u3082\u76ee\u6a19\u306e\u4e00\u3064\u3067\u306f\u3042\u308a\u307e\u3059\u304c\u3001\u6570\u5024\u8a08\u7b97\u306e\u5fc5\u8981\u6027\u3084\u3001\u305d\u308c\u3092\u9053\u5177\u3068\u3057\u3066\u4f7f\u3046\u3068\u3044\u3046\u59ff\u52e2\u306b\u3064\u3044\u3066\u3001\u3042\u308b\u7a0b\u5ea6\u7406\u89e3\u3057\u3066\u3082\u3089\u3048\u308c\u3070\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\r\n<hr \/>\r\n<h2><span class=\"ez-toc-section\" id=\"%e6%bc%94%e7%bf%92%e3%81%ae%e3%83%9b%e3%83%bc%e3%83%a0%e3%83%9a%e3%83%bc%e3%82%b8%e3%81%ae%e7%b4%b9%e4%bb%8b%e3%81%a8%e8%a6%8b%e6%96%b9\"><\/span>\u6f14\u7fd2\u306e\u30db\u30fc\u30e0\u30da\u30fc\u30b8\u306e\u7d39\u4ecb\u3068\u898b\u65b9<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n<p><a href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/\u6388\u696d\u8cc7\u6599\/\u8a08\u7b97\u6570\u7406a\u6f14\u7fd2\/\" target=\"_blank\" rel=\"noopener noreferrer\">\u6f14\u7fd2\u306e\u30db\u30fc\u30e0\u30da\u30fc\u30b8\u306e\u30c8\u30c3\u30d7<\/a>\u306b\u300c\u304a\u77e5\u3089\u305b\u300d\u3068\u3044\u3046\u9805\u76ee\u304c\u3042\u308a\u307e\u3059\u3002 \u305d\u3053\u306b\u306f\u3001\u30ec\u30dd\u30fc\u30c8\u306e\u51fa\u984c\u72b6\u6cc1\u3084\u305d\u306e\u4ed6\u5927\u4e8b\u306a\u304a\u77e5\u3089\u305b\u3092\u8f09\u305b\u307e\u3059\u306e\u3067\u3001\u6bce\u9031\u5fc5\u305a\u898b\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\r\n<hr \/><hr \/>\r\n<h2><span class=\"ez-toc-section\" id=\"python%e5%85%a5%e9%96%80\"><\/span>Python\u5165\u9580<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n<h3><span class=\"ez-toc-section\" id=\"%e6%ba%96%e5%82%99\"><\/span>\u6e96\u5099<span class=\"ez-toc-section-end\"><\/span><\/h3>\r\n<p>\u3053\u306e\u6388\u696d\u3067\u306fPython\u306e\u7d71\u5408\u958b\u767a\u74b0\u5883\u3067\u3042\u308bSpyder\u3092\u4f7f\u3044\u307e\u3059\u3002<br \/>Spyder\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u3064\u3044\u3066\u306f\u3001\u3053\u3053\u3067\u8a73\u7d30\u3092\u66f8\u304f\u3088\u308a\u304b\u306fGoogle\u7b49\u3067&#8221;Spyder \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb&#8221;\u306a\u3069\u3068\u691c\u7d22\u3057\u3066\u8a18\u4e8b\u3092\u63a2\u3059\u306e\u304c\u826f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\u3060\u3044\u305f\u3044\u306e\u8a18\u4e8b\u3067\u306f\u300cSpyder\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u305f\u3081\u306bAnaconda\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3088\u3046\u300d\u7684\u306a\u6d41\u308c\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u305d\u308c\u3089\u3092\u53c2\u8003\u306b\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\r\n<pre>\u6ce8\u610f\u70b9\u3068\u3057\u3066\u3001<br \/><span style=\"text-decoration: underline;\"><strong>PC\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u540d\u306b\u7a7a\u767d\u6587\u5b57\u304c\u5165\u3063\u3066\u3044\u308b\u3068\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u3046\u307e\u304f\u3044\u304b\u306a\u3044\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/strong><\/span><br \/>Anaconda\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u9650\u3089\u305a\u3001\u30a2\u30ab\u30a6\u30f3\u30c8\u540d\u3084\u30d5\u30a1\u30a4\u30eb\u540d\u30fb\u30d5\u30a9\u30eb\u30c0\u540d\u306b\u7a7a\u767d\u6587\u5b57\uff08\u3084\u5168\u89d2\u6587\u5b57\uff09\u304c\u5165\u3063\u3066\u3044\u308b\u3068\u30c8\u30e9\u30d6\u30eb\u306e\u5143\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\u30a2\u30ab\u30a6\u30f3\u30c8\u540d\u3092\u5909\u66f4\u3059\u308b\u306e\u306f\u82e6\u52b4\u3059\u308b\u306e\u3067\u3001\u5225\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u4f5c\u3063\u3066\u3057\u307e\u3063\u3066\u79fb\u884c\u3059\u308b\u65b9\u304c\u306f\u308b\u304b\u306b\u697d\u3067\u3059\u3002<br \/>\u30a2\u30ab\u30a6\u30f3\u30c8\u540d\u306b\u7a7a\u767d\u6587\u5b57\u304c\u5165\u3063\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u3053\u308c\u3092\u6a5f\u306b\u5225\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u4f5c\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u3087\u3046\u3002<\/pre>\r\n<h3><span class=\"ez-toc-section\" id=\"hello_world\"><\/span>Hello, World!!<span class=\"ez-toc-section-end\"><\/span><\/h3>\r\n<p>C\u8a00\u8a9e\u3067\u3082\u521d\u3081\u306b\u884c\u3046Hello, World!!\u306e\u66f8\u304d\u51fa\u3057\u65b9\u6cd5\u3067\u3059\u3002 \u30a8\u30c7\u30a3\u30bf\u306b\u6b21\u3092\u66f8\u304d\u8fbc\u3093\u3067\u3001main.py\u3068\u3057\u3066\u4fdd\u5b58\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\r\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">print(\"Hello, World!!\")<\/pre>\r\n<p>\u305d\u3057\u3066\u3001<\/p>\r\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">python3 main.py<\/pre>\r\n<p>\u3068\u30bf\u30fc\u30df\u30ca\u30eb\u3067\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\r\n<pre>\u203b Python\u306b\u306f\u73fe\u57282\u7cfb\u30683\u7cfb\u3068\u547c\u3070\u308c\u308b\u7570\u306a\u308b\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u5e83\u307e\u3063\u3066\u3044\u307e\u3059\u3002\u6700\u8fd1\u3067\u306f\u6a19\u6e96\u3067\u6700\u65b0\u306e3\u7cfb\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u307e\u3059\u304c\u30012\u7cfb\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u56de\u3089\u306a\u3044\u3053\u3068\u3082\u3042\u308a\u307e\u3059\u3002\u3082\u3057\u3082\u4e0a\u8a18\u65b9\u6cd5\u3067\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u56de\u3089\u306a\u3044\u5834\u5408\u306b\u306f\u3001\u30bf\u30fc\u30df\u30ca\u30eb\u4e0a\u3067<br \/><code class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">python -V<\/code><br \/>\u3068\u5165\u529b\u3057\u3066\u30d0\u30fc\u30b8\u30e7\u30f3\u78ba\u8a8d\u3092\u884c\u3044\u30013\u7cfb\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3078\u66f4\u65b0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/pre>\r\n<p>\u6bd4\u8f03\u306e\u305f\u3081\u3001C\u8a00\u8a9e\u3067\u540c\u3058\u3082\u306e\u3092\u66f8\u304f\u305f\u3081\u306b\u5fc5\u8981\u306a\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u8f09\u305b\u307e\u3059\u3002<\/p>\r\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"c\">#include &lt;stdio.h&gt;\r\n\r\nint main() {\r\n    printf(\"Hello, World!!\\n\");\r\n    return 0;\r\n}<\/pre>\r\n<p>\u3053\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u306b\u52a0\u3048\u3066\u3001\u30b3\u30f3\u30d1\u30a4\u30eb\u3068\u5b9f\u884c\u306e\u4e8c\u3064\u306e\u51e6\u7406\u304c\u3055\u3089\u306b\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\r\n<p>\u3053\u306e\u3088\u3046\u306b\u30b3\u30fc\u30c9\u3068\u3057\u3066\u66f8\u304f\u91cf\u3092\u5927\u5e45\u306b\u6e1b\u3089\u3059\u3053\u3068\u304c\u3067\u304d\u3001\u7d50\u679c\u7684\u306b\u30df\u30b9\u3092\u5c11\u306a\u304f\u51fa\u6765\u308b\u306e\u304c\u3053\u306e\u8a00\u8a9e\u306e\u5927\u304d\u306a\u7279\u5fb4\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\r\n<p>\u3055\u3066\u3001\u3053\u306e\u7c21\u5358\u306a\u30d7\u30ed\u30b0\u30e9\u30e0\u304b\u3089Python\u3068C\u8a00\u8a9e\u306e\u4e8c\u3064\u306e\u8a00\u8a9e\u306b\u898b\u3089\u308c\u308b\u9055\u3044\u3092\u8ff0\u3079\u3066\u304a\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\r\n<ul>\r\n<li style=\"list-style-type: none;\">\r\n<ul>\r\n<li>Python\u3067\u306f\u6587\u672b\u306b ;\uff08\u30bb\u30df\u30b3\u30ed\u30f3\uff09\u3092\u66f8\u3044\u3066\u306f\u3044\u3051\u306a\u3044\u3002<\/li>\r\n<li>main\u95a2\u6570\u304c\u5b58\u5728\u3057\u306a\u3044\u3002<\/li>\r\n<\/ul>\r\n<\/li>\r\n<\/ul>\r\n<p>Python\u306b\u306fmain\u95a2\u6570\u304c\u306a\u3044\u306e\u3067\u3059\u304c\u3001\u4e00\u5fdc\u305d\u308c\u306b\u5bfe\u5fdc\u3059\u308b\u8003\u3048\u306f\u3042\u308a\u307e\u3059\u304c\u3053\u3053\u3067\u306f\u89e6\u308c\u307e\u305b\u3093\u3002<\/p>\r\n<hr \/>\r\n<h2><span class=\"ez-toc-section\" id=\"spyder%e3%82%92%e4%bd%bf%e3%81%86\"><\/span>Spyder\u3092\u4f7f\u3046<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n<p>\u3000\u3055\u3089\u306b\u5927\u304d\u306a\u6b66\u5668\u3092\u4f7f\u3063\u3066\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u5b66\u7fd2\u3092\u9032\u3081\u3066\u3044\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002 \u3053\u308c\u307e\u3067\u306f\u30a8\u30c7\u30a3\u30bf\u3067\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u66f8\u304d\u3001\u30bf\u30fc\u30df\u30ca\u30eb\u3067\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u3066\u5b9f\u884c\u3057\u3066\u30d5\u30a1\u30a4\u30eb\u306b\u30c7\u30fc\u30bf\u3092\u4fdd\u5b58\u3057\u3066\u3001gnuplot\u3067\u30b0\u30e9\u30d5\u3092\u66f8\u304d\u307e\u3057\u305f\u3002 \u3000\u672c\u6f14\u7fd2\u3067\u306f\u3001\u3053\u308c\u3089\u306e\u30c4\u30fc\u30eb\u304c\u3072\u3068\u307e\u3068\u3081\u306b\u306a\u3063\u3066\u3044\u308b\u30bd\u30d5\u30c8\uff08\u7d71\u5408\u958b\u767a\u74b0\u5883\uff09\u3067\u3042\u308b<span style=\"color: #ff0000;\">Spyder<\/span>\u3092\u4f7f\u3044\u307e\u3059\u3002\u8a00\u8a9e\u3068\u3057\u3066\u306fPython\u306f\u8a00\u8a9e\u306e\u66f8\u304d\u65b9\u3068\u3057\u3066C\u8a00\u8a9e\u306b\u304b\u306a\u308a\u8fd1\u3044\u3067\u3059\u3002<\/p>\r\n<pre>\u203b 2019\u5e74\u5ea6\u306e\u6f14\u7fd2\u3067\u306fJupyter Notebook\u3092\u4f7f\u3044\u307e\u3057\u305f\u3002\u3053\u3061\u3089\u306fMathematica\u3068\u4f3c\u3066\u3001\u3056\u3063\u304f\u308a\u8a00\u3046\u3068\u30a8\u30c7\u30a3\u30bf\u3068\u30bf\u30fc\u30df\u30ca\u30eb\u304c\u5165\u308a\u6df7\u3058\u3063\u305f\u3088\u3046\u306a\u5f62\u5f0f\u3067\u3057\u305f\u3002Spyder\u3068Jupyter Notebook\u306f\u3001\u3069\u3061\u3089\u3082\u4e00\u9577\u4e00\u77ed\u3067\u3059\u3002\u672c\u6f14\u7fd2\u3067\u306f\u3001\u57fa\u672c\u7684\u306b\u53d7\u8b1b\u8005\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u7d4c\u9a13\u306f\u8a08\u7b97\u6570\u5b66\u6f14\u7fd2\u3067C\u8a00\u8a9e\u3092\u5b66\u7fd2\u3057\u305f\u3060\u3051\u3001\u3068\u3057\u3066\u60f3\u5b9a\u3057\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u30a8\u30c7\u30a3\u30bf\u304c\u5206\u304b\u308c\u3066\u3044\u3066\u611f\u899a\u7684\u306b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u611f\u899a\u304c\u8fd1\u3044Spyder\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3059\u3002\u305f\u3060\u3057\u3001\u958b\u767a\u74b0\u5883\u306e\u9055\u3044\u306f\u3001\u672c\u6f14\u7fd2\u306e\u672c\u6765\u306e\u76ee\u7684\u306b\u306f\u5f71\u97ff\u3057\u307e\u305b\u3093\u3002\u3069\u3061\u3089\u306e\u5f62\u5f0f\u3067\u9032\u3081\u3066\u3082\u3089\u3063\u3066\u3082\u69cb\u3044\u307e\u305b\u3093\u304c\u3001<\/pre>\r\n<p><strong>\u30ec\u30dd\u30fc\u30c8\u306a\u3069\u306e\u5f62\u5f0f\u306f\u300c\u3007\u3007.py\u300d\u306e\u5f62\u306ePython\u30d7\u30ed\u30b0\u30e9\u30e0\u5f62\u5f0f\uff08\u3007\u3007.ipynb\u3067\u306f\u306a\u3044\uff09\u3068\u3057\u307e\u3059\u3002<\/strong><\/p>\r\n<p>\u305d\u308c\u3067\u306f\u3001Spyder\u3092\u5b9f\u884c\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\r\n<h4><span class=\"ez-toc-section\" id=\"macos%e3%80%81linux%e3%81%ae%e5%a0%b4%e5%90%88\"><\/span>macOS\u3001Linux\u306e\u5834\u5408<span class=\"ez-toc-section-end\"><\/span><\/h4>\r\n<p>\u307e\u305a\u30bf\u30fc\u30df\u30ca\u30eb\u3092\u958b\u3044\u3066\u3001<\/p>\r\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">spyder &amp;<\/pre>\r\n<p>\u3068\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\r\n<h4><span class=\"ez-toc-section\" id=\"windows%e3%81%ae%e5%a0%b4%e5%90%88\"><\/span>Windows\u306e\u5834\u5408<span class=\"ez-toc-section-end\"><\/span><\/h4>\r\n<p>\u691c\u7d22\u6b04\u306b\u201danaconda prompt\u201d\u3068\u5165\u529b\u3057\u3001\u691c\u7d22\u7d50\u679c\u304b\u3089\u30a2\u30ca\u30b3\u30f3\u30c0\u30d7\u30ed\u30f3\u30d7\u30c8\u3092\u958b\u304d\u307e\u3059<br \/>\uff08\u4e0b\u56f3\u53c2\u7167\uff09\u3002<\/p>\r\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3101\" src=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wordpress\/wp-content\/uploads\/2024\/02\/\u30a2\u30ca\u30b3\u30f3\u30c0\u56f3-768x434-1.png\" alt=\"\" width=\"768\" height=\"434\" srcset=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wordpress\/wp-content\/uploads\/2024\/02\/\u30a2\u30ca\u30b3\u30f3\u30c0\u56f3-768x434-1.png 768w, https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wordpress\/wp-content\/uploads\/2024\/02\/\u30a2\u30ca\u30b3\u30f3\u30c0\u56f3-768x434-1-300x170.png 300w\" sizes=\"auto, (max-width: 768px) 100vw, 768px\" \/><\/p>\r\n<p class=\"has-vivid-red-color has-text-color\">\u3053\u306e\u30a2\u30ca\u30b3\u30f3\u30c0\u30d7\u30ed\u30f3\u30d7\u30c8\u304c\u30bf\u30fc\u30df\u30ca\u30eb\u306e\u5f79\u76ee\u3092\u679c\u305f\u3057\u307e\u3059\u3002<\/p>\r\n<p class=\"has-vivid-red-color has-text-color\">\u3082\u3057<code class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">spyder &amp;<\/code>\u30b3\u30de\u30f3\u30c9\u3067\u30a8\u30e9\u30fc\u306b\u306a\u308b\u5834\u5408\u306f\u201d &amp;\u201d\u3092\u53d6\u308a\u9664\u304d\u3001<code class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">spyder<\/code>\u3068\u3060\u3051\u8a18\u8ff0\u3057\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\r\n<p>\u3057\u3070\u3089\u304f\u3059\u308b\u3068\u6b21\u306e\u69d8\u306a\u753b\u9762\u304c\u73fe\u308c\u308b\u306f\u305a\u3067\u3059\u3002\uff08\u81ea\u52d5\u66f4\u65b0\u306b\u95a2\u3059\u308b\u30a2\u30e9\u30fc\u30c8\u306fOK\u3057\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\uff09<\/p>\r\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-2217\" src=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wordpress\/wp-content\/uploads\/2020\/02\/spyder1-1024x654.png\" alt=\"\" width=\"474\" height=\"303\" srcset=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wordpress\/wp-content\/uploads\/2020\/02\/spyder1-1024x654.png 1024w, https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wordpress\/wp-content\/uploads\/2020\/02\/spyder1-300x192.png 300w, https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wordpress\/wp-content\/uploads\/2020\/02\/spyder1-768x490.png 768w, https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wordpress\/wp-content\/uploads\/2020\/02\/spyder1-1536x981.png 1536w, https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wordpress\/wp-content\/uploads\/2020\/02\/spyder1.png 1762w\" sizes=\"auto, (max-width: 474px) 100vw, 474px\" \/><\/p>\r\n<p>\u5de6\u5074\u304c\u30a8\u30c7\u30a3\u30bf\u3001\u53f3\u5074\u4e0a\u90e8\u304c\u30d8\u30eb\u30d7\u3067\u3001\u53f3\u5074\u4e0b\u90e8\u304ciPython\u30b3\u30f3\u30bd\u30fc\u30eb\uff08\u4ee5\u964d\u3001\u30b3\u30f3\u30bd\u30fc\u30eb\u3068\u547c\u3076\uff09\u3067\u3059\u3002\u30b3\u30f3\u30bd\u30fc\u30eb\u306f\u3001\u3068\u308a\u3042\u3048\u305aPython\u7528\u306e\u30bf\u30fc\u30df\u30ca\u30eb\u306e\u3088\u3046\u306a\u3082\u306e\u3068\u899a\u3048\u3066\u304a\u3044\u3066\u304f\u3060\u3055\u3044\u3002\u3053\u306e\u30b3\u30f3\u30bd\u30fc\u30eb\u81ea\u4f53\u3067Python\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3067\u304d\u307e\u3059\u3057\u3001\u30a8\u30c7\u30a3\u30bf\u3067\u8a18\u8ff0\u3057\u305f\u30d7\u30ed\u30b0\u30e9\u30e0\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u3053\u3080\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002 \u30b3\u30f3\u30bd\u30fc\u30eb\u4e0b\u90e8\u306e\u30bf\u30d6\u3092\u9078\u629e\u3059\u308b\u3053\u3068\u3067\u3001\u904e\u53bb\u306b\u30b3\u30f3\u30bd\u30fc\u30eb\u306b\u6253\u3061\u8fbc\u3093\u3060\u8a18\u9332\uff08\u30ed\u30b0\uff09\u3092\u53c2\u7167\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002\u540c\u69d8\u306b\u3001\u30d8\u30eb\u30d7\u4e0b\u90e8\u306e\u30bf\u30d6\u3092\u9078\u629e\u3059\u308b\u3053\u3068\u3067\u3001\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u308b\u5909\u6570\u4e00\u89a7\u3067\u3042\u308b<strong>\u5909\u6570\u30a8\u30af\u30b9\u30d7\u30ed\u30fc\u30e9\u30fc<\/strong>\u3084\u3001<strong>\u30d5\u30a1\u30a4\u30eb\u30a8\u30af\u30b9\u30d7\u30ed\u30fc\u30e9\u30fc<\/strong>\u3092\u8868\u793a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\r\n<p>Spyder\u306e\u30ec\u30a4\u30a2\u30a6\u30c8\u306f\u81ea\u7531\u306b\u5909\u66f4\u53ef\u80fd\u3067\u3059\uff08\u30c7\u30e2\uff09\u3002<\/p>\r\n<h3><span class=\"ez-toc-section\" id=\"%e3%83%97%e3%83%ad%e3%82%b0%e3%83%a9%e3%83%a0%e3%81%ae%e5%ae%9f%e8%a1%8c\"><\/span>\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u5b9f\u884c<span class=\"ez-toc-section-end\"><\/span><\/h3>\r\n<p>\u305d\u308c\u3067\u306f\u65e9\u901f\u4f7f\u3063\u3066\u307f\u307e\u3057\u3087\u3046\u3002 \u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u3001\u73fe\u5728\u3044\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306f\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\uff08\/fs\/home\/\u30a2\u30ab\u30a6\u30f3\u30c8\u540d\uff09\u3067\u3059\u3002\u3053\u306e\u307e\u307e\u3053\u3053\u3067\u4f5c\u696d\u3059\u308b\u3068\u3001\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u76f4\u4e0b\u304c\u3054\u3061\u3083\u3054\u3061\u3083\u3059\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u306e\u3067\u3001\u9069\u5f53\u306b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u6210\uff08\u53f3\u30af\u30ea\u30c3\u30af\u2192\u65b0\u898f\u2192\u30d5\u30a9\u30eb\u30c0\uff09\u3057\u3001\u79fb\u52d5\uff08\u30c0\u30d6\u30eb\u30af\u30ea\u30c3\u30af\uff09\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3053\u308c\u3067\u30b3\u30f3\u30bd\u30fc\u30eb\u4e0a\u3067\u3082\u79fb\u52d5\u3057\u305f\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\r\n<p>\u8a66\u3057\u306b\u5148\u307b\u3069\u4f5c\u6210\u3057\u305fmain.py\u3092\u5b9f\u884c\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002 main.py\u3092\u4f5c\u696d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u6301\u3063\u3066\u304d\u3066\u3001\u30d5\u30a1\u30a4\u30eb\u30a8\u30af\u30b9\u30d7\u30ed\u30fc\u30e9\u30fc\u4e0a\u3067\u30c0\u30d6\u30eb\u30af\u30ea\u30c3\u30af\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3059\u308b\u3068\u3001\u5de6\u5074\u306e\u30a8\u30c7\u30a3\u30bf\u306bmain.py\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u5de6\u4e0a\u306b\u3042\u308b\u7dd1\u306e\u4e09\u89d2\uff08\u4e0b\u56f3\u53c2\u7167\u3001\u30d0\u30fc\u30b8\u30e7\u30f3\u306b\u3088\u3063\u3066\u9055\u3046\u304b\u3082\uff09\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u3001main,py\u304c\u5b9f\u884c\u3055\u308c\u3001\u30b3\u30f3\u30bd\u30fc\u30eb\u4e0a\u306b\u300cHello, World!!\u300d\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002 <img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-2218\" src=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wordpress\/wp-content\/uploads\/2020\/02\/spyder2.png\" alt=\"\" width=\"447\" height=\"217\" srcset=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wordpress\/wp-content\/uploads\/2020\/02\/spyder2.png 639w, https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wordpress\/wp-content\/uploads\/2020\/02\/spyder2-300x146.png 300w\" sizes=\"auto, (max-width: 447px) 100vw, 447px\" \/><\/p>\r\n<p>\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3059\u308b\u3068\u304d\u306f\u3001\u5de6\u4e0a\u306e\u300c\u30d5\u30a1\u30a4\u30eb\u300d\u2192\u300c\u65b0\u898f\u30d5\u30a1\u30a4\u30eb\u300d\u3067\u4f5c\u6210\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u6bb5\u968e\u3067\u306f\u30d5\u30a1\u30a4\u30eb\u306f\u4fdd\u5b58\u3055\u308c\u3066\u3044\u306a\u3044\u306e\u3067\u3001\u300c\u30d5\u30a1\u30a4\u30eb\u300d\u2192\u300c\u4fdd\u5b58\u300d\u3084\u300c\u5f62\u5f0f\u3092\u6307\u5b9a\u3057\u3066\u4fdd\u5b58\u300d\u306a\u3069\u3067\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u3064\u3051\u3066\u4fdd\u5b58\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\r\n<h3><span class=\"ez-toc-section\" id=\"%e3%82%b3%e3%83%b3%e3%82%bd%e3%83%bc%e3%83%ab%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9\"><\/span>\u30b3\u30f3\u30bd\u30fc\u30eb\u306e\u4f7f\u3044\u65b9<span class=\"ez-toc-section-end\"><\/span><\/h3>\r\n<p>\u300cHello, World!!\u300d\u3068\u8868\u793a\u3055\u305b\u305f\u3044\u3060\u3051\u306a\u306e\u3067\u3042\u308c\u3070\u3001\u3044\u3061\u3044\u3061\u30d5\u30a1\u30a4\u30eb\u3092\u4f7f\u308f\u306a\u304f\u3066\u3082\u3001interactive\u306b\u30b3\u30f3\u30bd\u30fc\u30eb\u4e0a\u3067\u5b9f\u884c\u3057\u3066\u3082\u826f\u3044\u3067\u3057\u3087\u3046\uff08\u76f4\u63a5\u30b3\u30f3\u30bd\u30fc\u30eb\u4e0a\u3067<code class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">print(\"Hello, World!\")<\/code>\u3068\u6253\u3063\u3066return\uff09\u3002\u4ed6\u306b\u3082\u3001\u3061\u3087\u3063\u3068\u3057\u305f\u4f5c\u696d\u3067\u3042\u308c\u3070\u3001\u30b3\u30f3\u30bd\u30fc\u30eb\u3067\u4e8b\u8db3\u308a\u307e\u3059\u3002 \u305f\u3060\u3057\u5f8c\u3005\u3001\u884c\u3063\u305f\u4f5c\u696d\u3092\u307e\u3068\u3081\u30661\u3064\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u3059\u308b\u5834\u5408\u306b\u306f\u3001\u30b3\u30f3\u30bd\u30fc\u30eb\u4e0a\u3067\u884c\u306a\u3063\u305f\u4f5c\u696d\u3082\u8ffd\u52a0\u3059\u308b\u3053\u3068\u3092\u5fd8\u308c\u306a\u3044\u3088\u3046\u306b\u3002<\/p>\r\n<p>\u30b3\u30f3\u30bd\u30fc\u30eb\u4e0a\u3067\u8907\u6570\u884c\u3092\u307e\u3068\u3081\u3066\u5b9f\u884c\u3057\u305f\u3044\u5834\u5408\u306f\u300cctrl + return\u300d\u3067\u6539\u884c\u3067\u304d\u307e\u3059\u3002<\/p>\r\n<h3><span class=\"ez-toc-section\" id=\"%e3%82%b3%e3%83%b3%e3%82%bd%e3%83%bc%e3%83%ab%e3%81%a8%e3%82%a8%e3%83%87%e3%82%a3%e3%82%bf%e3%81%ae%e4%bd%bf%e3%81%84%e5%88%86%e3%81%91%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6\"><\/span>\u30b3\u30f3\u30bd\u30fc\u30eb\u3068\u30a8\u30c7\u30a3\u30bf\u306e\u4f7f\u3044\u5206\u3051\u306b\u3064\u3044\u3066<span class=\"ez-toc-section-end\"><\/span><\/h3>\r\n<p>Python\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u3001\u300c\u30b3\u30f3\u30bd\u30fc\u30eb\u3067\u306e\u76f4\u63a5\u5165\u529b\u300d\u3082\u3001\u300c\u30a8\u30c7\u30a3\u30bf\u3067\u306e\u5165\u529b\u30fb\u5b9f\u884c\u300d\u3082\u540c\u3058\u7d50\u679c\u306b\u306a\u308a\u307e\u3059\u3002 \u4eca\u5f8c\u8ab2\u984c\u3084\u30ec\u30dd\u30fc\u30c8\u306a\u3069\u3067\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u5897\u3048\u307e\u3059\u304c\u3001\u3069\u3061\u3089\u3092\u4f7f\u3063\u3066\u3082\u69cb\u3044\u307e\u305b\u3093\u3002\u4f8b\u3048\u3070\u3001\u5168\u3066\u30b3\u30f3\u30bd\u30fc\u30eb\u3092\u4f7f\u3063\u3066\u4f5c\u6210\u3057\u3066\u3082\u826f\u3044\u3067\u3059\u3057\u3001\u8ab2\u984c\u3054\u3068\u306b\u3007\u3007.py\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u3063\u3066\u3082\u826f\u3044\u3067\u3059\u3002 \u305f\u3060\u3057\u30ec\u30dd\u30fc\u30c8\u3067\u306f\u3001<strong>1\u500b\u306e\u5b8c\u7d50\u3057\u305f\u3007\u3007.py\u30d5\u30a1\u30a4\u30eb\u3068\u3057\u3066\u63d0\u51fa<\/strong>\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3057\u305f\u304c\u3063\u3066\u3001\u5168\u3066\u30b3\u30f3\u30bd\u30fc\u30eb\u3067\u4f5c\u6210\u3059\u308b\u5834\u5408\u306f\u3001\u5fc5\u8981\u306a\u7b87\u6240\u3092\u3007\u3007.py\u30d5\u30a1\u30a4\u30eb\u306b\u30b3\u30d4\u30fc\u3055\u305b\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u3068\u304d<strong>\u5fc5\u305a\u5168\u3066\u306e\u5909\u6570\u304c\u610f\u56f3\u901a\u308a\u306b\u5b9a\u7fa9\u3067\u304d\u3066\u3044\u308b\u304b\u78ba\u8a8d<\/strong>\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u63d0\u51fa\u3055\u308c\u305f\u30d5\u30a1\u30a4\u30eb\u3092\u5b9f\u884c\u3057\u305f\u3068\u304d\u306b\u3001<strong>\u5909\u6570\u306e\u5b9a\u7fa9\u90e8\u5206\u304c\u306a\u304f\u3066\u6b63\u3057\u304f\u5b9f\u884c\u3067\u304d\u306a\u3044\u5834\u5408\u3001\u70b9\u6570\u3092\u3064\u3051\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093<\/strong>\u3002\u307e\u305f\u3001\u3053\u308c\u4ee5\u964d\u767b\u5834\u3059\u308b<strong>numpy\u3084matplotlib\u306a\u3069\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u5b9a\u7fa9\u3001import\u3082\u5fd8\u308c\u306a\u3044<\/strong>\u3088\u3046\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\r\n<p>\u203b \u4ee5\u4e0b\u3067\u306f\u8907\u6570\u884c\u306b\u6e21\u308b\u30b3\u30fc\u30c9\u3082\u66f8\u304b\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u30b3\u30f3\u30bd\u30fc\u30eb\u3067\u306f\u57fa\u672c\u7684\u306b\u30d6\u30ed\u30c3\u30af\u6587\u4ee5\u5916\u3067\u306f\u8907\u6570\u884c\u3067\u66f8\u304f\u3053\u3068\u304c\u3067\u304d\u305a\u30011\u884c\u3054\u3068\u306e\u5b9f\u884c\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\r\n<hr \/>\r\n<h2><span class=\"ez-toc-section\" id=\"%e3%82%b3%e3%83%a1%e3%83%b3%e3%83%88%e6%96%87\"><\/span>\u30b3\u30e1\u30f3\u30c8\u6587<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n<p>Python\u3067\u306f\u3001# \u4ee5\u964d\u306e\u90e8\u5206\u306f\u30b3\u30e1\u30f3\u30c8\u6587\u306b\u306a\u308a\u307e\u3059\u3002<br \/>C\u8a00\u8a9e\u306b\u304a\u3051\u308b \/\/ \u3068\u540c\u3058\u3067\u3059\u3002<\/p>\r\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">print(\"\u3053\u308c\u306f\u8868\u793a\u3055\u308c\u308b\")\r\n#print(\"\u3053\u308c\u306f\u8868\u793a\u3055\u308c\u306a\u3044\")\r\nprint(\"\u3053\u308c\u306f\u8868\u793a\u3055\u308c\u308b\u3051\u3069\u3001\u30b3\u30e1\u30f3\u30c8\u304c\u5f8c\u308d\u306b\u3042\u308b\") # \u3053\u3053\u306f\u30b3\u30e1\u30f3\u30c8<\/pre>\r\n<h2><span class=\"ez-toc-section\" id=\"%e5%a4%89%e6%95%b0\"><\/span>\u5909\u6570<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n<h3><span class=\"ez-toc-section\" id=\"%e3%83%87%e3%83%bc%e3%82%bf%e5%9e%8b%e3%81%a8%e5%88%9d%e6%9c%9f%e5%8c%96\"><\/span>\u30c7\u30fc\u30bf\u578b\u3068\u521d\u671f\u5316<span class=\"ez-toc-section-end\"><\/span><\/h3>\r\n<p>C\u8a00\u8a9e\u3068\u306e\u5927\u304d\u306a\u9055\u3044\u304c\u5909\u6570\u306b\u3082\u8868\u308c\u307e\u3059\u3002<\/p>\r\n<ul>\r\n<li>\u5909\u6570\u306e\u578b\u306e&#8221;\u5ba3\u8a00\u304c&#8221;\u5b58\u5728\u3057\u306a\u3044<\/li>\r\n<\/ul>\r\n<p>C\u8a00\u8a9e\u3067\u306fint\u578b\u3084float (double)\u578b\u306e\u5909\u6570\u306e\u5ba3\u8a00\u306b\u3064\u3044\u3066\u5b66\u3073\u307e\u3057\u305f\u3002\u4f8b\u3048\u3070C\u8a00\u8a9e\u3067\u306f<\/p>\r\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"c\">float x;<\/pre>\r\n<p>\u306e\u3088\u3046\u306b\u3001\u5909\u6570\u3092\u4f7f\u3046\u524d\u306b\u5ba3\u8a00\u3092\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3057\u305f\u3002<\/p>\r\n<p>Python\u3067\u306f\u3053\u306e\u3088\u3046\u306a<strong>\u5ba3\u8a00\u306f\u4e0d\u8981<\/strong>\u3067\u3059\u3002<br \/>\u3068\u306f\u3044\u3048\u3001C\u8a00\u8a9e\u306e\u3068\u304d\u3068\u540c\u69d8\u306b\u5909\u6570\u306e\u578b\u306f\u5b58\u5728\u3057\u3001<strong>\u30c7\u30fc\u30bf\u578b<\/strong>\u3068\u547c\u3070\u308c\u3066\u3044\u307e\u3059\u3002 \u307e\u305f\u3001\u5ba3\u8a00\u306f\u5fc5\u8981\u306a\u304f\u521d\u671f\u5316\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u884c\u3044\u307e\u3059\u3002<\/p>\r\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">x = 0.0<\/pre>\r\n<p>0.0\u3068\u66f8\u3051\u3070\u5c0f\u6570\u70b9\u304c\u3042\u308b\u306e\u3067\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u304c\u52dd\u624b\u306bfloat\u578b\u3068\u8a8d\u8b58\u3057\u3066\u304f\u308c\u307e\u3059\u3002int\u578b\u306b\u3057\u305f\u3051\u308c\u3070\u3001<\/p>\r\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">x = 0<\/pre>\r\n<p>\u3068\u3044\u3046\u3088\u3046\u306b\u6574\u6570\u3060\u3051\u3067\u521d\u671f\u5316\u3092\u884c\u3048\u3070\u826f\u3044\u306e\u3067\u3059\u3002<\/p>\r\n<h4><span class=\"ez-toc-section\" id=\"%e5%b0%8f%e3%83%8d%e3%82%bf%ef%bc%9a%e5%a4%89%e6%95%b0%e3%81%ab%e4%bb%a3%e5%85%a5%e3%81%95%e3%82%8c%e3%81%a6%e3%81%84%e3%82%8b%e5%80%a4%e3%82%92%e7%a2%ba%e8%aa%8d\"><\/span>\u5c0f\u30cd\u30bf\uff1a\u5909\u6570\u306b\u4ee3\u5165\u3055\u308c\u3066\u3044\u308b\u5024\u3092\u78ba\u8a8d<span class=\"ez-toc-section-end\"><\/span><\/h4>\r\n<p>\u521d\u671f\u8a2d\u5b9a\u3067\u306f\u53f3\u4e0a\u306b\u3042\u308b\u533a\u753b\u3002\u4e0b\u306e\u30bf\u30d6\u304c&#8221;\u30d8\u30eb\u30d7&#8221;\u306b\u306a\u3063\u3066\u3044\u308b\u3068\u601d\u3044\u307e\u3059\u304c\u3001&#8221;\u5909\u6570\u30a8\u30af\u30b9\u30d7\u30ed\u30fc\u30e9\u30fc&#8221;\u306e\u30bf\u30d6\u3092\u9078\u629e\u3059\u308b\u3068\u3001\u5909\u6570\u306b\u4ee3\u5165\u3055\u308c\u3066\u3044\u308b\u5024\u3092\u898b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u975e\u5e38\u306b\u4fbf\u5229\u3067\u3059\u3002\u3061\u306a\u307f\u306b\u3053\u3053\u304b\u3089\u5909\u6570\u3092\u9078\u629e\u3057\u3066\u3001\u5909\u6570\u306e\u5024\u3092\u5909\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\r\n<h3><span class=\"ez-toc-section\" id=\"%e5%a4%89%e6%95%b0%e3%81%ae%e5%87%ba%e5%8a%9b\"><\/span>\u5909\u6570\u306e\u51fa\u529b<span class=\"ez-toc-section-end\"><\/span><\/h3>\r\n<p>\u6570\u5024\u8a08\u7b97\u3067\u306f\u3001\u8a08\u7b97\u3057\u305f\u5909\u6570\u306e\u5024\u3092\u51fa\u529b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002 C\u8a00\u8a9e\u3067\u306fint\u578b\u3084float\u578b\u306b\u5408\u308f\u305b\u3066\u3001%d\u3084%lf\u306a\u3069\u3068\u66f8\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3057\u305f\u304c\u3001\u6b21\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092Cell\u306b\u66f8\u304d\u8fbc\u3093\u3067Run\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\r\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">a = 1\r\nx = 2.1\r\nprint(a, x)<\/pre>\r\n<p>\u5909\u6570\u304c\u305d\u306e\u307e\u307e\u51fa\u529b\u3055\u308c\u305f\u3053\u3068\u304c\u308f\u304b\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\r\n<h4><span class=\"ez-toc-section\" id=\"%e5%b0%8f%e3%83%8d%e3%82%bf%ef%bc%9aprint%e6%96%87%e3%81%a7%e5%a4%89%e6%95%b0%e3%81%ae%e5%89%8d%e5%be%8c%e3%81%ae%e7%a9%ba%e7%99%bd%e3%82%92%e6%b6%88%e3%81%99%e3%81%ab%e3%81%af\"><\/span>\u5c0f\u30cd\u30bf\uff1aprint\u6587\u3067\u5909\u6570\u306e\u524d\u5f8c\u306e\u7a7a\u767d\u3092\u6d88\u3059\u306b\u306f<span class=\"ez-toc-section-end\"><\/span><\/h4>\r\n<p>\u4f8b\u3048\u3070<\/p>\r\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">a=1\r\nprint(\"a=\", a)<\/pre>\r\n<p>\u3068\u3059\u308b\u3068\u3001<\/p>\r\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">a= 1<\/pre>\r\n<p>\u3068\u306a\u308a\u30011\u306e\u524d\u306b\u7a7a\u767d\u304c\u5165\u308a\u307e\u3059\u3002\u5834\u5408\u306b\u3088\u3063\u3066\u306f\u3053\u306e\u3088\u3046\u306a\u7a7a\u767d\u304c\u5165\u3063\u3066\u6b32\u3057\u304f\u306a\u3044\u3053\u3068\u3082\u3042\u308b\u3067\u3057\u3087\u3046\u3002\u305d\u306e\u3068\u304d\u306b\u306f\u3001<\/p>\r\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">a=1\r\nprint(\"a=\", a, sep=\"\")<\/pre>\r\n<p>\u3068\u3059\u308c\u3070\u3001\u7a7a\u767d\u304c\u306a\u304f\u306a\u308a\u3001<\/p>\r\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">a=1<\/pre>\r\n<p>\u3068\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u3053\u308c\u306f\u6587\u5b57\u5217\u3068\u6587\u5b57\u5217\u306e\u533a\u5207\u308a\uff08separater\uff09\u3092&#8221;&#8221;\u3067\u62ec\u3089\u308c\u305f\u6587\u5b57\u5217\u3067\u7f6e\u304d\u63db\u3048\u308b\u3053\u3068\u3092\u610f\u5473\u3057\u3066\u3044\u307e\u3059\u3002\u3064\u307e\u308a\u3001<code class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">sep=\"\\t\"<\/code>\u3068\u3059\u308c\u3070\u30bf\u30d6\u3067\u533a\u5207\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002 \u4eca\u5f8c\u3001\u30b1\u30fc\u30b9\u30d0\u30a4\u30b1\u30fc\u30b9\u3067\u4f7f\u3044\u5206\u3051\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\r\n<h3><span class=\"ez-toc-section\" id=\"%e5%a4%89%e6%95%b0%e3%81%ae%e5%85%a5%e5%8a%9b\"><\/span>\u5909\u6570\u306e\u5165\u529b<span class=\"ez-toc-section-end\"><\/span><\/h3>\r\n<p>C\u8a00\u8a9e\u3067\u306fscanf\u95a2\u6570\u3092\u7528\u3044\u307e\u3057\u305f\u304c\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\r\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">s = input()<\/pre>\r\n<p>input\u95a2\u6570\u306f\u3001\u3069\u306e\u3088\u3046\u306a\u3082\u306e\u3082\u5165\u529b\u3067\u304d\u308b\u305f\u3081\u5168\u3066\u306e\u5834\u5408\u306b\u5bfe\u5fdc\u3067\u304d\u308b\u6587\u5b57\u5217\u3068\u3057\u3066\u8aad\u307f\u8fbc\u307e\u308c\u307e\u3059\u3002 \u305d\u306e\u305f\u3081\u3001int\u578b\u3082\u3057\u304f\u306ffloat\u578b\u3068\u3057\u3066\u8aad\u307f\u8fbc\u3080\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u578b\u3092\u6307\u5b9a\u3057\u3066\u5909\u63db\u3057\u307e\u3059\u3002<\/p>\r\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">s = input()\r\n# int\u578b\r\ns = int(s)\r\n# float\u578b\r\ns = float(s)\r\n# \u76f4\u63a5\u8aad\u307f\u8fbc\u3080\r\ns = int(input())\r\ns = float(input())<\/pre>\r\n<p>Python\u3067\u306f\u521d\u671f\u5316\u306e\u969b\u306b\u578b\u304c\u6c7a\u307e\u308b\u306e\u3067\u3001\u6570\u5024\u306a\u306e\u304b\u6587\u5b57\u5217\u306a\u306e\u304b\u3092\u5148\u306b\u6307\u5b9a\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u304c\u3001\u4f55\u306e\u6307\u793a\u3082\u306a\u3044\u3068\u305d\u306e\u5f8c\u4e0d\u4fbf\u3067\u3059\u3002 scanf\u306b\u306f\u6587\u5b57\u304c\u66f8\u3051\u306a\u304b\u3063\u305f\u306e\u3067\u3001printf\u95a2\u6570\u304c\u5fc5\u8981\u3067\u3057\u305f\u304c\u3001Python\u3067\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u51fa\u6765\u307e\u3059\u3002<\/p>\r\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">s = input(\"s\u306b\u6570\u5024\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002s = \")<\/pre>\r\n<h3><span class=\"ez-toc-section\" id=\"%e5%9b%9b%e5%89%87%e6%bc%94%e7%ae%97%ce%b1\"><\/span>\u56db\u5247\u6f14\u7b97+\u03b1<span class=\"ez-toc-section-end\"><\/span><\/h3>\r\n<p>Python\u3067\u3082\u56db\u5247\u6f14\u7b97\u306fC\u8a00\u8a9e\u3068\u540c\u69d8\u3067\u3059\u304c\u3001\u51aa\u4e57\u3082\u6f14\u7b97\u5b50\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\r\n<table style=\"border-collapse: collapse; width: 100%;\">\r\n<tbody>\r\n<tr>\r\n<td style=\"width: 10.8649%;\">\u6f14\u7b97<\/td>\r\n<td style=\"width: 20.1477%;\">\u6570\u5b66\u7684\u8868\u73fe<\/td>\r\n<td style=\"width: 31.5402%;\">Python<\/td>\r\n<td style=\"width: 37.4472%;\">C\u8a00\u8a9e<\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"width: 10.8649%;\">\u548c<\/td>\r\n<td style=\"width: 20.1477%;\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wordpress\/wp-content\/ql-cache\/quicklatex.com-9e9aa5482835ec303bf9858ffe161c9d_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#97;&#32;&#43;&#32;&#98;\" title=\"Rendered by QuickLaTeX.com\" height=\"14\" width=\"39\" style=\"vertical-align: -2px;\"\/><\/td>\r\n<td style=\"width: 31.5402%;\">a + b<\/td>\r\n<td style=\"width: 37.4472%;\">a + b<\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"width: 10.8649%;\">\u5dee<\/td>\r\n<td style=\"width: 20.1477%;\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wordpress\/wp-content\/ql-cache\/quicklatex.com-78aaef41911b6dfe8a126a60008eb2f1_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#97;&#32;&#45;&#32;&#98;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"39\" style=\"vertical-align: 0px;\"\/><\/td>\r\n<td style=\"width: 31.5402%;\">a &#8211; b<\/td>\r\n<td style=\"width: 37.4472%;\">a &#8211; b<\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"width: 10.8649%;\">\u7a4d<\/td>\r\n<td style=\"width: 20.1477%;\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wordpress\/wp-content\/ql-cache\/quicklatex.com-d051b25cc093e896bc1adbd4acc593c3_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#97;&#32;&#92;&#116;&#105;&#109;&#101;&#115;&#32;&#98;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"39\" style=\"vertical-align: 0px;\"\/><\/td>\r\n<td style=\"width: 31.5402%;\">a * b<\/td>\r\n<td style=\"width: 37.4472%;\">a * b<\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"width: 10.8649%;\">\u5546<\/td>\r\n<td style=\"width: 20.1477%;\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wordpress\/wp-content\/ql-cache\/quicklatex.com-65401688a6d29528762d26ad54fa20d0_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#97;&#32;&#92;&#100;&#105;&#118;&#32;&#98;\" title=\"Rendered by QuickLaTeX.com\" height=\"13\" width=\"39\" style=\"vertical-align: -1px;\"\/><\/td>\r\n<td style=\"width: 31.5402%;\">a \/ b<\/td>\r\n<td style=\"width: 37.4472%;\">a \/ b<\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"width: 10.8649%;\">\u5270\u4f59<\/td>\r\n<td style=\"width: 20.1477%;\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wordpress\/wp-content\/ql-cache\/quicklatex.com-b7b020745a4d557a31ace687c985e4a2_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#97;&#32;&#92;&#109;&#111;&#100;&#32;&#98;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"69\" style=\"vertical-align: 0px;\"\/><\/td>\r\n<td style=\"width: 31.5402%;\">a % b<\/td>\r\n<td style=\"width: 37.4472%;\">a % b<\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"width: 10.8649%;\">\u51aa\u4e57<\/td>\r\n<td style=\"width: 20.1477%;\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wordpress\/wp-content\/ql-cache\/quicklatex.com-fe81faa82fd282fc3603edc2b02741a1_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#97;&#32;&#94;&#32;&#98;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"15\" style=\"vertical-align: 0px;\"\/><\/td>\r\n<td style=\"width: 31.5402%;\">a**b \u307e\u305f\u306f pow(a, b)<\/td>\r\n<td style=\"width: 37.4472%;\">pow(a, b) \uff08\u8981 \u6570\u5b66\u95a2\u6570\uff09<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<p>\u203b <code class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">a^b<\/code>\u306f\u51aa\u4e57\u6f14\u7b97\u5b50\u3067\u306f\u306a\u304f\u3001bit\u6f14\u7b97\u5b50\u306eXOR\u306b\u5bfe\u5fdc\u3059\u308b\u306e\u3067\u3001\u51aa\u4e57\u3068\u601d\u3063\u3066\u4f7f\u3046\u3068\u7570\u306a\u308b\u7d50\u679c\u306b\u306a\u308b\u306e\u3067\u6ce8\u610f\uff01<\/p>\r\n<p>\u307e\u305f\u3001\u6b21\u306e\u4ee3\u5165\u6f14\u7b97\u5b50\u306fPython\u3067\u3082\u4f7f\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\r\n<table style=\"width: 100%; height: 126px;\">\r\n<tbody>\r\n<tr style=\"height: 18px;\">\r\n<td style=\"width: 7.59493%; height: 18px;\">\u4ee3\u5165\u6f14\u7b97\u5b50<\/td>\r\n<td style=\"width: 28.6921%; height: 18px;\">Python\u3067\u306e\u610f\u5473<\/td>\r\n<\/tr>\r\n<tr style=\"height: 18px;\">\r\n<td style=\"width: 7.59493%; height: 18px;\">a += b<\/td>\r\n<td style=\"width: 28.6921%; height: 18px;\">a = a + b<\/td>\r\n<\/tr>\r\n<tr style=\"height: 18px;\">\r\n<td style=\"width: 7.59493%; height: 18px;\">a -= b<\/td>\r\n<td style=\"width: 28.6921%; height: 18px;\">a = a &#8211; b<\/td>\r\n<\/tr>\r\n<tr style=\"height: 18px;\">\r\n<td style=\"width: 7.59493%; height: 18px;\">a *= b<\/td>\r\n<td style=\"width: 28.6921%; height: 18px;\">a = a* b<\/td>\r\n<\/tr>\r\n<tr style=\"height: 18px;\">\r\n<td style=\"width: 7.59493%; height: 18px;\">a \/= b<\/td>\r\n<td style=\"width: 28.6921%; height: 18px;\">a \/= b<\/td>\r\n<\/tr>\r\n<tr style=\"height: 18px;\">\r\n<td style=\"width: 7.59493%; height: 18px;\">a %= b<\/td>\r\n<td style=\"width: 28.6921%; height: 18px;\">a = a % b<\/td>\r\n<\/tr>\r\n<tr style=\"height: 18px;\">\r\n<td style=\"width: 7.59493%; height: 18px;\">a **= b<\/td>\r\n<td style=\"width: 28.6921%; height: 18px;\">a = a**b<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<p>\u3068\u3053\u308d\u304c\u3001<code class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">a++<\/code>\u3084<code class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">a--<\/code>\u3068\u3044\u3063\u305f\u3001C\u8a00\u8a9e\u306efor\u6587\u306a\u3069\u3067\u304a\u99b4\u67d3\u307f\u3060\u3063\u305f\u8868\u73fe\u306f\u4f7f\u3048\u307e\u305b\u3093\u306e\u3067\u6ce8\u610f\u3067\u3059\u3002<\/p>\r\n<h2><span class=\"ez-toc-section\" id=\"%e3%83%aa%e3%82%b9%e3%83%88\"><\/span>\u30ea\u30b9\u30c8<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n<p>\u8a08\u7b97\u6570\u5b66\u6f14\u7fd2\u3067\u306f\u3001\u7c21\u5358\u306b\u3067\u3059\u304c\u914d\u5217\u306b\u3064\u3044\u3066\u5b66\u3073\u307e\u3057\u305f\u3002 Python\u3067\u306f\u30ea\u30b9\u30c8\u3068\u547c\u3070\u308c\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5b9a\u7fa9\u3057\u307e\u3059\u3002 \u3053\u3053\u3067\u3082\u5909\u6570\u306e\u5ba3\u8a00\u304c\u306a\u3044\u305f\u3081\u3001\u521d\u671f\u5316\u3092\u4f34\u3044\u307e\u3059\u3002<\/p>\r\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">X = [1, 3, 5, 7]<\/pre>\r\n<p>\u914d\u5217\u306e\u8981\u7d20\u3078\u306e\u30a2\u30af\u30bb\u30b9\u3001\u53ca\u3073\u5024\u306e\u66f8\u304d\u63db\u3048\u306fC\u8a00\u8a9e\u3068\u540c\u69d8\u306b\u884c\u3048\u307e\u3059\u3002\u3053\u306e\u3068\u304d\u3001\u914d\u5217\u306e\u756a\u53f7\u306f0\u304b\u3089\u59cb\u307e\u308a\u307e\u3059\u3002 3\u3092\u51fa\u529b\u3057\u305f\u3051\u308c\u3070\u3001<\/p>\r\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">print(X[1])<\/pre>\r\n<p>5\u3092\u66f8\u304d\u63db\u3048\u30660\u306b\u3057\u305f\u3051\u308c\u3070\u3001<\/p>\r\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">X[2] = 0<\/pre>\r\n<p>\u3068\u51fa\u6765\u307e\u3059\u3002\u305f\u3060\u3057\u3053\u306e\u3084\u308a\u65b9\u3067\u306f100\u500b\u306e\u8981\u7d20\u3092\u6301\u3064\u3088\u3046\u306a\u30ea\u30b9\u30c8\u3092\u4f5c\u308b\u3053\u3068\u306f\u73fe\u5b9f\u7684\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u30e1\u30a4\u30f3\u306b\u306f\u3053\u306e\u5f8c\u306b\u5b66\u3076array\u578b\u3068\u3044\u3046\u3082\u306e\u3092\u5229\u7528\u3057\u307e\u3059\u3002<\/p>\r\n<h4><span class=\"ez-toc-section\" id=\"%e5%b0%8f%e3%83%8d%e3%82%bf%ef%bc%9a%e5%b1%a5%e6%ad%b4%e3%82%92%e7%a2%ba%e8%aa%8d\"><\/span>\u5c0f\u30cd\u30bf\uff1a\u5c65\u6b74\u3092\u78ba\u8a8d<span class=\"ez-toc-section-end\"><\/span><\/h4>\r\n<p>\u30b3\u30f3\u30bd\u30fc\u30eb\u306e\u4e0b\u306e\u65b9\u306e&#8221;iPython\u30b3\u30f3\u30bd\u30fc\u30eb&#8221;\u3068\u66f8\u304b\u308c\u3066\u3044\u308b\u30bf\u30d6\u306e\u96a3\u306b\u3001&#8221;\u30d2\u30b9\u30c8\u30ea&#8221;\u306e\u30bf\u30d6\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\u305d\u306e\u65e5\u3084\u3063\u305f\u3053\u3068\u3092\u307e\u3068\u3081\u3066\u3001.py\u30d5\u30a1\u30a4\u30eb\u306b\u4fdd\u5b58\u3059\u308b\u306e\u306b\u4fbf\u5229\u3067\u3059\u3002<\/p>\r\n<hr \/>\r\n<h2><span class=\"ez-toc-section\" id=\"%e5%88%b6%e5%be%a1%e6%96%87\"><\/span>\u5236\u5fa1\u6587<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n<h3><span class=\"ez-toc-section\" id=\"%e3%82%a4%e3%83%b3%e3%83%87%e3%83%b3%e3%83%88%e5%ad%97%e4%b8%8b%e3%81%92%e3%81%ae%e6%b3%a8%e6%84%8f%e7%82%b9\"><\/span>\u30a4\u30f3\u30c7\u30f3\u30c8(\u5b57\u4e0b\u3052)\u306e\u6ce8\u610f\u70b9<span class=\"ez-toc-section-end\"><\/span><\/h3>\r\n<p>C\u8a00\u8a9e\u3067\u306e\u5236\u5fa1\u6587\uff08if\u6587\u3001for\u6587\u306a\u3069\uff09\u306f\u3001<\/p>\r\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"c\">for (i=0; i&lt;10; i++) {\r\n    \u30d6\u30ed\u30c3\u30af\u6587\r\n}<\/pre>\r\n<p>\u306e\u3088\u3046\u306b { } \u3067\u56f2\u3063\u3066\u3044\u307e\u3057\u305f\u3002\u305d\u306e\u305f\u3081\u3001{ } \u5185\u306e\u30a4\u30f3\u30c7\u30f3\u30c8\u304c\u5c11\u3005\u3050\u3061\u3083\u3050\u3061\u3083\u3067\u3082\u3001\u5b9f\u884c\u7d50\u679c\u306b\u306f\u5f71\u97ff\u3092\u4e0e\u3048\u307e\u305b\u3093\u3067\u3057\u305f\u3002 \u4ee5\u4e0b\u3067\u5b66\u3076Python\u306e\u5236\u5fa1\u6587\u3067\u306f\u3001{ } \u306e\u4ee3\u308f\u308a\u306b\u30a4\u30f3\u30c7\u30f3\u30c8\u3067\u5236\u5fa1\u6587\u3067\u5236\u5fa1\u3055\u308c\u308b\u30d6\u30ed\u30c3\u30af\u6587\u3092\u5224\u5225\u3057\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001<strong>\u30a4\u30f3\u30c7\u30f3\u30c8\u304c\u6b63\u3057\u304f\u63c3\u3063\u3066\u306a\u3044\u5834\u5408\u3001\u30a8\u30e9\u30fc\u3084\u4e88\u671f\u305b\u306c\u6319\u52d5\u3092\u3057\u307e\u3059<\/strong>\u3002\u4eca\u4e00\u5ea6\u30a4\u30f3\u30c7\u30f3\u30c8\u306b\u3064\u3044\u3066\u78ba\u8a8d\u3057\u307e\u3057\u3087\u3046\u3002 Python\u3067\u306e\u30a4\u30f3\u30c7\u30f3\u30c8\u306f\u3001\u30b9\u30da\u30fc\u30b94\u500b\u5206\u304c\u6a19\u6e96\u7684\u3067\u3059\u3002Spyder\u3067\u306f\u3001\u30bf\u30d6\uff08Tab\uff09\u3092\u62bc\u3059\u3068\u30b9\u30da\u30fc\u30b9\u304c4\u500b\u5206\u306e\u500d\u6570\u306e\u4f4d\u7f6e\u306b\u6b62\u307e\u308a\u307e\u3059\u306e\u3067\u3001<strong>\u30bf\u30d6\u3092\u4f7f\u3046<\/strong>\u3068\u826f\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\r\n<p>\u3068\u3082\u304b\u304f\u3001\u7fd2\u3046\u3088\u308a\u6163\u308c\u308d\u3001\u3068\u3044\u3046\u3053\u3068\u3067\u4ee5\u4e0b\u306e\u4f8b\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\r\n<hr \/>\r\n<h3><span class=\"ez-toc-section\" id=\"if%e6%96%87\"><\/span>if\u6587<span class=\"ez-toc-section-end\"><\/span><\/h3>\r\n<p>\u6b21\u306bif\u6587\u306b\u3064\u3044\u3066\u5b66\u3073\u307e\u3059\u3002\u6761\u4ef6\u5f0f\u306fif\u3068 : \u306e\u9593\u306b\u631f\u307e\u308c\u3001\u5236\u5fa1\u6587\u306fif\u6587\u306e\u3042\u3068\u30a4\u30f3\u30c7\u30f3\u30c8\u3055\u308c\u3066\u3044\u308b\u884c\u304c\u5168\u3066if\u6587\u3067\u5236\u5fa1\u3055\u308c\u308b\u7bc4\u56f2\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\r\n<p>\u65e9\u901f\u4ee5\u4e0b\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u3055\u3089\u306b\u3001a=1\u306b\u5909\u3048\u3066\u5b9f\u884c\u3057\u76f4\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\r\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">a = 0\r\nif a == 0:\r\n    print(1, a)\r\n    a = a + 2\r\n    print(2, a)\r\n\r\na = a + 10\r\nprint(3, a)<\/pre>\r\n<p>if\u6587\u306e\u5236\u5fa1\u304b\u3089\u5916\u3059\u306b\u306f\u3001if\u6587\u306e\u521d\u3081\u306e\u3068\u3053\u308d\u3068\u30a4\u30f3\u30c7\u30f3\u30c8\u3092\u63c3\u3048\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\r\n<p>\u305d\u308c\u3067\u306f\u3001if\u6587\u306b\u3088\u308b\u5206\u5c90\u306e\u5927\u4e8b\u306a\u8981\u7d20\u3067\u3042\u308bif-else\u6587\u306b\u3064\u3044\u3066\u3067\u3059\u3002 \u5148\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u306b\u5c11\u3057\u5909\u66f4\u3092\u52a0\u3048\u308b\u3068if-else\u6587\u304c\u5b8c\u6210\u3057\u307e\u3059\u3002<\/p>\r\n<p>\u5148\u3068\u540c\u69d8\u306b\u6700\u521d\u306ea=0\u3092a=1\u306b\u5909\u3048\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\r\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">a = 0\r\nif a == 0:\r\n    print(1, a)\r\n    a = a + 2\r\n    print(2, a)\r\n\r\nelse:\r\n    a = -11\r\n    print(3, a)\r\n\r\na = a + 10\r\nprint(4, a)<\/pre>\r\n<p>\u305d\u308c\u3067\u306f\u3001\u6761\u4ef6\u304c\u8907\u6570\u3042\u308b\u5834\u5408\u306b\u3064\u3044\u3066\u3067\u3059\u3002 C\u8a00\u8a9e\u3067\u306fif~else if~ else\u6587\u3067\u3057\u305f\u304c\u3001\u4e8c\u3064\u76ee\u4ee5\u964d\u306e\u6761\u4ef6\u304celif\u3068\u7701\u7565\u3055\u308c\u307e\u3059\u3002<\/p>\r\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">a = 0\r\nif a == 0:\r\n    print(1, a)\r\n    a = a + 2\r\n    print(2, a)\r\n\r\nelif a == 1:\r\n    print(3, a)\r\n\r\nelse:\r\n    a = -11\r\n    print(4, a)\r\n\r\na = a + 10\r\nprint(5, a)<\/pre>\r\n<h4><span class=\"ez-toc-section\" id=\"%e6%af%94%e8%bc%83%e6%bc%94%e7%ae%97%e5%ad%90%e3%81%a8%e8%a4%87%e6%95%b0%e6%9d%a1%e4%bb%b6\"><\/span>\u6bd4\u8f03\u6f14\u7b97\u5b50\u3068\u8907\u6570\u6761\u4ef6<span class=\"ez-toc-section-end\"><\/span><\/h4>\r\n<p>\u4ee5\u4e0b\u306e\u8868\u306fC\u8a00\u8a9e\u3068\u5168\u304f\u540c\u3058\u3067\u3059\u3002<\/p>\r\n<table>\r\n<tbody>\r\n<tr>\r\n<td>\u6f14\u7b97\u5b50<\/td>\r\n<td>\u8aac\u660e<\/td>\r\n<td>\u8a18\u8ff0\u4f8b<\/td>\r\n<td>\u8a18\u8ff0\u306e\u610f\u5473<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>&gt;<\/td>\r\n<td>\u5927\u304d\u3044<\/td>\r\n<td>if (a&gt;10)<\/td>\r\n<td>a\u304c10\u3088\u308a\u5927\u306a\u3089<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>&gt;=<\/td>\r\n<td>\u5927\u304d\u3044\u304b\u7b49\u3057\u3044<\/td>\r\n<td>if (a&gt;=10)<\/td>\r\n<td>a\u304c10\u4ee5\u4e0a\u306a\u3089<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>&lt;<\/td>\r\n<td>\u5c0f\u3055\u3044<\/td>\r\n<td>if (a&lt;10)<\/td>\r\n<td>a\u304c10\u3088\u308a\u5c0f\u306a\u3089<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>&lt;=<\/td>\r\n<td>\u5c0f\u3055\u3044\u304b\u7b49\u3057\u3044<\/td>\r\n<td>if (a&lt;=10)<\/td>\r\n<td>a\u304c10\u4ee5\u4e0b\u306a\u3089<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>==<\/td>\r\n<td>\u7b49\u3057\u3044<\/td>\r\n<td>if (a==10)<\/td>\r\n<td>a\u304c10\u306a\u3089<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>!=<\/td>\r\n<td>\u7b49\u3057\u304f\u306a\u3044<\/td>\r\n<td>if (a!=10)<\/td>\r\n<td>a\u304c10\u3067\u306a\u3044\u306a\u3089<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<p>\u3057\u304b\u3057\u3001\u8907\u6570\u306e\u6761\u4ef6\u3092\u6761\u4ef6\u5f0f\u306b\u5165\u308c\u308b\u5834\u5408\u306e\u8ad6\u7406\u6f14\u7b97\u5b50\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\r\n<table style=\"width: 588px;\">\r\n<tbody>\r\n<tr>\r\n<td style=\"width: 69.953125px;\">\u6f14\u7b97\u5b50<\/td>\r\n<td style=\"width: 188.640625px;\">\u5bfe\u5fdc\u3059\u308bC\u8a00\u8a9e\u6f14\u7b97\u5b50<\/td>\r\n<td style=\"width: 171.734375px;\">\u8a18\u8ff0\u4f8b<\/td>\r\n<td style=\"width: 156.703125px;\">\u8a18\u8ff0\u306e\u610f\u5473<\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"width: 69.953125px;\">and<\/td>\r\n<td style=\"width: 188.640625px;\">&amp;&amp;<\/td>\r\n<td style=\"width: 171.734375px;\">if a==0 and b==1:<\/td>\r\n<td style=\"width: 156.703125px;\">a\u304c0\u304b\u3064\uff42\u304c1<\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"width: 69.953125px;\">or<\/td>\r\n<td style=\"width: 188.640625px;\">||<\/td>\r\n<td style=\"width: 171.734375px;\">if a==0 or b==1:<\/td>\r\n<td style=\"width: 156.703125px;\">a\u304c0\u307e\u305f\u306f\uff42\u304c1<\/td>\r\n<\/tr>\r\n<tr>\r\n<td style=\"width: 69.953125px;\">not<\/td>\r\n<td style=\"width: 188.640625px;\">!<\/td>\r\n<td style=\"width: 171.734375px;\">if not a==1:<\/td>\r\n<td style=\"width: 156.703125px;\">a\u304c0\u3067\u306f\u306a\u3044<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<hr \/>\r\n<p>\u4ee5\u4e0b\u306e\u8ab2\u984c\u306f\u8a08\u7b97\u6570\u5b66\u6f14\u7fd2\u3067\u3082\u3084\u3063\u305f\u8ab2\u984c\u3002<br \/>\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u304c\u308f\u304b\u3089\u306a\u304b\u3063\u305f\u3089\u904e\u53bb\u306eC\u3067\u66f8\u3044\u305f\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u53c2\u7167\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\r\n<h4><span class=\"ez-toc-section\" id=\"%e8%aa%b2%e9%a1%8c1\"><\/span><u>\u8ab2\u984c1<\/u><span class=\"ez-toc-section-end\"><\/span><\/h4>\r\n<p>\uff12\u3064\u306e\u5b9f\u6570 s, t \u3092\u5165\u529b\u3059\u308b\u3068\u3001\u305d\u306e\u5dee\u306e\u7d76\u5bfe\u5024\u3092\u8868\u793a\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u6210\u305b\u3088\u3000(if \u6587\u3092\u4f7f\u3046\u3053\u3068)\u3002<\/p>\r\n<h4><span class=\"ez-toc-section\" id=\"%e8%aa%b2%e9%a1%8c2\"><\/span><u>\u8ab2\u984c2<\/u><span class=\"ez-toc-section-end\"><\/span><\/h4>\r\n<p>\u6574\u6570 m \u304c\u5165\u529b\u3055\u308c\u308b\u3068\u3001\u305d\u308c\u304c\u5947\u6570\u304b\u5076\u6570\u304b\u3092\u5224\u5b9a\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u6210\u305b\u3088\u3002<\/p>\r\n<p>\uff08\u6ce8\uff1a\u5270\u4f59\u3092\u6c42\u3081\u308b\u6f14\u7b97\u5b50 % \u3092\u5229\u7528. \u3053\u308c\u306f\u6574\u6570\u578b\u5909\u6570m, n \u306b\u5bfe\u3057\u3001m%n \u306f m \u3092 n \u3067\u5272\u3063\u305f\u3068\u304d\u306e\u4f59\u308a\u3092\u4e0e\u3048\u308b\u3002\u3053\u306e\u6f14\u7b97\u5b50\u306f\u6574\u6570\u578b\u5909\u6570\u306b\u306e\u307f\u5229\u7528\u53ef\u80fd\u3002\uff09<\/p>\r\n<h4><span class=\"ez-toc-section\" id=\"%e8%aa%b2%e9%a1%8c3\"><\/span><u>\u8ab2\u984c3<\/u><span class=\"ez-toc-section-end\"><\/span><\/h4>\r\n<p>\uff12\u3064\u306e\u5b9f\u6570 s, t \u3092\u5165\u529b\u3059\u308b\u3068, s \uff1e t, s = t, s \uff1c t \u304b\u5224\u5b9a\u3057\u3066\u8868\u793a\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u6210\u305b\u3088\u3002<\/p>\r\n<h4><span class=\"ez-toc-section\" id=\"%e8%aa%b2%e9%a1%8c4\"><\/span><u>\u8ab2\u984c4<\/u><span class=\"ez-toc-section-end\"><\/span><\/h4>\r\n<p>\uff13\u3064\u306e\u5b9f\u6570, a, b, c \u3092\u5165\u529b\u3059\u308b\u3068, x \u306b\u95a2\u3059\u308b\uff12\u6b21\u65b9\u7a0b\u5f0f, ax<sup>2<\/sup> + bx + c = 0 \u304c\u5b9f\u6570\u89e3\u3092\u6301\u3064\u304b\u5224\u5b9a\u3057, \u8868\u793a\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u6210\u305b\u3088\u3002<\/p>\r\n<h4><span class=\"ez-toc-section\" id=\"%e8%aa%b2%e9%a1%8c5\"><\/span><u>\u8ab2\u984c5<\/u><span class=\"ez-toc-section-end\"><\/span><\/h4>\r\n<p>\u5165\u529b\u3055\u308c\u305f\u6574\u6570\u304c\u30013 \u306e\u500d\u6570\u304b 7 \u306e\u500d\u6570\u3067\u3042\u308c\u3070\u3001\u305d\u306e\u6570\u5024\u3092\u8868\u793a\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u6210\u305b\u3088\u3002\uff08 or \u3092\u4f7f\u3046\u3002\uff09<\/p>\r\n<h4><span class=\"ez-toc-section\" id=\"%e8%aa%b2%e9%a1%8c6\"><\/span><u>\u8ab2\u984c6<\/u><span class=\"ez-toc-section-end\"><\/span><\/h4>\r\n<p>&#8220;3 \u306e\u500d\u6570\u304b 7 \u306e\u500d\u6570&#8221;\u3067\u3042\u308b\u4e09\u6841\u306e\u81ea\u7136\u6570\u306e\u5165\u529b\u3092\u4fc3\u3057\u3001\u5165\u529b\u3055\u308c\u305f\u6570\u5024\u304c \u6761\u4ef6\u3092\u6e80\u305f\u3057\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u753b\u9762\u306b\u51fa\u529b\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u6210\u305b\u3088\u3002(if\u6587\u306f\uff11\u56de\u3057\u304b\u4f7f\u3048\u306a\u3044\u3082\u306e\u3068\u3059\u308b\uff09)<\/p>\r\n<hr \/>\r\n<h3><span class=\"ez-toc-section\" id=\"%e7%b9%b0%e3%82%8a%e8%bf%94%e3%81%97%e6%96%87\"><\/span>\u7e70\u308a\u8fd4\u3057\u6587<span class=\"ez-toc-section-end\"><\/span><\/h3>\r\n<h4><span class=\"ez-toc-section\" id=\"for%e6%96%87\"><\/span>for\u6587<span class=\"ez-toc-section-end\"><\/span><\/h4>\r\n<p>\u6b21\u306b\u91cd\u8981\u306afor\u6587\u306b\u3064\u3044\u3066\u3067\u3059\u3002\u3053\u308c\u306fC\u8a00\u8a9e\u3068\u304b\u306a\u308a\u7570\u306a\u308a\u307e\u3059\u3002 C\u8a00\u8a9e\u306efor\u6587\u3067\u306f\u521d\u671f\u5316\u5f0f\u30fb\u6761\u4ef6\u5f0f\u30fb\u53cd\u5fa9\u5f0f\u306e\u4e09\u3064\u304c\u3042\u308a\u307e\u3057\u305f\u304c\u3001Python\u306efor\u6587\u306f\u3001<\/p>\r\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">for \u5909\u6570 in \u30ea\u30b9\u30c8\u307e\u305f\u306frange\u578b:\r\n    \u6587<\/pre>\r\n<p>\u306e\u3088\u3046\u306a\u69cb\u9020\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u4f8b\u3048\u3070\u30010\u304b\u30899\u307e\u3067\u51fa\u529b\u3059\u308b\u306b\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\r\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">for i in [0,1,2,3,4,5,6,7,8,9]:\r\n    print(i)\r\n\r\nfor i in range(10):\r\n    print(i)<\/pre>\r\n<p>2\u3064\u76ee\u306e\u65b9\u6cd5\u3067range\u3068\u3044\u3046\u95a2\u6570\u3092\u4f7f\u3063\u3066\u3044\u307e\u3059\u304c\u3001\u3053\u306erange\u306f\u3044\u304f\u3064\u304b\u4f7f\u3044\u65b9\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\r\n<p><strong>1. \u7e70\u308a\u8fd4\u3057\u56de\u6570\u306e\u307f\u6307\u5b9a\u3059\u308b\u5834\u5408\uff08i = 0 &#8230; N-1\uff09<\/strong><\/p>\r\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">N = 100\r\nfor i in range(N):\r\n    print(i)<\/pre>\r\n<p>\u3053\u306e\u3088\u3046\u306b1\u3064\u3060\u3051\u6570\u5b57N\u3092\u5165\u308c\u308b\u3068\u30010\u304b\u3089N-1\u307e\u3067\u3001\u7e70\u308a\u8fd4\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\r\n<p><strong>2. \u958b\u59cb\u3068\u7d42\u4e86\u7e70\u308a\u8fd4\u3057\u56de\u6570\u306e\u307f\u6307\u5b9a\u3059\u308b\u5834\u5408<\/strong><\/p>\r\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">N = 100\r\nfor i in range(1, N, 3):\r\n    print(i)<\/pre>\r\n<p>\u3053\u308c\u3092\u5b9f\u884c\u3059\u308b\u30681, 4, 7, &#8230;, 97\u3068\u3044\u3046\u6570\u5b57\u304c\u51fa\u529b\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002range\u306e1\u3064\u76ee\u306e\u5f15\u6570\u304c\u958b\u59cb\u70b9\u30012\u3064\u76ee\u306e\u5f15\u6570\u304c\u7d42\u4e86\u70b9\uff0b1\u30013\u3064\u76ee\u306e\u5f15\u6570\u304c\u5897\u52a0\u91cf\u3092\u8868\u3057\u307e\u3059\u3002C\u8a00\u8a9e\u3067\u8003\u3048\u308b\u3068<\/p>\r\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"c\">int i;\r\nint N = 100;\r\nfor (i=1; i&lt;N; i+=3)\r\n{\r\n    printf(\"%d\\n\", i);\r\n}<\/pre>\r\n<p>\u3068\u3044\u3046\u98a8\u306b\u306a\u308a\u307e\u3059\u3002\u3082\u3057\u5897\u52a0\u91cf\u304c1\u3067\u826f\u3051\u308c\u3070\u6700\u5f8c\u306b\u6570\u5024\u3092\u5165\u308c\u308b\u5fc5\u8981\u304c\u306a\u304f\u3001\u4ee5\u4e0b\u306e\u4e8c\u3064\u306efor\u6587\u306f\u540c\u3058\u3082\u306e\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\r\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">N = 100\r\nfor i in range(3, N):\r\n    print(i)\r\n\r\nfor i in range(3, N, 1):\r\n    print(i)<\/pre>\r\n<h4><span class=\"ez-toc-section\" id=\"while%e6%96%87\"><\/span>while\u6587<span class=\"ez-toc-section-end\"><\/span><\/h4>\r\n<p>while\u6587\u306f\u30a4\u30f3\u30c7\u30f3\u30c8\u3067\u5236\u5fa1\u6587\u306e\u7bc4\u56f2\u3092\u6307\u5b9a\u3059\u308b\u4ee5\u5916\u306f\u3001C\u8a00\u8a9e\u306b\u8fd1\u3044\u3067\u3059\u3002<\/p>\r\n<p>\u4f8b\u3048\u3070\u3001<\/p>\r\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">N = 100\r\ni = 0\r\nwhile i &lt; 20:\r\n    i = i + 1\r\n    print(i)<\/pre>\r\n<h4><span class=\"ez-toc-section\" id=\"%e5%b0%8f%e3%83%8d%e3%82%bf%ef%bc%9aprint%e6%96%87%e3%81%ae%e6%9c%80%e5%be%8c%e3%81%ae%e6%94%b9%e8%a1%8c%e3%82%92%e6%b6%88%e3%81%99%e3%81%ab%e3%81%af\"><\/span>\u5c0f\u30cd\u30bf\uff1aprint\u6587\u306e\u6700\u5f8c\u306e\u6539\u884c\u3092\u6d88\u3059\u306b\u306f<span class=\"ez-toc-section-end\"><\/span><\/h4>\r\n<p>\u4f8b\u3048\u3070<\/p>\r\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">for i in range(5):\r\n    print(i)<\/pre>\r\n<p>\u3068\u3059\u308b\u3068\u3001<\/p>\r\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">0\r\n1\r\n2\r\n3\r\n4<\/pre>\r\n<p>\u3068\u306a\u308a\u3001\u51fa\u529b\u3054\u3068\u306b\u6539\u884c\u304c\u5165\u308a\u307e\u3059\u3002<\/p>\r\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">for i in range(5):\r\n    print(i, end=\", \")<\/pre>\r\n<p>\u3068\u3059\u308c\u3070\u3001\u6539\u884c\u304c\u306a\u304f\u306a\u308a\u3001<\/p>\r\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">0, 1, 2, 3, 4, <\/pre>\r\n<p>\u3068\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u540c\u69d8\u306b\u3001<\/p>\r\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">for i in range(5):\r\n    print(i, end=\"\")<\/pre>\r\n<p>\u3068\u3059\u308c\u3070\u3001<\/p>\r\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">01234<\/pre>\r\n<p>\u3068\u9023\u7d9a\u3057\u3066\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\r\n<p>\u3053\u308c\u306f\u901a\u5e38\u6539\u884c\u6587\u5b57\uff08&#8221;\\n&#8221;\uff09\u3067\u3042\u308b\u6587\u5b57\u5217\u306e\u7d42\u7aef\uff08end\uff09\u306e\u51e6\u7406\u3092&#8221;&#8221;\u3067\u62ec\u3089\u308c\u305f\u6587\u5b57\u5217\u3067\u7f6e\u304d\u63db\u3048\u308b\u3053\u3068\u3092\u610f\u5473\u3057\u3066\u3044\u307e\u3059\u3002\u3082\u3061\u308d\u3093\u3001\u4e0a\u3067\u7d39\u4ecb\u3057\u305fsep\u3068\u7d44\u307f\u5408\u308f\u305b\u3066\u5909\u3048\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\r\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">for i in range(5):\r\n    print(i,\"\u3001\u306e\u6b21\u306e\", sep=\"\", end=\"\")\r\nprint(i+1)<\/pre>\r\n<hr \/>\r\n<h4><span class=\"ez-toc-section\" id=\"%e4%be%8b%e9%a1%8c\"><\/span><span style=\"text-decoration: underline;\">\u4f8b\u984c<\/span><span class=\"ez-toc-section-end\"><\/span><\/h4>\r\n<p>C\u8a00\u8a9e\u3067\u3082\u53d6\u308a\u7d44\u3093\u3060\u548c\u3068\u7a4d\u3092\u6c42\u3081\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\r\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">wa = 0\r\nseki = 1\r\nfor i in range(1,5):\r\n    wa = wa + i # wa += i \u3067\u3082\u53ef\r\n    seki = seki * i # seki *= i \u3067\u3082\u53ef\r\n\r\nprint(\"\u548c\uff1d\", wa)\r\nprint(\"\u7a4d\uff1d\", seki)<\/pre>\r\n<h4><span class=\"ez-toc-section\" id=\"%e8%aa%b2%e9%a1%8c7\"><\/span><u>\u8ab2\u984c7<\/u><span class=\"ez-toc-section-end\"><\/span><\/h4>\r\n<p>\u548c\u3068\u7a4d\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u6539\u826f\u3057\u3066, \u6574\u6570 n \u3092\u5165\u529b\u3059\u308b\u3068 \uff11 \uff5e n \u307e\u3067\u306e\u548c\u3068\u7a4d\u3092\u8868\u793a\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u6210\u305b\u3088. \uff08\u6ce8\u610f\uff1a\u3042\u307e\u308a\u5927\u304d\u306a n \u3092\u5165\u529b\u3059\u308b\u3068\u3001\u7279\u306b\u7a4d\u306e\u5024\u304c\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30fc\u3067\u6271\u3048\u308b\u7bc4\u56f2\u3092\u8d85\u3048\u3066\u3057\u307e\u3046\u306e\u3067\u3001\u6b63\u78ba\u306a\u5024\u304c\u3067\u3066\u3053\u306a\u304f\u306a\u308a\u307e\u3059. \u305d\u308c\u307b\u3069\u5927\u304d\u304f\u306a\u3044 n \u3067\u8a66\u3057\u3066\u304f\u3060\u3055\u3044.\uff09<\/p>\r\n<h4><span class=\"ez-toc-section\" id=\"%e8%aa%b2%e9%a1%8c8\"><\/span><u>\u8ab2\u984c8<\/u><span class=\"ez-toc-section-end\"><\/span><\/h4>\r\n<p>\u5b9f\u6570 a, \u81ea\u7136\u6570 n \u3092\u5165\u529b\u3059\u308b\u3068 a<sup>n<\/sup> \u3092\u8a08\u7b97\u3057\u8868\u793a\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u6210\u305b\u3088. \uff08\u6ce8\u610f\uff1a\u3042\u307e\u308a\u5927\u304d\u306a n \u3092\u5165\u529b\u3059\u308b\u3068\u3001\u7279\u306b\u7a4d\u306e\u5024\u304c\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u30fc\u3067\u6271\u3048\u308b\u7bc4\u56f2\u3092\u8d85\u3048\u3066\u3057\u307e\u3046\u306e\u3067\u3001\u6b63\u78ba\u306a\u5024\u304c\u3067\u3066\u3053\u306a\u304f\u306a\u308a\u307e\u3059. \u305d\u308c\u307b\u3069\u5927\u304d\u304f\u306a\u3044 n \u3067\u8a66\u3057\u3066\u304f\u3060\u3055\u3044.\uff09<\/p>\r\n<h4><span class=\"ez-toc-section\" id=\"%e8%aa%b2%e9%a1%8c9\"><\/span><u>\u8ab2\u984c9<\/u><span class=\"ez-toc-section-end\"><\/span><\/h4>\r\n<p>\u5b9f\u6570 a, \u6574\u6570 n \u3092\u5165\u529b\u3059\u308b\u3068 a + a<sup>2<\/sup> + a<sup>3<\/sup> + &#8230; + a<sup>n<\/sup> \u3092\u8a08\u7b97\u3057\u8868\u793a\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u6210\u305b\u3088.<\/p>\r\n<h4><span class=\"ez-toc-section\" id=\"%e8%aa%b2%e9%a1%8c10\"><\/span><u>\u8ab2\u984c10<\/u><span class=\"ez-toc-section-end\"><\/span><\/h4>\r\n<p>\u81ea\u7136\u6570 n \u3092\u5165\u529b\u3059\u308b\u3068 n \u4ee5\u4e0b\u306e 3 \u306e\u500d\u6570\u3068 7 \u306e\u500d\u6570\u3092\u8868\u793a\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u6210\u305b\u3088.\uff08for \u6587\u3068 if \u6587\u3092\u4f7f\u3046. \uff09<\/p>\r\n<h4><span class=\"ez-toc-section\" id=\"%e8%aa%b2%e9%a1%8c11\"><\/span><u>\u8ab2\u984c11<\/u><span class=\"ez-toc-section-end\"><\/span><\/h4>\r\n<p>\u81ea\u7136\u6570 n \u3092\u5165\u529b\u3059\u308b\u3068 n \u304c\u7d20\u6570\u304c\u3069\u3046\u304b\u5224\u5b9a\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u6210\u305b\u3088.<\/p>\r\n<p>\u4ee5\u4e0b\u3001\u96e3\u3057\u3081\u306e\u554f\u984c <b><\/b><\/p>\r\n<h4><span class=\"ez-toc-section\" id=\"%e8%aa%b2%e9%a1%8c12\"><\/span><u>\u8ab2\u984c12<\/u><span class=\"ez-toc-section-end\"><\/span><\/h4>\r\n<p><b><\/b>\u4e09\u6841\u4ee5\u4e0b\u306e\uff08\uff11\uff10\u9032\u6570\u306e\uff09\u81ea\u7136\u6570\u3092\u5165\u529b\u3057\u305f\u3089\u3001\u305d\u306e\u6570\u3092\u4e8c\u9032\u6570\u3067\u8868\u793a\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u6210\u305b\u3088(for\u6587\u3092\u4f7f\u3063\u3066\uff09 \u4f8b: \u4e09\u6841\u4ee5\u4e0b\u306e\u81ea\u7136\u6570\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\uff1a231 \u305d\u306e\u6570\u3092\u4e8c\u9032\u6570\u3067\u3042\u3089\u308f\u3059\u306811100111\u3067\u3059\u3002<\/p>\r\n<h4><span class=\"ez-toc-section\" id=\"%e8%aa%b2%e9%a1%8c13\"><\/span><u>\u8ab2\u984c13<\/u><span class=\"ez-toc-section-end\"><\/span><\/h4>\r\n<p>7\u306en\u4e57\u3092An\u3068\u3042\u3089\u308f\u3059\u3068\u3059\u308b\u3002\u4e0b\u4e09\u6841\u304c(943)\u3068\u306a\u308b\u6700\u5c0f\u306eAn\u306en\u3092\u6c42\u3081\u3088\u3002 \u305d\u306e\u3088\u3046\u306an\u304c\u5b58\u5728\u3057\u306a\u3044\u5834\u5408\u306f\u3001\u305d\u306e\u3088\u3046\u306b\u51fa\u529b\u305b\u3088\u3002<br \/>\u30d2\u30f3\u30c8\uff1a\u6761\u4ef6\u3092\u307f\u305f\u3059n\u304c\u5b58\u5728\u3057\u306a\u3044\u5834\u5408\u306f\u3001943\u3092\u542b\u307e\u306a\u3044\u96c6\u5408\u3067\u9589\u3058\u3066\u3044\u308b\uff08\u5faa\u74b0\u3057\u3066\u3044\u308b\uff09\u3053\u3068\u306b\u306a\u308b\u3002\u3064\u307e\u308a\u3001\u5c11\u306a\u304f\u3068\u3082n=\u3007\u307e\u3067\u306b943\u304c\u3067\u306a\u3051\u308c\u3070\u3001\u6761\u4ef6\u3092\u307f\u305f\u3059n\u304c\u5b58\u5728\u3057\u306a\u3044\u3068\u8a00\u3063\u3066\u826f\u3044\u3002<\/p>\r\n<pre>C\u8a00\u8a9e\u3067\u306f\u3001int\u3067\u6271\u3048\u308b\u6574\u6570\u306f\u3001-2147483648\u304b\u30892147483647\u3067\u3042\u3063\u305f\u304c\u3001Python3\u3067\u306f\u4e0a\u9650\u4e0b\u9650\u306f\u306a\u304f\u306a\u3063\u305f\u3002\u305f\u3060\u3057\u300c\u30e1\u30e2\u30ea\u304c\u4f7f\u3048\u308b\u7bc4\u56f2\u3067\u300d\u3068\u3044\u3046\u4e0a\u9650\u4ed8\u304d\u306a\u306e\u3067\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u5229\u7528\u3067\u304d\u308b\u30e1\u30e2\u30ea\u306e\u7bc4\u56f2\u3092\u8d85\u3048\u3066\u3057\u307e\u3046\u3068\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u7570\u5e38\u7d42\u4e86\u3059\u308b\u306e\u3067\u6ce8\u610f\u3002<\/pre>\r\n<h4><span class=\"ez-toc-section\" id=\"%e8%aa%b2%e9%a1%8c14\"><\/span><u>\u8ab2\u984c14<\/u><span class=\"ez-toc-section-end\"><\/span><\/h4>\r\n<p>\u6574\u6570M\u306en\u4e57\u3092Mn\u3068\u3042\u3089\u308f\u3059\u3068\u3059\u308b\u3002\u4e09\u6841\u4ee5\u4e0b\u306e\u6574\u6570M\u306e\u5165\u529b\u3092\u4fc3\u3057\u4e0b\u4e8c\u6841\u304c(16)\u3068\u306a\u308b\u6700\u5c0f\u306eMn\u306en\u3092\u6c42\u3081\u3088\u3002\u305d\u306e\u3088\u3046\u306an\u304c\u5b58\u5728\u3057\u306a\u3044\u5834\u5408\u306f\u3001\u305d\u306e\u3088\u3046\u306b\u51fa\u529b\u305b\u3088\u3002<\/p>\r\n<hr \/>\r\n<h2><span class=\"ez-toc-section\" id=\"%e9%96%a2%e6%95%b0\"><\/span>\u95a2\u6570<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n<p>\u95a2\u6570\u3092\u5229\u7528\u8005\u304c\u81ea\u3089\u5b9a\u7fa9\u3057\u3066\u5229\u7528\u3059\u308b\u3053\u3068\u306f\u3001\u3069\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3067\u3082\u5fc5\u8981\u306a\u57fa\u790e\u7684\u306a\u6280\u8853\u3067\u3059\u3002\u65e9\u901fPython\u306b\u304a\u3051\u308b\u95a2\u6570\u304c\u3069\u3046\u5b9a\u7fa9\u3055\u308c\u308b\u304b\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002 \u307e\u305a\u3001\u6700\u3082\u57fa\u790e\u7684\u306a\u5165\u529b\u3055\u308c\u305f\u5909\u6570\u3092\u66f8\u304d\u51fa\u3059\u95a2\u6570\u3067\u3059\u3002<\/p>\r\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">def myfunc(a):\r\n    print(a)<\/pre>\r\n<p>return\u304c\u306a\u3044\u306e\u3067C\u8a00\u8a9e\u306evoid\u578b\u306e\u95a2\u6570\u306b\u306a\u308a\u307e\u3059\u3002\u3057\u304b\u3057\u3069\u3053\u306b\u3082void\u578b\u306a\u3069\u3068\u5ba3\u8a00\u3059\u308b\u3068\u3053\u308d\u304c\u3042\u308a\u307e\u305b\u3093\u3002 \u3053\u308c\u306f\u3001\u5909\u6570\u306e\u5ba3\u8a00\u304c\u306a\u3044\u306e\u3068\u540c\u69d8\u306b\u5b9f\u969b\u306breturn\u3055\u308c\u308b\u5024\u304c\u66f8\u304d\u8fbc\u307e\u308c\u308b\u307e\u3067Python\u3067\u306f\u95a2\u6570\u304c\u8fd4\u3059\u5909\u6570\u306e\u578b\u306f\u5b9a\u7fa9\u3055\u308c\u306a\u3044\u306e\u3067\u3001\u5909\u6570\u3068\u540c\u69d8\u306b\u5fc5\u8981\u304c\u3042\u308a\u307e\u305b\u3093\u3002 \u305d\u3057\u3066\u3001:\uff08\u30b3\u30ed\u30f3\uff09\u3067\u6539\u884c\u3057\u305f\u5f8c\u306b\u306fif\u6587\u3084for\u6587\u3068\u540c\u3058\u3088\u3046\u306b\u3001\u30a4\u30f3\u30c7\u30f3\u30c8\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u306f\u7406\u7531\u3082\u540c\u3058\u3067\u3001\u30a4\u30f3\u30c7\u30f3\u30c8\u3055\u308c\u305f\u90e8\u5206\u3060\u3051\u304c\u95a2\u6570\u306e\u4e2d\u3067\u51e6\u7406\u3055\u308c\u308b\u6587\u3068\u8a8d\u8b58\u3055\u308c\u308b\u305f\u3081\u3067\u3059\u3002 \u6b21\u306b\u4e8c\u3064\u306e\u548c\u3092\u8fd4\u3059\u95a2\u6570\u3092\u8003\u3048\u307e\u3059\u3002<\/p>\r\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">def my_sum(a, b):\r\n    c = a + b\r\n    return c\r\n\r\na = 1\r\nb = 2\r\nans1 = my_sum(a, b)\r\nans2 = my_sum(3, -5)\r\nans3 = my_sum(2.0, 4.1)\r\nprint(ans1, ans2, ans3)<\/pre>\r\n<p>\u3053\u306e\u3088\u3046\u306b\u3059\u308b\u3068a\u3068b\u306e\u5024\u304c\u5165\u529b\u3055\u308c\u308b\u3068\u3001\u305d\u306e\u4e8c\u3064\u306e\u5909\u6570\u306e\u548c\u3092\u3068\u3063\u3066\u8fd4\u3057\u3066\u304f\u308c\u308b\u8a33\u3067\u3059\u304c\u3001\u5f15\u6570\u306b\u3082\u578b\u306e\u5b9a\u7fa9\u304c\u306a\u3044\u305f\u3081\u3001\u5b9f\u969b\u306b\u5165\u529b\u3055\u308c\u308b\u5909\u6570\u306e\u578b\u3092\u305d\u306e\u307e\u307e\u5229\u7528\u3057\u3066\u548c\u3092\u53d6\u308b\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001ans1\u306e\u3088\u3046\u306a\u4f7f\u3044\u65b9\u306b\u52a0\u3048\u3066\u3001ans3\u306e\u3088\u3046\u306bfloat\u578b\u306e\u5024\u3092\u76f4\u63a5\u5165\u529b\u3059\u308b\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\u3002<\/p>\r\n<p>\u6ce8\u610f\u70b9\u3068\u3057\u3066\u306f\u3001C\u8a00\u8a9e\u3068\u9055\u3044\u5148\u306b\u95a2\u6570\u3092\u5ba3\u8a00\u3057\u3066\u304a\u304f\u30d7\u30ed\u30c8\u30bf\u30a4\u30d7\u5ba3\u8a00\u304c\u3067\u304d\u307e\u305b\u3093\u3002\u57fa\u672c\u7684\u306b\u5ba3\u8a00\u3068\u3044\u3046\u6982\u5ff5\u304c\u306a\u3044\u306e\u3067\u5f53\u7136\u3067\u306f\u3042\u308b\u306e\u3067\u3059\u304c\u3001\u5e38\u306b\u5229\u7528\u3059\u308b\u3088\u308a\u3082\u524d\u306b\u95a2\u6570\u3092\u5b9a\u7fa9\u3057\u3066\u304a\u304f\u5fc5\u8981\u304c\u3042\u308b\u306e\u3067\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\r\n<hr \/>\r\n<p>\u3055\u3066\u3001\u3053\u3053\u307e\u3067\u306b\u99c6\u3051\u8db3\u306b\u57fa\u790e\u7684\u306a\u90e8\u5206\u3092\u5b66\u7fd2\u3057\u3066\u304d\u307e\u3057\u305f\u3002<\/p>\r\n<p>\u3053\u308c\u3060\u3051\u3067\u306fC\u8a00\u8a9e\u3067\u3082\u540c\u69d8\u306b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u304c\u3067\u304d\u3001Python\u3092\u5b66\u3076\u3042\u308a\u304c\u305f\u307f\u3092\u611f\u3058\u308b\u306b\u306f\u6a5f\u80fd\u304c\u5c11\u306a\u3044\u3068\u611f\u3058\u308b\u3067\u3057\u3087\u3046\u3002 Python\u306e\u5f37\u307f\u306f\u3001\u305d\u306e\u8c4a\u5bcc\u306a\u30e2\u30b8\u30e5\u30fc\u30eb\u306b\u3042\u308a\u307e\u3059 \uff08\u3082\u3061\u308d\u3093\u4ed6\u306b\u3082\u3042\u308a\u307e\u3059\u304c&#8230;\uff09\u3002 \u672c\u8b1b\u7fa9\u3067\u4e3b\u306b\u7528\u3044\u308b\u3001NumPy\u3068Matplotlib\u3068\u3044\u3046\u30e2\u30b8\u30e5\u30fc\u30eb\u306b\u4f7f\u7528\u65b9\u6cd5\u3092\u5b66\u3073\u3001\u5b9f\u969b\u306b\u554f\u984c\u3092\u89e3\u3044\u3066Python\u306b\u6163\u308c\u3066\u3044\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\r\n<h2><span class=\"ez-toc-section\" id=\"numpy%ef%bc%9a%e6%95%b0%e5%ad%a6%e9%96%a2%e6%95%b0%e3%80%81%e3%83%99%e3%82%af%e3%83%88%e3%83%ab%e3%81%aa%e3%81%a9%e3%81%ae%e5%88%a9%e7%94%a8\"><\/span>NumPy\uff1a\u6570\u5b66\u95a2\u6570\u3001\u30d9\u30af\u30c8\u30eb\u306a\u3069\u306e\u5229\u7528<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n<p>C\u8a00\u8a9e\u3067\u306f\u69d8\u3005\u306a\u6570\u5b66\u95a2\u6570\u3092\u7528\u3044\u308b\u305f\u3081\u306bmath.h\u3092\u30a4\u30f3\u30af\u30eb\u30fc\u30c9\u3057\u307e\u3057\u305f\u304c\u3001 \u305d\u308c\u306b\u5bfe\u5fdc\u3059\u308b\u30e9\u30a4\u30d6\u30e9\u30ea\uff08\u30e2\u30b8\u30e5\u30fc\u30eb\uff1a\u5f8c\u8ff0\uff09\u306f\u3001numpy\u3068\u306a\u308a\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8aad\u307f\u8fbc\u307f\u307e\u3059\u3002<\/p>\r\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">import numpy as np<\/pre>\r\n<p>C\u8a00\u8a9e\u3067#include\u306b\u5bfe\u5fdc\u3059\u308b\u3082\u306e\u304cimport\u306b\u306a\u308a\u307e\u3059\u3002\u5f8c\u308d\u306b<code class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">as np<\/code>\u3068\u3042\u308a\u307e\u3059\u304c\u3001\u3053\u308c\u306f\u3001Numpy\u306b\u542b\u307e\u308c\u308b\u95a2\u6570\u3092\u4f7f\u3046\u969b\u306b\u3001\u300c\u6bce\u56de<code class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">numpy.\u3007\u3007<\/code>\u3068\u6253\u3064\u306e\u304c\u9762\u5012\u306a\u306e\u3067\u3001\u4ee3\u308f\u308a\u306b<code class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">np.\u3007\u3007<\/code>\u3092\u4f7f\u3046\u300d\u3068\u3044\u3046\u5ba3\u8a00\u3067\u3059\u3002numpy\u306b\u95a2\u3057\u3066\u306f\u3082\u306f\u3084\u30bb\u30c3\u30c8\u3067<code class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">as np<\/code>\u3092\u4f7f\u3046\u3068\u3044\u3046\u306e\u304c\u4e16\u754c\u7684\u306b\u3082\u6163\u4f8b\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u4ed6\u306e\u3068\u3053\u308d\u304b\u3089\u5f15\u3063\u5f35\u3063\u3066\u304f\u308b\u8272\u3005\u306a\u95a2\u6570\u3084\u5b9a\u6570\u306e\u96c6\u307e\u308a\u306e\u3053\u3068\u3092\u3001\u4ed6\u306e\u8a00\u8a9e\u3067\u306f\u30e9\u30a4\u30d6\u30e9\u30ea\u3068\u547c\u3076\u3053\u3068\u304c\u304c\u591a\u3044\u3067\u3059\u304c\u3001Python\u3067\u306f\u4e00\u822c\u7684\u306b\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u306f\u306a\u304f\u30e2\u30b8\u30e5\u30fc\u30eb\u3068\u547c\u3073\u307e\u3059\u3002\u7279\u306bNumPy\u306fNumerical\u306eNum\u304b\u3089\u540d\u524d\u306e\u7531\u6765\u306e\u3042\u308b\u6570\u5024\u8a08\u7b97\u7528\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u3067\u3001\u3053\u308c\u304c\u3042\u308c\u3070\u304b\u306a\u308a\u306e\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\u3002<\/p>\r\n<h3><span class=\"ez-toc-section\" id=\"%e6%95%b0%e5%ad%a6%e9%96%a2%e6%95%b0%e3%83%bb%e5%ae%9a%e6%95%b0%e3%81%ae%e5%88%a9%e7%94%a8\"><\/span>\u6570\u5b66\u95a2\u6570\u30fb\u5b9a\u6570\u306e\u5229\u7528<span class=\"ez-toc-section-end\"><\/span><\/h3>\r\n<p>\u6570\u5b66\u95a2\u6570\u30fb\u5b9a\u6570\u306a\u3069\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u3066\u4f7f\u3048\u307e\u3059\u3002<\/p>\r\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">np.sin(x)\r\nnp.exp(-2*t)\r\nnp.pi<\/pre>\r\n<p>\u4e0a\u8a18\u306ex\u3084t\u306a\u3069\u306e\u5909\u6570\u306f\u30011\u500b\u306e\u30b9\u30ab\u30e9\u30fc\u3067\u3082\u826f\u3044\u3067\u3059\u3057\u3001\u30ea\u30b9\u30c8\u3067\u3082\u69cb\u3044\u307e\u305b\u3093\u3002 np.pi\u306f\u03c0\u3092\u8868\u3057\u307e\u3059\u3002<\/p>\r\n<h3><span class=\"ez-toc-section\" id=\"%e3%83%99%e3%82%af%e3%83%88%e3%83%ab%ef%bc%88array%ef%bc%89%e3%81%ae%e5%88%a9%e7%94%a8\"><\/span>\u30d9\u30af\u30c8\u30eb\uff08Array\uff09\u306e\u5229\u7528<span class=\"ez-toc-section-end\"><\/span><\/h3>\r\n<p>\u30ea\u30b9\u30c8\u306e\u3068\u3053\u308d\u3067\u89e6\u308c\u305f\u3068\u304a\u308a\u3001\u3053\u306e\u6f14\u7fd2\u3067\u306f\u914d\u5217\u306b\u5f53\u305f\u308b\u3082\u306e\u306f\u3053\u306earray\u3092\u5229\u7528\u3057\u3066\u3044\u304d\u307e\u3059\u3002\u307e\u305a\u4e00\u756a\u7c21\u5358\u306a\u5229\u7528\u65b9\u6cd5\u306f\u4ee5\u4e0b\u3067\u3059\u3002<\/p>\r\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">X = np.array([1, 3, 5, 7])<\/pre>\r\n<p>\u3053\u306earray\u578b\u306eX\u306e\u5024\u3092\u4f7f\u3044\u305f\u3044\u5834\u5408\u306f\u3001\u30ea\u30b9\u30c8\u3068\u540c\u3058\u3088\u3046\u306bX[0]\u306a\u3069\u3068\u3044\u3046\u98a8\u306b\u5229\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\r\n<p>\u3055\u3066\u3001\u9ad8\u3005\u6570\u500b\u306e\u914d\u5217\u3092\u4f5c\u308b\u3060\u3051\u306a\u3089\u3053\u308c\u3067\u3044\u3044\u3067\u3059\u304c\u3001N\u70b9\u3042\u308b\u914d\u5217\u304c\u5fc5\u8981\u306b\u306a\u308b\u5834\u5408\u306b\u3001\u624b\u6253\u3061\u3067\u5165\u529b\u3057\u3066\u3044\u3066\u306f\u57d2\u304c\u660e\u304d\u307e\u305b\u3093\u3002 C\u8a00\u8a9e\u3067\u306f\u3001\u5ba3\u8a00\u3057\u305f\u5f8cfor\u6587\u3067\u521d\u671f\u5316\u3057\u3066\u3044\u307e\u3057\u305f\u304c\u3001\u3053\u3053\u3067\u306fNumPy\u306b\u3042\u308b\u95a2\u6570\u3092\u5229\u7528\u3057\u3066\u3001\u4e00\u6c17\u306b\u521d\u671f\u5316\u3057\u3066array\u578b\u306e\u914d\u5217\u3092\u4f5c\u308a\u307e\u3059\u3002<\/p>\r\n<p>\u305d\u306e\u65b9\u6cd5\u304c\u4ee5\u4e0b\u3067\u3059\u3002<\/p>\r\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">N = 200\r\nX = np.zeros(N)<\/pre>\r\n<p>\u3053\u308c\u3067\u5024\u304c0\u306eN\u500b\u8981\u7d20\u3092\u6301\u3064\u4e00\u6b21\u5143\u914d\u5217\u3092\u4f5c\u308b\u3053\u3068\u304c\u3067\u304d\u3001\u3053\u306eX\u3092C\u8a00\u8a9e\u3068\u540c\u3058\u3088\u3046\u306bfor\u6587\u3067\u521d\u671f\u5316\u3057\u3066\u3044\u304f\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\u3002<\/p>\r\n<p>\u4f8b\u3048\u3070\u3001\u523b\u307f\u5e45\u304cdt\u304c1\/N\u3068\u306a\u308b\u6642\u9593\u3092\u8868\u3059\u3082\u306e\u3068\u3057\u3001t\u306bN\u30b9\u30c6\u30c3\u30d7\u307e\u3067\u306e\u6642\u9593\u3092\u5165\u308c\u3066\u304a\u3053\u3046\u3068\u3059\u308b\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\r\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">N = 101\r\nt = np.zeros(N)\r\ndt = 1 \/ (N-1)\r\nfor i in range(N):\r\n    t[i] = i * dt<\/pre>\r\n<p>\u3053\u308c\u3067\u521d\u671f\u5316\u304c\u51fa\u6765\u308b\u306e\u3067\u3059\u304c\u3001\u3053\u308c\u306fC\u8a00\u8a9e\u3068\u540c\u3058\u3084\u308a\u65b9\u306b\u306a\u308a\u307e\u3059\u3002 \u3057\u304b\u3057\u3001Python\u3067\u306f\u3001\u3082\u3063\u3068\u7c21\u7565\u3057\u305f\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\r\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">N = 101\r\nTstart = 0\r\nTend = 1\r\nt = np.linspace(Tstart, Tend, N)<\/pre>\r\n<p>np.linspace\u3067\u306f\u3001\u4e00\u3064\u76ee\u306e\u5f15\u6570\u306b\u30b9\u30bf\u30fc\u30c8\u306e\u6570\u5024\u3001\u4e8c\u3064\u76ee\u306b\u7d42\u308f\u308a\u306e\u6570\u5024\u3001\u4e09\u3064\u76ee\u306b\u305d\u306e\u533a\u9593\u3092\u5206\u5272\u3059\u308b\u6570\u3092\u5165\u529b\u3057\u307e\u3059\u3002\u3059\u308b\u3068\u3001for\u6587\u3092\u4f7f\u308f\u306a\u304f\u3066\u3082\u3044\u3063\u307a\u3093\u306b\u6642\u9593\u306e\u60c5\u5831\u3092\u6301\u3063\u305f\u914d\u5217\u3092\u6e96\u5099\u3059\u308b\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\u3002<\/p>\r\n<p>\u307e\u305f\u524d\u306b\u623b\u308a\u307e\u3059\u304c\u3001int\u578b\u3067\u914d\u5217\u3092\u4f5c\u308b\u5834\u5408\u306b\u306f\u3001<\/p>\r\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">N = 100\r\nTstart = 0\r\nIncrement = 3\r\nns1 = np.arange(Tstart, N)\r\nns2 = np.arange(Tstart, N, Increment)<\/pre>\r\n<p>np.arange\u3092\u4f7f\u3048\u3070\u540c\u69d8\u306b\u51fa\u6765\u307e\u3059\u3002\u3053\u306e\u5834\u5408\u3001\u6700\u5f8c\u306e\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30c8\u3059\u308b\u6570\u3092\u6307\u5b9a\u3057\u306a\u3051\u308c\u30701\u3068\u81ea\u52d5\u3067\u6307\u5b9a\u3055\u308c\u307e\u3059\u3002<\/p>\r\n<h4><span class=\"ez-toc-section\" id=\"%e5%b0%8f%e3%83%8d%e3%82%bf%ef%bc%9a%e3%83%aa%e3%82%b9%e3%83%88%e3%81%a8nparray%e3%80%81range%e3%81%a8nparange\"><\/span>\u5c0f\u30cd\u30bf\uff1a\u30ea\u30b9\u30c8\u3068np.array\u3001range\u3068np.arange<span class=\"ez-toc-section-end\"><\/span><\/h4>\r\n<p>\u30ea\u30b9\u30c8\u3068np.array\u306f\u3044\u305a\u308c\u3082\u914d\u5217\u3092\u6271\u3044\u307e\u3059\u3002\u3067\u306f\u3053\u308c\u3089\u306e\u9593\u306b\u9055\u3044\u306f\u3042\u308b\u306e\u3067\u3057\u3087\u3046\u304b\uff1f<\/p>\r\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">list1 = [1, 2, 3]\r\nlist2 = np.array([1, 2, 3])<\/pre>\r\n<p>\u3068\u3057\u3066\u3001\u5909\u6570\u30a8\u30af\u30b9\u30d7\u30ed\u30fc\u30e9\u30fc\u3067\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u3069\u3061\u3089\u3082[1, 2, 3]\u3068\u3044\u3046\u914d\u5217\u3067\u306f\u3042\u308a\u307e\u3059\u304c\u3001\u305d\u308c\u305e\u308c\u306eType\u304c\u3001list1\u3067\u306f&#8221;list&#8221;\u578b\u3001list2\u3067\u306f&#8221;Array of int64&#8243;\u578b\u3068\u306a\u3063\u3066\u3044\u308b\u306e\u304c\u78ba\u8a8d\u3067\u304d\u308b\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\u307e\u305a\u3001Array of int 64\u578b\u304b\u3089\u8aac\u660e\u3057\u307e\u3059\u3068\u3001\u3053\u308c\u306f&#8221;64 bit\u306eint\u578b\u306e\u914d\u5217&#8221;\u3092\u610f\u5473\u3057\u307e\u3059\u3002\u3059\u306a\u308f\u3061\u3001\u5b9a\u7fa9\u6642\u306b\u5168\u3066\u306e\u69cb\u6210\u8981\u7d20\u304cint\u578b\u3060\u3068\u3001list2\u306e\u69cb\u6210\u8981\u7d20\u306f\u3059\u3079\u3066int\u578b\u306b\u306a\u308b\u308f\u3051\u3067\u3059\u3002\u3053\u306e\u3068\u304d<code class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">list2[1]=3.5<\/code>\u3068\u3057\u3066\u3082list2\u306fint\u578b\u3067\u3059\u306e\u3067\u3001\u81ea\u52d5\u7684\u306b<code class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">list2[1]=int(3.5)<\/code>\u3068\u540c\u3058\u3053\u3068\u304c\u8d77\u304d\u3001list[1]\u306b\u306f3\u304c\u4ee3\u5165\u3055\u308c\u307e\u3059\u3002<br \/>\u4e00\u65b9\u3067\u3001list\u578b\u306b\u3064\u3044\u3066\u306f\u3001\u69cb\u6210\u8981\u7d20\u306e\u578b\u304c\u30d0\u30e9\u30d0\u30e9\u3067\u3082\u69cb\u3044\u307e\u305b\u3093\u3002\u4f8b\u3048\u3070\u3001\u6b21\u306e\u3088\u3046\u306a\u5b9a\u7fa9\u3082\u901a\u308a\u307e\u3059\u3002<\/p>\r\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">list3 = [\"\u8a08\u7b97\u6570\u5b66\u6f14\u7fd2\", 123, 4.56]<\/pre>\r\n<p>\u3082\u3061\u308d\u3093\u3001<code class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">list3[1] = [\"\u304a\u8179\u3059\u3044\u305f\"]<\/code>\u306e\u3088\u3046\u306b\u3001\u5404\u8981\u7d20\u306e\u578b\u304c\u7570\u306a\u308b\u4ee3\u5165\u3082\u53ef\u80fd\u3067\u3059\u3002<\/p>\r\n<p>\u3069\u3061\u3089\u3082\u4e00\u9577\u4e00\u77ed\u3042\u308a\u307e\u3059\u304c\u3001\u4f8b\u3048\u3070\u914d\u5217\u3092\u4f7f\u3063\u3066\u8f9e\u66f8\u7684\u306a\u5229\u7528\u3084\u6587\u5b57\u5217\u306e\u89e3\u6790\u306b\u7528\u3044\u308b\u969b\u306flist\u578b\u3001\u6570\u5024\u89e3\u6790\u306b\u7528\u3044\u308b\u5834\u5408\u306fArray of \u3007\u3007\u578b\u3092\u4f7f\u3046\u3001\u3068\u3044\u3046\u3088\u3046\u306b\u3001\u9069\u6750\u9069\u6240\u3067\u4f7f\u3044\u307e\u3057\u3087\u3046\u3002<\/p>\r\n<p>\u6b21\u306frange\u3068np.range\u306b\u3064\u3044\u3066\u3082\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\r\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">list4 = range(5)\r\nlist5 = np.arange(5)<\/pre>\r\n<p>\u3068\u3057\u3066\u3001\u5909\u6570\u30a8\u30af\u30b9\u30d7\u30ed\u30fc\u30e9\u30fc\u3067\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002np.arange\u3067\u5b9a\u7fa9\u3057\u305flist5\u306f\u4e0a\u8ff0\u3057\u305fArray of \u3007\u3007\u578b\u306a\u306e\u3067\u3059\u304c\u3001range\u3067\u5b9a\u7fa9\u3057\u305flist4\u306frange\u578b\u3068\u3044\u3046\u7279\u6b8a\u306a\u578b\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002range\u578b\u3082\u901a\u5e38\u306e\u30ea\u30b9\u30c8\u3084Array\u3068\u540c\u69d8\u306b<code class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">list4[1]<\/code>\u306a\u3069\u3067\u5024\u3092\u53c2\u7167\u3067\u304d\u307e\u3059\u304c\u3001<code class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">list4[1] = 1<\/code>\u306e\u3088\u3046\u306b\u5024\u3092\u5909\u66f4\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002\u5b9f\u306frange\u578b\u306f\u914d\u5217\u72b6\u306e\u5909\u6570\u306e\u96c6\u307e\u308a\u3067\u306f\u306a\u304f\u3001\u958b\u59cb\u70b9\u3068\u7d42\u70b9\u3068\u9593\u9694\u304c\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u308b\u306b\u904e\u304e\u306a\u3044\u306e\u3067\u3059\u3002<\/p>\r\n<p>\u5f93\u3063\u3066\u3001\u30c7\u30fc\u30bf\u3068\u3057\u3066\u6271\u3046\u5834\u5408\u306b\u306fnp.range\u3092\u3001for\u6587\u306a\u3069\u306e\u5358\u7d14\u306a\u7e70\u308a\u8fd4\u3057\u306b\u4f7f\u3046\u5834\u5408\u306frange\u3092\u4f7f\u3046\u306e\u304c\u826f\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\r\n<h4><span class=\"ez-toc-section\" id=\"%e8%aa%b2%e9%a1%8c15\"><\/span><u>\u8ab2\u984c15<\/u><span class=\"ez-toc-section-end\"><\/span><\/h4>\r\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wordpress\/wp-content\/ql-cache\/quicklatex.com-ede05c264bba0eda080918aaa09c4658_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#120;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"10\" style=\"vertical-align: 0px;\"\/>&#8211;<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wordpress\/wp-content\/ql-cache\/quicklatex.com-0af556714940c351c933bba8cf840796_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#121;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"9\" style=\"vertical-align: -4px;\"\/>\u5e73\u9762\u4e0a\u306e\u66f2\u7dda\uff11\uff1a<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wordpress\/wp-content\/ql-cache\/quicklatex.com-d3590696f879b5ebd8ae97074935838b_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#121;&#61;&#92;&#101;&#120;&#112;&#40;&#120;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"83\" style=\"vertical-align: -5px;\"\/>\u3068 \u66f2\u7dda\uff12\uff1a<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wordpress\/wp-content\/ql-cache\/quicklatex.com-e7a624fb7a161321259057a1c91d5cf5_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#121;&#61;&#51;&#43;&#120;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"73\" style=\"vertical-align: -4px;\"\/>\u306f<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wordpress\/wp-content\/ql-cache\/quicklatex.com-37665e9aef746e6afdd95539e8c09bd5_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#120;&#62;&#48;\" title=\"Rendered by QuickLaTeX.com\" height=\"14\" width=\"43\" style=\"vertical-align: -2px;\"\/>\u306e\u7bc4\u56f2\u3067\u4ea4\u70b9\u3092\u4e00\u3064\u3082\u3064\u3002 \u3053\u306e\u4ea4\u70b9\u306e<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wordpress\/wp-content\/ql-cache\/quicklatex.com-ede05c264bba0eda080918aaa09c4658_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#120;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"10\" style=\"vertical-align: 0px;\"\/>\u5ea7\u6a19\u3092\u8fd1\u4f3c\u7684\u306b\u6c42\u3081\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u6210\u305b\u3088\u3002 \u305f\u3060\u3057\u3001\u6b63\u3057\u3044\u89e3\u3068\u306e\u305a\u308c\u306f0.01\u4ee5\u4e0b\u3067\u3042\u308b\u3053\u3068\u304c\u597d\u307e\u3057\u3044\u3002 \uff08\u30d2\u30f3\u30c8\uff1a\u6c42\u3081\u65b9\u306f\u81ea\u7531\u3060\u304c\u3001<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wordpress\/wp-content\/ql-cache\/quicklatex.com-ede05c264bba0eda080918aaa09c4658_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#120;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"10\" style=\"vertical-align: 0px;\"\/>\u3092\u5c11\u3057\u305a\u3064\u5897\u3084\u3057\u3066\u3044\u304d\u3001\u66f2\u7dda\uff11\u3001\u66f2\u7dda\uff12\u306e\u4e0a\u4e0b\u304c\u5165\u308c\u66ff\u308f\u308b\u5834\u6240\u3092\u8fd1\u4f3c\u7684\u306b\u898b\u3064\u3051\u308c\u3070\u826f\u3044\uff09<\/p>\r\n<hr \/>\r\n<h2><span class=\"ez-toc-section\" id=\"matplotlib%ef%bc%9a%e3%82%b0%e3%83%a9%e3%83%95%e3%81%ae%e6%8f%8f%e7%94%bb%ef%bc%88%e6%ac%a1%e5%9b%9e%e3%81%a1%e3%82%83%e3%82%93%e3%81%a8%e8%aa%ac%e6%98%8e%e3%81%97%e3%81%be%e3%81%99%ef%bc%89\"><\/span>Matplotlib\uff1a\u30b0\u30e9\u30d5\u306e\u63cf\u753b\uff08\u6b21\u56de\u3061\u3083\u3093\u3068\u8aac\u660e\u3057\u307e\u3059\uff09<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n<p>Matplotlib\u306fPython\u3092\u5229\u7528\u3059\u308b\u5927\u304d\u306a\u7406\u7531\u306e\u4e00\u3064\u306b\u306a\u308b\u3001\u5927\u5909\u6709\u540d\u306a\u53ef\u8996\u5316\u7528\u30e2\u30b8\u30e5\u30fc\u30eb\u306b\u306a\u308a\u307e\u3059\u3002NumPy\u3068\u540c\u3058\u3088\u3046\u306b\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8aad\u307f\u8fbc\u307f\u307e\u3059\u3002<\/p>\r\n<p>\u305d\u308c\u3067\u306f\u65e9\u901f\u5358\u7d14\u306asin\u95a2\u6570\u3092\u63cf\u3044\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\r\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">import matplotlib.pyplot as plt\r\nimport numpy as np\r\n\r\nN = 100\r\ndx = 2.0*np.pi \/ N\r\nx = np.zeros(N)\r\ny = np.zeros(N)\r\nfor i in range(N):\r\n    x[i] = i*dx\r\n    y[i] = np.sin(x[i])\r\n\r\nplt.plot(x, y)\r\nplt.show()\r\n<\/pre>\r\n<p>\uff08Jupyter Notebook\u3067\u4f7f\u3046\u5834\u5408\u306f\u3001\u304a\u307e\u3058\u306a\u3044\u3068\u3057\u3066\u5148\u982d\u306b<code class=\"EnlighterJSRAW\" data-enlighter-language=\"python\">%matplotlib inline<\/code>\u3092\u66f8\u3044\u3066\u304f\u3060\u3055\u3044\u3002\uff09<\/p>\r\n<pre>plot\u3057\u3066\u3082\u4e0a\u624b\u304f\u30b0\u30e9\u30d5\u304c\u51fa\u306a\u3044\u5834\u5408\u306f\u3001\u6b21\u306e\u3053\u3068\u3092\u8a66\u3057\u3066\u304f\u3060\u3055\u3044<br \/>\u30fb\u4e0a\u306e\u300c\u30c4\u30fc\u30eb\uff08Tools\uff09\u300d\u2192\u300c\u8a2d\u5b9a\uff08Preferences\uff09\u300d<br \/>\u30fb\u958b\u3044\u305f\u30a6\u30a3\u30f3\u30c9\u30a6\u306e\u5de6\u306e\u300ciPython\u30b3\u30f3\u30bd\u30fc\u30eb\uff08iPython console\uff09\u300d<br \/>\u30fb\u300c\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u30b9\uff08Graphics\uff09\u300d<br \/>\u30fb\u300c\u30b0\u30e9\u30d5\u30a3\u30c3\u30af\u30b9\u306e\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u300d\u306e\u300c\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u300d\u3092\u300c\u81ea\u52d5\uff08Automatic\uff09\u300d\u306b\u5909\u66f4<br \/>\u30fbSpyder\u518d\u8d77\u52d5<\/pre>\r\n<p>\u8272\u3005\u3068\u307e\u3060\u8aac\u660e\u3057\u3066\u3044\u306a\u3044\u30b3\u30fc\u30c9\u3082\u66f8\u3044\u3066\u3042\u308a\u307e\u3059\u304c\u3001\u5b9f\u884c\u3057\u3066\u3082\u3089\u3046\u3068sin\u95a2\u6570\u304c\u73fe\u308c\u3066\u304f\u308c\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\r\n<p>5\u884c\u76ee\u306enp.pi\u306f\u898b\u3066\u306e\u901a\u308a\u03c0\u306e\u6570\u5024\u3092\u4e0e\u3048\u3066\u304f\u308c\u307e\u3059\u3002 12\u884c\u76ee\u306b\u3042\u308bplt.figure()\u306f\u305d\u308c\u81ea\u8eab\u3067\u3001\u30b0\u30e9\u30d5\u3092\u63cf\u753b\u3059\u308b\u571f\u53f0\u3092\u4f5c\u308a\u307e\u3059\u3002\u5b9f\u306f\u7701\u7565\u3067\u304d\u307e\u3059\u304c\u3001\u3055\u307e\u3056\u307e\u306a\u5024\u304c\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u306e\u307e\u307e\u306b\u306a\u308b\u306e\u3067\u4e00\u822c\u7684\u306b\u5229\u7528\u3057\u3066\u5404\u7a2e\u306e\u5024\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002figsize=(10,8)\u3068\u6307\u5b9a\u3059\u308b\u3053\u3068\u3067\u3001\u30b0\u30e9\u30d5\u3092\u63cf\u304f\u524d\u306e\u30b0\u30e9\u30d5\u306e\u5927\u304d\u3055\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\r\n<p>\u6700\u5f8c\u306eplt.show()\u306f\u5b9f\u969b\u306b\u76ee\u3067\u898b\u308b\u305f\u3081\u306b\u5fc5\u8981\u306a\u547c\u3073\u51fa\u3057\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\r\n<p>C\u8a00\u8a9e\u3068gnuplot\u306e\u7d44\u307f\u5408\u308f\u305b\u3068\u306e\u5927\u304d\u306a\u9055\u3044\u306f\u3001\u4e00\u3064\u4e00\u3064\u306e\u8981\u7d20\u3092\u66f8\u304d\u51fa\u3057\u3066\u30b0\u30e9\u30d5\u5316\u3057\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001Python\u3067\u306f\u914d\u5217\u306b\u5168\u3066\u306e\u30c7\u30fc\u30bf\u3092\u5165\u308c\u3066\u304b\u3089\u30b0\u30e9\u30d5\u3092\u66f8\u304f\u5f62\u5f0f\u304c\u4e3b\u6d41\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\r\n<p>\u6b21\u56de\u306f\u3001\u3088\u308a\u591a\u304f\u306e\u4f8b\u984c\u3068\u3001\u3044\u308d\u3044\u308d\u306aMatplotlib\u306b\u3088\u308b\u63cf\u753b\u3092\u5b66\u3073\u307e\u3059\u3002<\/p>\r\n<hr \/>\r\n<h2><span class=\"ez-toc-section\" id=\"%e7%a2%ba%e8%aa%8d%e5%95%8f%e9%a1%8c\"><\/span>\u78ba\u8a8d\u554f\u984c<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n<p>\u6b21\u56de\u4ee5\u964d\u306e\u5185\u5bb9\u3067\u306f\u3001\u8a08\u7b97\u6570\u5b66\u6f14\u7fd2\u3067\u89e3\u3044\u305f\u4ee5\u4e0b\u306e\u554f\u984c\u306b\u3064\u3044\u3066\u3001\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u3092\u7406\u89e3\u3057\u3066\u3044\u308b\u3053\u3068\u304c\u671b\u307e\u3057\u3044\u3002<\/p>\r\n<h3 style=\"padding-left: 30px;\"><span class=\"ez-toc-section\" id=\"%e5%95%8f%e9%a1%8c1\"><\/span><b><u>\u554f\u984c1<\/u><\/b><span class=\"ez-toc-section-end\"><\/span><\/h3>\r\n<p style=\"padding-left: 30px;\">100\u4ee5\u4e0b\u306e\u5947\u6570\u306e\u3046\u30613\u306e\u500d\u6570\u3067\u30827\u306e\u500d\u6570\u3067\u3082<b><u>\u7121\u3044<\/u><\/b>\u3082\u306e\u3092\u5168\u3066\u6c42\u3081\u3001 \u305d\u308c\u3089\u3092\u753b\u9762\u306b\u8868\u793a\u3057\u3001\u304b\u3064\u3001\u305d\u308c\u3089\u306e\u548c\u3082\u753b\u9762\u306b\u8868\u793a\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u6210\u305b\u3088\u3002<\/p>\r\n<h3 style=\"padding-left: 30px;\"><span class=\"ez-toc-section\" id=\"%e5%95%8f%e9%a1%8c2\"><\/span><b><u>\u554f\u984c2 <\/u><\/b><span class=\"ez-toc-section-end\"><\/span><\/h3>\r\n<p style=\"padding-left: 30px;\">\u30ea\u30b9\u30c8\u307e\u305f\u306fArray\u3092\u5229\u7528\u3057\u3066\u3001\u4e8c\u3064\u306e10\u6b21\u5143\u30d9\u30af\u30c8\u30eb<b>u<\/b>, <b>v<\/b> \u306e\u548c\u3001\u5dee\u3001\u5185\u7a4d\u3092\u6c42\u3081\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u6210\u305b\u3088\u3002<\/p>\r\n<h3 style=\"padding-left: 30px;\"><span class=\"ez-toc-section\" id=\"%e5%95%8f%e9%a1%8c3\"><\/span><b><u>\u554f\u984c3 <\/u><\/b><span class=\"ez-toc-section-end\"><\/span><\/h3>\r\n<p style=\"padding-left: 30px;\">\u6b21\u306e\u5e38\u5fae\u5206\u65b9\u7a0b\u5f0f\u306e\u521d\u671f\u5024\u554f\u984c<p class=\"ql-center-displayed-equation\" style=\"line-height: 36px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wordpress\/wp-content\/ql-cache\/quicklatex.com-4d9ec5732d0d8ec221af162554ec1ac1_l3.png\" height=\"36\" width=\"203\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#91;&#92;&#102;&#114;&#97;&#99;&#123;&#100;&#121;&#125;&#123;&#100;&#116;&#125;&#32;&#61;&#32;&#45;&#121;&#43;&#92;&#115;&#105;&#110;&#40;&#116;&#41;&#44;&#12288;&#121;&#40;&#48;&#41;&#32;&#61;&#32;&#49;&#92;&#93;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>\u3092\u30aa\u30a4\u30e9\u30fc\u6cd5\u3092\u7528\u3044\u3066\u6570\u5024\u7684\u306b\u89e3\u3044\u3066\u30b0\u30e9\u30d5\u5316\u305b\u3088\u3002 \u6642\u523b<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wordpress\/wp-content\/ql-cache\/quicklatex.com-b0fed62a4569b03bc73b11aab308fa52_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#36;&#48;&#32;&#92;&#108;&#101;&#32;&#116;&#32;&#92;&#108;&#101;&#32;&#50;&#48;&#36;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"82\" style=\"vertical-align: -3px;\"\/>\u306e\u7bc4\u56f2\u3092\u6642\u9593\u523b\u307f\u5e450.001\uff08\uff1d\u6642\u9593\u523b\u307f\u657020001\u3067\u7b49\u5206\u5272\uff09\u300150\u30b9\u30c6\u30c3\u30d7\u6bce\u306b\u5024\u3092\u8868\u793a\u3002\uff08Python\u3067\u306e\u63cf\u753b\u306b\u95a2\u3057\u3066\u306f\u6b21\u56de\u4ee5\u964d\u884c\u3046\u306e\u3067\u3001\u7d50\u679c\u306e\u51fa\u529b\u307e\u3067\u3067\u304d\u308c\u3070\u826f\u3044\u3002\uff09<\/p>\r\n<p>\u6628\u5e74\u5ea6\u306e<a href=\"https:\/\/wp.me\/PaSLRw-rh\" target=\"_blank\" rel=\"noopener noreferrer\">\u8a08\u7b97\u6570\u5b66\u6f14\u7fd2\u306e\u30db\u30fc\u30e0\u30da\u30fc\u30b8<\/a>\u306a\u3069\u53c2\u7167\u3057\u3001\u9069\u5b9c\u5fa9\u7fd2\u3057\u3066\u304f\u3060\u3055\u3044\u3002 \uff08\u3053\u306e\u6f14\u7fd2\u3067\u306f\u3001\u4e0a\u8a18\u554f\u984c\u7a0b\u5ea6\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306f\u3067\u304d\u308b\u3082\u306e\u3068\u3057\u3066\u6f14\u7fd2\u3092\u884c\u3044\u307e\u3059\u3002\u591a\u5c11\u306e\u5fa9\u7fd2\u306f\u3057\u307e\u3059\u304c\u3002\uff09<\/p>\r\n<hr \/>\r\n<p align=\"center\">\u00a0<\/p>\r\n<h4 style=\"padding-left: 30px;\"><span class=\"ez-toc-section\" id=\"i\"><\/span>\u00a0<span class=\"ez-toc-section-end\"><\/span><\/h4>","protected":false},"excerpt":{"rendered":"<p>\u7b2c\uff11\u30fb\uff12\u56de\uff08\u7b2c\uff11\u9031\uff09 \u306f\u3058\u3081\u306b \u8a08\u7b97\u6570\u7406A\u6f14\u7fd2\u3067\u306f\u3001\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3068\u3057\u3066Python\u3092\u7528\u3044\u307e\u3059\u3002 \u8a08\u7b97\u6570\u5b66\u6f14\u7fd2\u3067\u306f\u30b3\u30f3\u30d1\u30a4\u30eb\u3092\u5fc5\u8981\u3068\u3059\u308b\u8a00\u8a9e\u3067\u3042\u308bC\u8a00\u8a9e\u3092\u7528\u3044\u3066\u3044\u307e\u3057\u305f\u304c\u3001 \u672c\u8b1b\u7fa9\u3067\u306f\u30a4\u30f3\u30bf\u30d7\u30ea\u30bf\u8a00\u8a9e\u3068\u547c\u3070\u308c\u308bPyt &hellip; <a href=\"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/%e6%8e%88%e6%a5%ad%e8%b3%87%e6%96%99\/%e8%a8%88%e7%ae%97%e6%95%b0%e7%90%86a%e6%bc%94%e7%bf%92\/%e7%ac%ac1%e3%83%bb2%e5%9b%9e\/\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">\u8a08\u7b97\u6570\u7406A\u6f14\u7fd2\u7b2c1\u30fb2\u56de<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":2139,"menu_order":2,"comment_status":"closed","ping_status":"closed","template":"","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"jetpack_post_was_ever_published":false,"footnotes":""},"class_list":["post-2142","page","type-page","status-publish","hentry"],"aioseo_notices":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/PaSLRw-yy","_links":{"self":[{"href":"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wp-json\/wp\/v2\/pages\/2142","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wp-json\/wp\/v2\/comments?post=2142"}],"version-history":[{"count":93,"href":"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wp-json\/wp\/v2\/pages\/2142\/revisions"}],"predecessor-version":[{"id":3603,"href":"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wp-json\/wp\/v2\/pages\/2142\/revisions\/3603"}],"up":[{"embeddable":true,"href":"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wp-json\/wp\/v2\/pages\/2139"}],"wp:attachment":[{"href":"https:\/\/home.hiroshima-u.ac.jp\/~mafujii\/wp-json\/wp\/v2\/media?parent=2142"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}