{"id":4371,"date":"2018-06-18T17:29:24","date_gmt":"2018-06-18T08:29:24","guid":{"rendered":"http:\/\/www.code-magagine.com\/?p=4371"},"modified":"2023-05-27T21:52:09","modified_gmt":"2023-05-27T12:52:09","slug":"%e3%80%90python%e3%80%91%e5%af%be%e8%a9%b1%e5%ae%9f%e8%a1%8c%e3%83%a2%e3%83%bc%e3%83%89repl%e3%82%92%e4%bd%bf%e3%81%86%e3%80%82","status":"publish","type":"post","link":"http:\/\/www.code-magagine.com\/?p=4371","title":{"rendered":"\u3010Python\u3011\u5bfe\u8a71\u5b9f\u884c\u30e2\u30fc\u30c9(REPL)\u3002\u958b\u767a\u74b0\u5883(PyCharm\u3001IDLE\u306a\u3069)"},"content":{"rendered":"<h2>REPL\u3068\u306f\uff1f<\/h2>\n<p>Python\u3067\u4f7f\u3046\u3053\u3068\u304c\u3067\u304d\u308b<span style=\"color: #ff0000;\"><strong>\u5bfe\u8a71\u5b9f\u884c\u30e2\u30fc\u30c9<\/strong><\/span>\u306e\u3053\u3068\u3067\u30011\u884c\u5b9f\u884c\u3059\u308b\u305f\u3073\u306b\u7d50\u679c\u3092\u898b\u308b\u3053\u3068\u304c\u3067\u304d\u3001\u52d5\u4f5c\u78ba\u8a8d\u306b\u306f\u975e\u5e38\u306b\u90fd\u5408\u304c\u826f\u3044\u3067\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001<span style=\"color: #ff0000;\"><strong>\u6570\u5f0f\u3092\u5165\u529b\u3059\u308b\u3053\u3068\u3067\u3001\u624b\u8efd\u306b\u96fb\u5353\u3068\u3057\u3066\u3082\u4f7f\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/strong><\/span><\/p>\n<h2>REPL\u306e\u4f7f\u3044\u65b9<\/h2>\n<h3>REPL\u306e\u8d77\u52d5\u65b9\u6cd5<\/h3>\n<p>\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u3092\u8d77\u52d5\u3057\u3066\u3001Python\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u79fb\u52d5\u3057\u3066\u3001python\u3068\u5165\u529b\u3059\u308c\u3070\u8d77\u52d5\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-4374\" src=\"http:\/\/www.code-magagine.com\/wp-content\/uploads\/2018\/06\/REPL.png\" alt=\"\" width=\"642\" height=\"104\" srcset=\"http:\/\/www.code-magagine.com\/wp-content\/uploads\/2018\/06\/REPL.png 642w, http:\/\/www.code-magagine.com\/wp-content\/uploads\/2018\/06\/REPL-300x49.png 300w\" sizes=\"(max-width: 642px) 100vw, 642px\" \/><\/p>\n<h3>REPL\u306e\u505c\u6b62\u65b9\u6cd5<\/h3>\n<p>\u4e0b\u8a18\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5165\u529b\u3059\u308b\u3053\u3068\u3067\u3001\u505c\u6b62\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true \">quit()<\/pre>\n<h2>PyCharm<\/h2>\n<p>Python\u306e\u672c\u683c\u7684\u306a\u7d71\u5408\u958b\u767a\u74b0\u5883\u3067\u3059\u3002<\/p>\n<p><span style=\"color: #ff0000;\"><strong>\u57fa\u672c\u306f\u6709\u511f<\/strong><\/span>\u306b\u306a\u308a\u307e\u3059\u304c\u3001\u6a5f\u80fd\u3092\u524a\u3063\u305f\u7121\u511f\u7248\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n<h3>\u4ee3\u8868\u7684\u306a\u6a5f\u80fd<\/h3>\n<p>IDLE\u306b\u6bd4\u3079\u3066\u975e\u5e38\u306b\u6a5f\u80fd\u304c\u591a\u3044\u3067\u3059\u3002<\/p>\n<ul>\n<li>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u5358\u4f4d\u306e\u7ba1\u7406\u6a5f\u80fd<\/li>\n<li>\u30b3\u30fc\u30c9\u88dc\u5b8c\u6a5f\u80fd<\/li>\n<li>\u30ea\u30d5\u30a1\u30af\u30bf\u30ea\u30f3\u30b0\u6a5f\u80fd\uff08\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u5185\u306e\u5909\u6570\u3001\u30af\u30e9\u30b9\u540d\u3092\u4e00\u62ec\u7f6e\u63db\u3067\u304d\u308b\u3002\uff09<\/li>\n<li>\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u30c4\u30fc\u30eb\u3068\u306e\u9023\u643a\u6a5f\u80fd<\/li>\n<\/ul>\n<h2>IDLE<\/h2>\n<p>Python\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u969b\u306b\u3001\u6a19\u6e96\u3067\u4ed8\u3044\u3066\u304f\u308b\u7121\u511f\u958b\u767a\u30c4\u30fc\u30eb\u3067\u3059\u3002PyCharm\u306e\u3088\u3046\u306a\u9ad8\u6a5f\u80fd\u30a8\u30c7\u30a3\u30bf\u3092\u4f7f\u3046\u524d\u306bIDLE\u3092\u4f7f\u3063\u3066\u307e\u305a\u306f\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u306b\u6163\u308c\u308b\u306e\u3082\u826f\u3044\u304b\u3082\u3057\u308c\u306a\u3044\u3067\u3059\u3002\uff08PyCharm\u306f\u9ad8\u6a5f\u80fd\u3059\u304e\u3066\u307e\u305a\u4f7f\u3044\u65b9\u3092\u899a\u3048\u308b\u306e\u304c\u5927\u5909\u306a\u306e\u3067\uff09<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-4380\" src=\"http:\/\/www.code-magagine.com\/wp-content\/uploads\/2018\/06\/IDLE2.png\" alt=\"\" width=\"479\" height=\"164\" srcset=\"http:\/\/www.code-magagine.com\/wp-content\/uploads\/2018\/06\/IDLE2.png 479w, http:\/\/www.code-magagine.com\/wp-content\/uploads\/2018\/06\/IDLE2-300x103.png 300w\" sizes=\"(max-width: 479px) 100vw, 479px\" \/><\/p>\n<p>Python\u306eGUI\u30c4\u30fc\u30eb\u30ad\u30c3\u30c8\u3067\u3042\u308b<span style=\"color: #ff0000;\"><strong>\u300ctkinter\u300d<\/strong><\/span>\u3092\u4f7f\u3063\u3066\u4f5c\u3089\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u624b\u8efd\u306b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3055\u305b\u308b\u3053\u3068\u3082\u3067\u304d\u308b\u306e\u3067\u3001\u6700\u521d\u306f\u975e\u5e38\u306b\u304a\u3059\u3059\u3081\u3067\u3059\u3002<\/p>\n<h3>\u6a5f\u80fd<\/h3>\n<ul>\n<li>\u30b3\u30fc\u30c9\u306e\u30cf\u30a4\u30e9\u30a4\u30c8<\/li>\n<li>\u81ea\u52d5\u88dc\u5b8c<\/li>\n<li>\u81ea\u52d5\u30a4\u30f3\u30c7\u30f3\u30c8<\/li>\n<li>\u30c7\u30d0\u30c3\u30af\uff08\u30b9\u30c6\u30c3\u30d7\u5b9f\u884c\uff09<\/li>\n<li>\u30b3\u30fc\u30eb\u30b9\u30bf\u30c3\u30af\u306e\u53ef\u8996\u5316<\/li>\n<\/ul>\n<h2>VSCode<\/h2>\n<p>\u6628\u4eca\u306e\u958b\u767a\u3067\u306f\u4e3b\u6d41\u306e\u30a8\u30c7\u30a3\u30bf\u3060\u304c\u3001\u6b63\u76f4Python\u306e\u958b\u767a\u3060\u3051\u3092\u8003\u3048\u308b\u306a\u3089Pycharm\u306e\u65b9\u304c\u9ad8\u6a5f\u80fd\u3067\u3059\u3002\uff08\u4f8b\u3048\u3070\u3001\u30af\u30e9\u30b9\u306e\u7d99\u627f\u3067\u5b9f\u88c5\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u62bd\u8c61\u30e1\u30bd\u30c3\u30c9\u3092\u5168\u3066\u30b9\u30bf\u30d6\u3067\u62bd\u51fa\u3059\u308b\u306a\u3069\uff09<\/p>\n<p>\u305f\u3060\u3001Pycharm\u306f\u7121\u6599\u7248\u3060\u3068\u304b\u306a\u308a\u6a5f\u80fd\u304c\u5236\u9650\u3055\u308c\u308b\u306e\u3067VSCode\u3067\u3082\u5341\u5206\u306a\u6a5f\u80fd\u3092\u8a87\u3063\u3066\u304a\u308a\u4f7f\u7528\u3059\u308b\u306e\u306f\u30a2\u30ea\u3060\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u5f8c\u306f\u3001VSCode\u3060\u3063\u305f\u3089JavaScript\u958b\u767a\u3084Golang\u306e\u958b\u767a\u3067\u3082\u4e00\u822c\u7684\u306a\u30a8\u30c7\u30a3\u30bf\u3067\u3059\u3057\u306d\u3002<\/p>\n<h2>Atom<\/h2>\n<p>\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u306e\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u3067\u3001\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u5c0e\u5165\u3059\u308b\u3053\u3068\u3067\u7c21\u5358\u306b\u62e1\u5f35\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>\u6a5f\u80fd<\/h3>\n<ul>\n<li>Python\u306e\u30b3\u30fc\u30c9\u3092\u30cf\u30a4\u30e9\u30a4\u30c8\u3059\u308b\u6a5f\u80fd<\/li>\n<li>\u7c21\u5358\u306a\u30b3\u30fc\u30c9\u88dc\u5b8c<\/li>\n<li>\u69d8\u3005\u306a\u30d7\u30e9\u30b0\u30a4\u30f3\u304c\u3042\u308a\u3001\u5c0e\u5165\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002<\/li>\n<\/ul>\n<h2>Spyder<\/h2>\n<p>Anaconda\uff08Python\u306e\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30c8\uff09\u3067\u4ed8\u5c5e\u3057\u3066\u3044\u308b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u3059\u3002<\/p>\n<p>\u4e0b\u8a18\u306e\u8a18\u4e8b\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"36a1gtOJjh\"><p><a href=\"http:\/\/www.code-magagine.com\/?p=4636\">\u3010Python\u3011\u300cAnaconda\u300d\u3067\u300cDjango\u300d\u306e\u958b\u767a\u74b0\u5883\u3092\u4f5c\u308b\u3002<\/a><\/p><\/blockquote>\n<p><iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" src=\"http:\/\/www.code-magagine.com\/?p=4636&#038;embed=true#?secret=36a1gtOJjh\" data-secret=\"36a1gtOJjh\" width=\"500\" height=\"282\" title=\"&#8220;\u3010Python\u3011\u300cAnaconda\u300d\u3067\u300cDjango\u300d\u306e\u958b\u767a\u74b0\u5883\u3092\u4f5c\u308b\u3002&#8221; &#8212; \u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30de\u30ac\u30b8\u30f3\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<p>\u4e0b\u8a18\u306e\u8a18\u4e8b\u3067\u4f7f\u3044\u65b9\u3092\u3054\u7d39\u4ecb\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"smMDW8fbs0\"><p><a href=\"http:\/\/www.code-magagine.com\/?p=4661\">\u3010Python\u3011\u300cDjango\u300d\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3057\u3066\u3001\u8d77\u52d5\u3057\u3066\u307f\u308b\u3002<\/a><\/p><\/blockquote>\n<p><iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" src=\"http:\/\/www.code-magagine.com\/?p=4661&#038;embed=true#?secret=smMDW8fbs0\" data-secret=\"smMDW8fbs0\" width=\"500\" height=\"282\" title=\"&#8220;\u3010Python\u3011\u300cDjango\u300d\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3057\u3066\u3001\u8d77\u52d5\u3057\u3066\u307f\u308b\u3002&#8221; &#8212; \u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30de\u30ac\u30b8\u30f3\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"REPL\u3068\u306f\uff1f Python\u3067\u4f7f\u3046\u3053\u3068\u304c\u3067\u304d\u308b\u5bfe\u8a71\u5b9f\u884c\u30e2\u30fc\u30c9\u306e\u3053\u3068\u3067\u30011\u884c\u5b9f\u884c\u3059\u308b\u305f\u3073\u306b\u7d50\u679c\u3092\u898b\u308b\u3053\u3068\u304c\u3067\u304d\u3001\u52d5\u4f5c\u78ba\u8a8d\u306b\u306f\u975e\u5e38\u306b\u90fd\u5408\u304c\u826f\u3044\u3067\u3059\u3002 \u307e\u305f\u3001\u6570\u5f0f\u3092\u5165\u529b\u3059\u308b\u3053\u3068\u3067\u3001\u624b\u8efd\u306b\u96fb\u5353\u3068\u3057\u3066\u3082\u4f7f\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 REP [&hellip;]","protected":false},"author":1,"featured_media":4420,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[47],"tags":[],"_links":{"self":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/4371"}],"collection":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4371"}],"version-history":[{"count":7,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/4371\/revisions"}],"predecessor-version":[{"id":20414,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/4371\/revisions\/20414"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/media\/4420"}],"wp:attachment":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4371"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4371"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4371"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}