{"id":416,"date":"2018-08-06T09:18:53","date_gmt":"2018-08-06T00:18:53","guid":{"rendered":"https:\/\/python-introduction.com\/?p=416"},"modified":"2018-08-06T10:20:27","modified_gmt":"2018-08-06T01:20:27","slug":"%e3%80%90python%e5%85%a5%e9%96%80%e3%80%91%e5%a4%89%e6%95%b0%e3%81%ae%e4%bb%a3%e5%85%a5%e3%81%ab%e3%81%a4%e3%81%84%e3%81%a6%e3%82%8f%e3%81%8b%e3%82%8a%e3%82%84%e3%81%99%e3%81%8f%e8%a7%a3%e8%aa%ac","status":"publish","type":"post","link":"https:\/\/python-introduction.com\/?p=416","title":{"rendered":"\u3010Python\u5165\u9580\u3011\u5909\u6570\u306e\u4ee3\u5165\u306b\u3064\u3044\u3066\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac"},"content":{"rendered":"<p>\u3053\u306e\u8a18\u4e8b\u3067\u306fPython\u306b\u304a\u3051\u308b\u5909\u6570\u306e\u4ee3\u5165\u306b\u3064\u3044\u3066\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u3001\u5909\u6570\u306b\u3064\u3044\u3066\u306f<br \/>\n\u3053\u3061\u3089\u306e\u8a18\u4e8b\u3092\u3042\u308f\u305b\u3066\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<br \/>\n\u21d2<a href=\"https:\/\/python-introduction.com\/?p=145\" target=\"blank\">Python\u306e\u5909\u6570\u5ba3\u8a00\u3067\u6ce8\u610f\u3059\u3079\u304d\u3053\u3068<\/a><\/p>\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306fJupyter Notebook\u3092\u4f7f\u3063\u3066\u89e3\u8aac\u3057\u307e\u3059\u3002<br \/>\n\u21d2<a href=\"https:\/\/python-introduction.com\/?p=359\" target=\"blank\">Jupyter Notebook\u306e\u4f7f\u3044\u65b9<\/a><\/p>\n<div id=\"toc_container\" class=\"no_bullets\"><p class=\"toc_title\">\u76ee\u6b21<\/p><ul class=\"toc_list\"><li><a href=\"#Python\"><span class=\"toc_number toc_depth_1\">1<\/span> \u3010Python\u5165\u9580\u3011\u5909\u6570\u3092\u4ee3\u5165\u3059\u308b\u3068\u306f\u3069\u3046\u3044\u3046\u610f\u5473\uff1f<\/a><\/li><li><a href=\"#Python-2\"><span class=\"toc_number toc_depth_1\">2<\/span> \u3010Python\u5165\u9580\u3011\u5909\u6570\u306b\u4ee3\u5165\u3059\u308b\u4f8b\u984c<\/a><\/li><li><a href=\"#Python-3\"><span class=\"toc_number toc_depth_1\">3<\/span> \u3010Python\u5165\u9580\u3011\u5909\u6570\u540d\u306e\u30eb\u30fc\u30eb<\/a><\/li><\/ul><\/div>\n<h2><span id=\"Python\">\u3010Python\u5165\u9580\u3011\u5909\u6570\u3092\u4ee3\u5165\u3059\u308b\u3068\u306f\u3069\u3046\u3044\u3046\u610f\u5473\uff1f<\/span><\/h2>\n<p>\u307e\u305a\u3053\u3061\u3089\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">x = 8\r\ny = 4\r\n\r\nprint(x + y)<\/pre>\n<p>\u4e0a\u8a18\u3092\u5b9f\u884c\u3059\u308b\u3068\u3053\u3046\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-422\" src=\"https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/08\/dainyuukotae805.jpg\" alt=\"\u4ee3\u5165\u3057\u305f\u7b54\u3048\" width=\"475\" height=\"122\" srcset=\"https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/08\/dainyuukotae805.jpg 475w, https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/08\/dainyuukotae805-300x77.jpg 300w\" sizes=\"(max-width: 475px) 100vw, 475px\" \/><\/p>\n<p>\u307e\u305a\u5909\u6570\u3068\u306f\u4e0a\u8a18\u4f8b\u3067\u3044\u304f\u3068<br \/>\n\u300ex\u300f\u3084\u300ey\u300f\u306e\u3053\u3068\u3092\u3044\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u3057\u3066<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">x = 8<\/pre>\n<p>\u3068\u3042\u308a\u307e\u3059\u306d\u3002<\/p>\n<p>\u3067\u3001<span class=\"yellowbg\">\u4ee3\u5165\u3068\u306f<br \/>\n\u5de6\u5074\u306e\u5909\u6570x\u306b\u53f3\u5074\u306e\u5024\uff08\u3053\u3053\u3067\u306f8\uff09\u3092\u5165\u308c\u308b\u3053\u3068<\/span>\u3092\u3044\u3044\u307e\u3059\u3002<br \/>\n\u5909\u6570\u3068\u306f\u6570\u5b57\u3068\u304b\u6587\u5b57\u5217\u3092\u5165\u308c\u308b\u7bb1\u306e\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>\u5909\u6570\u3068\u3044\u3046\u7bb1\u306e\u4e2d\u306b\u6570\u5b57\u3084\u6587\u5b57\u3092\u5165\u308c\u308b\u884c\u70ba\u3092\u4ee3\u5165\u3059\u308b\u3068\u3044\u3046\u308f\u3051\u3067\u3059\u306d\u3002<\/p>\n<p>\u305d\u3057\u3066x\u3084y\u306b\u4ee3\u5165\u3057\u305f\u5024\u3092<br \/>\nx+y\u3068\u3044\u3046\u5f62\u3067\u8a08\u7b97\u3057\u3001print\u3092\u4f7f\u3063\u3066\u7b54\u3048\u3092\u51fa\u3057\u307e\u3059\u3002<\/p>\n<p>x\u306b\u306f8\u304cy\u306b\u306f4\u3068\u3044\u3046\u6570\u5b57\u304c\u5165\u3063\u3066\u3044\u308b\uff08\u4ee3\u5165\u3055\u308c\u3066\u3044\u308b\uff09\u306e\u3067<br \/>\nx+y=12\u3068\u306a\u308a\u3001\u305d\u306e12\u3068\u3044\u3046\u6570\u5b57\u304cprint\u306b\u3088\u3063\u3066<br \/>\n\u753b\u9762\u306b\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u308f\u3051\u3067\u3059\u306d\u3002<\/p>\n<h2><span id=\"Python-2\">\u3010Python\u5165\u9580\u3011\u5909\u6570\u306b\u4ee3\u5165\u3059\u308b\u4f8b\u984c<\/span><\/h2>\n<p>\u5909\u6570\u306b\u4ee3\u5165\u3059\u308b\u3068\u3044\u3046\u610f\u5473\u304c\u5c11\u3057\u305a\u3064\u5206\u304b\u3063\u3066\u304d\u305f\u3053\u3068\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n\u3053\u3053\u3067\u4f8b\u984c\u3092\u89e3\u304d\u306a\u304c\u3089<br \/>\n\u3055\u3089\u306b\u5909\u6570\u306e\u4ee3\u5165\u306b\u3064\u3044\u3066\u52c9\u5f37\u3057\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\"># \u4f8b\u984c1\r\nb = 8\r\nb = 9\r\n\r\nprint(b)<\/pre>\n<p>\u4e0a\u8a18\u306e\u5834\u5408\u3001\u5b9f\u884c\u3059\u308b\u3068<br \/>\n\u3069\u3046\u3044\u3046\u6570\u5b57\u304c\u8868\u793a\u3055\u308c\u308b\u3067\u3057\u3087\u3046\uff1f<br \/>\n\u305d\u308c\u3068\u3082\u30a8\u30e9\u30fc\u304c\u51fa\u308b\u3067\u3057\u3087\u3046\u304b\uff1f<\/p>\n<p>\u3061\u306a\u307f\u306b\u300e# \u4f8b\u984c1\u300f\u306f\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3068\u3044\u3063\u3066<br \/>\n\u5b9f\u884c\u3057\u3066\u3082\u7121\u8996\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u8a73\u3057\u304f\u306f\u3053\u3061\u3089\u306e\u8a18\u4e8b\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<br \/>\n<div class=\"linkcard\"><table border=\"1\" cellspacing=\"0\" cellpadding=\"4\"><tbody><\/tr><tr><td>\u3053\u306e\u8a18\u4e8b\u3067\u306fPython\u3067\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3059\u3002\u305d\u3057\u3066\u3001\u5229\u7528\u3057\u3066\u3044\u308b\u306e\u306fJupyter Notebook\u3067\u3059\u3002Jupyter Notebook\u306a\u3089\u30d6\u30e9\u30a6\u30b6\u4e0a\u3067\u7c21\u5358\u306bPython\u306e\u52c9\u5f37\u304c\u3067\u304d\u307e\u3059\u3088\u3002\u3082\u3057Jupyter Notebook\u3092\u4f7f\u3063\u3066\u307f\u305f\u3044\u3068\u611f\u3058\u305f\u5834\u5408\u306b\u306f\u5148\u306bAnaconda\u3092\u30a4\u30f3\u30b9\u30c8\u30fc...<br><a class=\"no_icon\" href=\"https:\/\/python-introduction.com\/?p=398\">Python\u3067\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3059\u308b\u65b9\u6cd5<\/a> - python\u5165\u9580\u30c9\u30c3\u30c8\u30b3\u30e0<\/td><\/tr><\/tbody><\/table><\/div><\/p>\n<p>\u8a71\u3092\u5143\u306b\u623b\u3057\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-425\" src=\"https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/08\/reidaiitinokotae805.jpg\" alt=\"\u4f8b\u984c1\" width=\"475\" height=\"122\" srcset=\"https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/08\/reidaiitinokotae805.jpg 475w, https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/08\/reidaiitinokotae805-300x77.jpg 300w\" sizes=\"(max-width: 475px) 100vw, 475px\" \/><\/p>\n<p><span class=\"redb16\">\u4f8b\u984c\uff11\u306e\u7b54\u3048\u306f\u300e9\u300f<\/span>\u3067\u3059\u3002<\/p>\n<p>\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u4e0a\u304b\u3089\u9806\u756a\u306b\u8aad\u307f\u53d6\u3089\u308c\u3066\u3044\u304d\u307e\u3059\u3002<br \/>\n\u3060\u304b\u3089\u3001\u6700\u521d\u3001b\u306b8\u304c\u4ee3\u5165\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u3067\u3082\u3001\u6b21\u3001b\u306b9\u304c\u4ee3\u5165\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>python\u306b\u9650\u3063\u305f\u8a71\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u304c<br \/>\n<span class=\"yellowbg\">\u540c\u3058\u5909\u6570\u306b2\u56de\u4ee5\u4e0a\u6570\u5b57\u3084\u6587\u5b57\u304c\u4ee3\u5165\u3055\u308c\u308b\u3068<br \/>\n\u4e00\u756a\u6700\u5f8c\u306e\u6570\u5b57\u3084\u6587\u5b57\u306b\u4e0a\u66f8\u304d\u3055\u308c\u3066\u3057\u307e\u3046<\/span>\u3093\u3067\u3059\u3002<\/p>\n<p>\u3060\u304b\u3089\u6700\u5f8c\u306bb\u306b\u4ee3\u5165\u3055\u308c\u305f9\u304c\u8868\u793a\u3055\u308c\u305f\u3093\u3067\u3059\u3002<\/p>\n<p>\u6b21\u3001\u4f8b\u984c2\u306b\u884c\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\"># \u4f8b\u984c2\r\nc = '\u5909\u6570\u306b\u306f'\r\nd = &quot;\u6587\u5b57\u5217\u3092\u5165\u308c\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3088&quot;\r\nprint(c + d)<\/pre>\n<p>\u5909\u6570\u306b\u4ee3\u5165\u3067\u304d\u308b\u306e\u306f\u6570\u5b57\u3060\u3051\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<br \/>\n\u6587\u5b57\u5217\u3082\u4ee3\u5165\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u6587\u5b57\u5217\u3068\u306f\u4f8b\u984c2\u3067\u6271\u3063\u3066\u3044\u308b\u300e\u5909\u6570\u306b\u306f\u300f\u3068\u304b<br \/>\n\u300e\u6587\u5b57\u5217\u3092\u5165\u308c\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u300f\u306e\u90e8\u5206\u3067\u3059\u3002<\/p>\n<p>\u4f8b\u984c2\u3092\u5b9f\u884c\u3059\u308b\u3068<br \/>\n<img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-429\" src=\"https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/08\/mojiretushnn804.jpg\" alt=\"\u6587\u5b57\u5217\u3092\u4ee3\u5165\" width=\"475\" height=\"122\" srcset=\"https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/08\/mojiretushnn804.jpg 475w, https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/08\/mojiretushnn804-300x77.jpg 300w\" sizes=\"(max-width: 475px) 100vw, 475px\" \/><\/p>\n<p>\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3067\u3001\u6587\u5b57\u5217\u3092\u4ee3\u5165\u3059\u308b\u3068\u304d\u306b\u306f'(\u30b7\u30f3\u30b0\u30eb\u30af\u30aa\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3\uff09\u304b<br \/>\n&#8220;\uff08\u30c0\u30d6\u30eb\u30af\u30aa\u30fc\u30c6\u30fc\u30b7\u30e7\u30f3\uff09\u3067\u4f8b\u984c2\u306e\u3088\u3046\u306b\u56f2\u3093\u3067\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u305d\u308c\u304b\u3089print(c + d)\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u306d\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">c + d<\/pre>\n<p>\u3068\u3059\u308b\u3053\u3068\u3067\u3001\u5909\u6570c\u3068\u5909\u6570d\u306e\u6587\u5b57\u5217\u3092\u7d50\u5408\u3057\u3066<br \/>\n\u8868\u793a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2><span id=\"Python-3\">\u3010Python\u5165\u9580\u3011\u5909\u6570\u540d\u306e\u30eb\u30fc\u30eb<\/span><\/h2>\n<p>\u307e\u305a\u4f8b\u984c3\u3092\u3084\u3063\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\"># \u4f8b\u984c3\r\nohayou = '\u304a\u306f\u3088\u3046'\r\noyasumi = 23\r\nprint(ohayou)\r\nprint(oyasumi)<\/pre>\n<p>\u5b9f\u884c\u3059\u308b\u3068<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-431\" src=\"https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/08\/ohayouyo804.jpg\" alt=\"\u5909\u6570\u540d\" width=\"480\" height=\"167\" srcset=\"https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/08\/ohayouyo804.jpg 480w, https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/08\/ohayouyo804-300x104.jpg 300w\" sizes=\"(max-width: 480px) 100vw, 480px\" \/><\/p>\n<p>\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u5909\u6570\u540d\u3068\u306f\u4f8b\u984c3\u3067\u3044\u3046\u3068\u3053\u308d\u306e<br \/>\n\u300eohayou\u300f\u3068\u300eoyasumi\u300f\u306e\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>\u3067\u3001\u5909\u6570\u540d\u306f\u9069\u5f53\u306b\u3064\u3051\u3066\u3082\u3088\u3044\u306e\u3067\u3059\u304c<br \/>\n\u30eb\u30fc\u30eb\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p><span class=\"yellowbg\">\u30eb\u30fc\u30eb\u9055\u53cd\u306e\u5909\u6570\u540d\u306f\u30a8\u30e9\u30fc\u306e\u539f\u56e0\u306b\u306a\u308a\u307e\u3059\u3002<\/span><br \/>\n\u306a\u306e\u3067\u5fc5\u305a\u3001\u5909\u6570\u540d\u306e\u30eb\u30fc\u30eb\u3092\u77e5\u3063\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<div class=\"boxstyle01\">\n<p class=\"check08\"><span style=\"color: #ff0000;\">Python\u3067\u4f7f\u3048\u308b\u5909\u6570\u540d\u306e\u30eb\u30fc\u30eb\u3068\u3057\u3066<\/span><\/p>\n<p>1\uff0e\u6700\u521d\u306e\u6587\u5b57\u306f\u82f1\u6587\u5b57\u304b\u30a2\u30f3\u30c0\u30fc\u30d0\u30fc\u3057\u304b\u4f7f\u3048\u306a\u3044\uff08\u6570\u5b57\u306f\u4f7f\u3048\u306a\u3044\u3068\u3044\u3046\u610f\u5473\uff09<br \/>\n2\uff0e2\u6587\u5b57\u76ee\u4ee5\u964d\u306f\u6570\u5b57\u3082\u4f7f\u3048\u308b<br \/>\n3\uff0e\u4e88\u7d04\u8a9e\u3092\u5909\u6570\u540d\u306b\u4f7f\u7528\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u306a\u3044<br \/>\n4\uff0e\u5927\u6587\u5b57\uff08\u4f8b\uff1aD\uff09\u3068\u5c0f\u6587\u5b57\uff08\u4f8b\uff1ad\uff09\u306f\u533a\u5225\u3055\u308c\u307e\u3059<\/p>\n<\/div>\n<p>\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p class=\"check01\"><span style=\"color: #ff0000;\">\u5909\u6570\u540d\u30eb\u30fc\u30eb1\uff0e\u6700\u521d\u306e\u6587\u5b57\u306f\u82f1\u6587\u5b57\u304b\u30a2\u30f3\u30c0\u30fc\u30d0\u30fc\u3057\u304b\u4f7f\u3048\u306a\u3044\uff08\u6570\u5b57\u306f\u4f7f\u3048\u306a\u3044\u3068\u3044\u3046\u610f\u5473\uff09<\/span><\/p>\n<p>\u307e\u305a\u300e\u5909\u6570\u540d\u300f\u3067\u3059\u304b\u3089<br \/>\nx = 5<br \/>\n\u3068\u3042\u3063\u305f\u3068\u304d\u306b\u30015\u3067\u306f\u306a\u304f\u3066\u300ex\u300f\u306e\u8a71\u3092\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305f\u3068\u3048\u3070\u3001<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\"># \u4f8b\u984c4\r\n5x = 8\r\nprint(5x)<\/pre>\n<p>\u3068\u3044\u3046\u30b1\u30fc\u30b9\u3002<\/p>\n<p>\u4f8b\u984c4\u3092\u5b9f\u884c\u3059\u308b\u3068\u30a8\u30e9\u30fc\u304c\u51fa\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-433\" src=\"https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/08\/eroo2desruyo805.jpg\" alt=\"\u5909\u6570\u540d\" width=\"480\" height=\"167\" srcset=\"https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/08\/eroo2desruyo805.jpg 480w, https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/08\/eroo2desruyo805-300x104.jpg 300w\" sizes=\"(max-width: 480px) 100vw, 480px\" \/><\/p>\n<p>\u4f8b\u984c4\u3067\u3069\u3046\u3057\u3066\u30a8\u30e9\u30fc\u304c\u3067\u305f\u306e\u3067\u3057\u3087\u3046\uff1f<\/p>\n<p>\u7406\u7531\u306f\u7c21\u5358\u3002<\/p>\n<p>\u5909\u6570\u540d\u306e\u6700\u521d\u306e\u6587\u5b57\u304c\u6570\u5b57\u3060\u3063\u305f\u304b\u3089\u3067\u3059\u3002<br \/>\n\u5177\u4f53\u7684\u306b\u306f\u300e5x\u300f\u306e\u300e5\u300f\u304c\u6570\u5b57\u3060\u304b\u3089\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u3093\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\u30a8\u30e9\u30fc\u3092\u306a\u304f\u3059\u306b\u306f<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\"># \u4f8b\u984c4'\r\nx5 = 8\r\nprint(x5)<\/pre>\n<p>\u300e5x\u300f\u3092\u300ex5\u300f\u306b\u3059\u308c\u3070\u3088\u3044\u3067\u3059\u3002<br \/>\n\u5909\u6570\u540d\u306e2\u756a\u76ee\u4ee5\u964d\u306e\u6587\u5b57\u306b\u6570\u5b57\u304c\u5165\u3063\u3066\u3082\u30a8\u30e9\u30fc\u306f\u51fa\u307e\u305b\u3093\u3002<br \/>\n<span class=\"redb18\">\u3068\u306b\u304b\u304f\u5909\u6570\u540d\u306e\u6700\u521d\u306b\u6570\u5b57\u3092\u5165\u308c\u306a\u3044\u3088\u3046\u306b\u899a\u3048\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/span><\/p>\n<p class=\"check01\"><span style=\"color: #ff0000;\">\u5909\u6570\u540d\u30eb\u30fc\u30eb2\uff0e2\u6587\u5b57\u76ee\u4ee5\u964d\u306f\u6570\u5b57\u3082\u4f7f\u3048\u308b<\/span><\/p>\n<p>\u3053\u308c\u306f\u5148\u307b\u3069\u3082\u8a00\u3044\u307e\u3057\u305f\u306e\u3067\u3001\u5927\u4e08\u592b\u3067\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\"># \u4f8b\u984c5\r\nba_456ER = 65\r\nprint(ba_456ER)<\/pre>\n<p>\u4f8b\u984c5\u306e\u3088\u3046\u306b<span class=\"yellowbg\">\u5909\u6570\u540d\u30672\u6587\u5b57\u76ee\u4ee5\u964d\u306f<br \/>\n\u6570\u5b57\u3082OK\u3067\u3059\u3057\u3001_\uff08\u30a2\u30f3\u30c0\u30fc\u30d0\u30fc\uff09\u3082OK<\/span>\u3067\u3059\u3002<\/p>\n<p>\u5b9f\u884c\u3059\u308b\u3068<br \/>\n<img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-436\" src=\"https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/08\/anada805.jpg\" alt=\"\u5909\u6570\u540d\" width=\"472\" height=\"146\" srcset=\"https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/08\/anada805.jpg 472w, https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/08\/anada805-300x93.jpg 300w\" sizes=\"(max-width: 472px) 100vw, 472px\" \/><\/p>\n<p>\u3068\u304d\u3061\u3093\u3068\u300e65\u300f\u304c\u8868\u793a\u3055\u308c\u307e\u3057\u305f\u306d\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b_(\u30a2\u30f3\u30c0\u30fc\u30d0\u30fc\uff09\u306f\u8907\u6570\u306e\u5358\u8a9e\u3092\u9023\u7d50\u3055\u305b\u3066<br \/>\n\u5909\u6570\u540d\u3068\u3057\u3066\u4f7f\u3046\u3068\u304d\u306b\u3088\u304f\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<p>\u305f\u3068\u3048\u3070\u3001<br \/>\n\u300emji_retsu\u300f\u3002<br \/>\n\u6587\u5b57\u3068\u5217\u306e\u7d44\u307f\u5408\u308f\u305b\u3068\u3057\u3066\u9593\u306b_\uff08\u30a2\u30f3\u30c0\u30fc\u30d0\u30fc\uff09\u3092\u5165\u308c\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\u4ed6\u306b\u3082\u300eI_can_speak_Japanese\u300f\u3068\u304b\u3002<\/p>\n<p>\u3053\u3046\u3044\u3063\u305f\u611f\u3058\u3067_(\u30a2\u30f3\u30c0\u30fc\u30d0\u30fc\uff09\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u591a\u3044\u3067\u3059\u3002<\/p>\n<p>\u3067\u3059\u304c\u3001\u5225\u306b\u300esp_ea_k\u300f\u307f\u305f\u3044\u306b<br \/>\n\u9069\u5f53\u306b_\uff08\u30a2\u30f3\u30c0\u30fc\u30d0\u30fc\uff09\u3092\u3064\u3051\u3066\u3082\u30a8\u30e9\u30fc\u306f\u51fa\u307e\u305b\u3093\u3002<\/p>\n<p>\u305f\u3060\u3001\u30d7\u30ed\u30b0\u30e9\u30de\u30fc\u5074\u304c<br \/>\n\u610f\u5473\u3092\u8a8d\u8b58\u3057\u306b\u304f\u3044\u3060\u3051\u306e\u8a71\u3067\u3059\uff08\u82e6\u7b11\uff09\u3002<\/p>\n<p class=\"check08\"><span style=\"color: #ff0000;\">\u5909\u6570\u540d\u306e\u30eb\u30fc\u30eb3\uff0e\u4e88\u7d04\u8a9e\u3092\u5909\u6570\u540d\u306b\u4f7f\u7528\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u306a\u3044<\/span><\/p>\n<p>\u5909\u6570\u540d\u306b\u4e88\u7d04\u8a9e\u3092\u4f7f\u3046\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<p>\u4e88\u7d04\u8a9e\u3068\u306fPython\u306b\u3068\u3063\u3066\u7279\u5225\u306a\u610f\u5473\u3092\u6301\u3064\u8a00\u8449\u306e\u3053\u3068\u3092\u3044\u3044\u307e\u3059\u3002<br \/>\n\u305d\u3082\u305d\u3082\u4e88\u7d04\u8a9e\u3068\u3057\u3066Python\u306f\u8a8d\u8b58\u3057\u3066\u3044\u308b\u308f\u3051\u3067\u3059\u3002<\/p>\n<p>\u4e88\u7d04\u8a9e\u3068\u307e\u3063\u305f\u304f\u540c\u3058\u5358\u8a9e\u3092\u5909\u6570\u540d\u3068\u3057\u3066\u4f7f\u308f\u308c\u3066\u3082<br \/>\nPython\u306f\u3069\u3046\u3044\u3046\u610f\u5473\u306a\u306e\u304b\u5224\u65ad\u3067\u304d\u307e\u305b\u3093\u3002<br \/>\n\u3060\u304b\u3089\u3001\u5909\u6570\u540d\u306b\u4e88\u7d04\u8a9e\u3092\u4f7f\u3046\u3053\u3068\u306f\u3067\u304d\u306a\u3044\u3093\u3067\u3059\u3002<\/p>\n<p>\u4f8b\u3092\u898b\u305f\u307b\u3046\u304c\u308f\u304b\u308a\u3084\u3059\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p class=\"check03\"><span class=\"marker_kpink\">\u4e88\u7d04\u8a9e\u306e\u4f8b<\/span><\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\"># \u4f8b\u984c6\r\na = 5 % 3\r\n\r\nif a != 0:\r\n  print(&quot;\u5272\u308a\u5207\u308c\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u4f59\u308a\u306f&quot; + str(a) + &quot;\u3067\u3059\u3002&quot;)<\/pre>\n<p>\u4f8b\u984c6\u3067\u4e88\u7d04\u8a9e\u306f\u300eif\u300f\u304c\u8a72\u5f53\u3057\u307e\u3059\u3002<\/p>\n<p>\u300eif\u300f\u306f\u82f1\u8a9e\u306a\u3089\u300c\u3082\u3057\uff5e\u306a\u3089\u3070\u300d\u3068\u3044\u3046\u610f\u5473\u3067\u3059\u3002<br \/>\n\u3053\u3053\u3067\u306f\u305d\u308c\u304f\u3089\u3044\u306e\u9593\u9694\u3067OK\u3067\u3059\u3002<\/p>\n<p>\u305d\u3057\u3066\u300e5 % 3\u300f\u306f5\u00f73\u306e\u4f59\u308a\u3092\u610f\u5473\u3057\u307e\u3059\u3002<br \/>\n\u3067\u3001\u300eif a != 0:\u300f\u3067\u3082\u3057a\u304c0\u3067\u306a\u3044\u306a\u3089\u3068\u3044\u3046\u610f\u5473\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\uff15\u00f7\uff13\u306e\u4f59\u308a\u306f0\u3067\u306a\u3044\u306e\u3067\u3001\u4e0b\u306e\u884c\u306b\u79fb\u52d5\u3057\u307e\u3059\u3002<\/p>\n<p>\u7d50\u679c\u3001print\u6587\u3067\u7d50\u679c\u304c\u8868\u793a\u3055\u308c\u308b\u3068\u3044\u3046\u308f\u3051\u3067\u3059\u306d\u3002<\/p>\n<p>\u5b9f\u884c\u3059\u308b\u3068<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-438\" src=\"https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/08\/amaridaus805.jpg\" alt=\"if\u6587\" width=\"545\" height=\"162\" srcset=\"https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/08\/amaridaus805.jpg 545w, https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/08\/amaridaus805-300x89.jpg 300w\" sizes=\"(max-width: 545px) 100vw, 545px\" \/><\/p>\n<p>\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b%\u306a\u3069\u306e\u6570\u5024\u8a08\u7b97\u306b\u3064\u3044\u3066\u306f<br \/>\n\u3053\u3061\u3089\u306e\u8a18\u4e8b\u3067\u8a73\u3057\u304f\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<div class=\"linkcard\"><table border=\"1\" cellspacing=\"0\" cellpadding=\"4\"><tbody><\/tr><tr><td>\u4eca\u56de\u306fpython\u3067\u6570\u5024\u8a08\u7b97\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3059\u3002\u3010python\u5165\u9580\u3011\u7c21\u5358\u306a\u6570\u5024\u8a08\u7b97\u307e\u305a\u306f\u8db3\u3057\u7b97\u5f15\u304d\u7b97\u304b\u3089\u3084\u3063\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002print(50+32)print(50-23) \u4e0a\u8a18\u306e\u3088\u3046\u306a\u611f\u3058\u3067\u3001\u8db3\u3057\u7b97\u5f15\u304d\u7b97\u306f\u5c0f\u5b66\u6821\u3067\u3084\u308b\u3088\u3046\u306a\u8a08\u7b97\u5f0f\u3067\u3067\u304d\u307e\u3059\u3002\u5b9f\u884c\u3059\u308b\u3068\u5f53\u305f\u308a\u524d\u306e\u7d50\u679c\u304c\u8fd4\u3063\u3066...<br><a class=\"no_icon\" href=\"https:\/\/python-introduction.com\/?p=190\">python\u3067\u6570\u5024\u8a08\u7b97\u3059\u308b\u65b9\u6cd5<\/a> - python\u5165\u9580\u30c9\u30c3\u30c8\u30b3\u30e0<\/td><\/tr><\/tbody><\/table><\/div>\n<p>\u3067\u3001if\u306f\u4e88\u7d04\u8a9e\u3067\u3059\u3002<\/p>\n<p>if\u304c\u3042\u308b\u3068\u5373\u5ea7\u306bPython\u306f\u300c\u3082\u3057\uff5e\u306a\u3089\u3070\u300d\u3068\u8a8d\u8b58\u3057\u307e\u3059\u3002<br \/>\n\u3060\u304b\u3089\u5909\u6570\u540d\u3068\u3057\u3066Python\u306f\u8a8d\u8b58\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\"># \u4f8b\u984c7\r\nif = 5 % 3\r\nprint(if)<\/pre>\n<p>\u4f8b\u984c7\u306e\u3088\u3046\u306bif\u3092\u5909\u6570\u540d\u3068\u3057\u3066\u4f7f\u7528\u3059\u308b\u3068<br \/>\n\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-439\" src=\"https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/08\/henmsuu805.jpg\" alt=\"\u5909\u6570\u540d\u306b\u4e88\u7d04\u8a9e\u306f\u30c0\u30e1\" width=\"507\" height=\"191\" srcset=\"https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/08\/henmsuu805.jpg 507w, https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/08\/henmsuu805-300x113.jpg 300w\" sizes=\"(max-width: 507px) 100vw, 507px\" \/><\/p>\n<p>\u5909\u6570\u540d\u306b\u4e88\u7d04\u8a9e\u3092\u4f7f\u3046\u3068\u30a8\u30e9\u30fc\u304c\u51fa\u307e\u3059\u306d\u3002<\/p>\n<div class=\"boxstyle01\">\n<p class=\"check03\">Python\u306b\u306f\u4e88\u7d04\u8a9e\u3068\u3057\u3066\u4ed6\u306b\u3082<\/p>\n<p>and<br \/>\nas<br \/>\nassert<br \/>\nyield<br \/>\nclass<br \/>\nfor<br \/>\nfinally<br \/>\nlambda<br \/>\nnot<br \/>\nprint<br \/>\nraise<br \/>\nwith<br \/>\ntry<br \/>\nreturn<\/p>\n<\/div>\n<p>\u306a\u3069\u305f\u304f\u3055\u3093\u3042\u308a\u307e\u3059\u3002<br \/>\n\u4ed6\u306b\u3082\u3044\u3063\u3071\u3044\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3068\u306b\u304b\u304f\u9069\u5f53\u306a\u5909\u6570\u540d\u3092\u3064\u3051\u305f\u3064\u3082\u308a\u304c\u30a8\u30e9\u30fc\u304c\u3067\u308b\u306a\u3089<br \/>\n\u3082\u3057\u304b\u3057\u305f\u3089\u5076\u7136\u306b\u3082\u305d\u306e\u5909\u6570\u540d\u306f\u4e88\u7d04\u8a9e\u306b\u306a\u3063\u3066\u3044\u306a\u3044\u304b<br \/>\n\u691c\u7d22\u3059\u308b\u306a\u3069\u3057\u3066\u78ba\u8a8d\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u306d\u3002<\/p>\n<p class=\"check01\"><span style=\"color: #ff0000;\">\u5909\u6570\u540d\u306e\u30eb\u30fc\u30eb4\uff0e\u5927\u6587\u5b57\uff08\u4f8b\uff1aD\uff09\u3068\u5c0f\u6587\u5b57\uff08\u4f8b\uff1ad\uff09\u306f\u533a\u5225\u3055\u308c\u307e\u3059<\/span><\/p>\n<p>\u5909\u6570\u540d\u306e\u30eb\u30fc\u30eb4\u3064\u76ee\u3002<br \/>\n\u5927\u6587\u5b57\u3068\u5c0f\u6587\u5b57\u306f\u533a\u5225\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305f\u3068\u3048\u3070\u3001<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\"># \u4f8b\u984c8\r\nDDD = '\u3053\u3093\u306b\u3061\u306f'\r\nddd = '\u304a\u306f\u3088\u3046'\r\nprint(DDD)<\/pre>\n<p>\u4f8b\u984c8\u3092\u5b9f\u884c\u3059\u308b\u3068<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-442\" src=\"https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/08\/ennnsuu805.jpg\" alt=\"\u5909\u6570\u540d\" width=\"411\" height=\"147\" srcset=\"https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/08\/ennnsuu805.jpg 411w, https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/08\/ennnsuu805-300x107.jpg 300w\" sizes=\"(max-width: 411px) 100vw, 411px\" \/><\/p>\n<p>\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u984c8\u3067\u306f\u540c\u3058\u300e\u30c7\u30a3\u30fc\u300f\u3092\u4f7f\u3044\u307e\u3057\u305f\u3002<br \/>\n\u3067\u3082\u300eDDD\u300f\u306f\u5927\u6587\u5b57\u3001\u300eddd\u300f\u306f\u5c0f\u6587\u5b57\u3068\u3044\u3046\u9055\u3044\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3067\u3001\u7d50\u679c\u306f\u5927\u6587\u5b57\u306e\u300eDDD\u300f\u306e\u65b9\u304c\u8868\u793a\u3055\u308c\u307e\u3057\u305f\u306d\u3002<\/p>\n<p>\u3053\u3053\u304b\u3089\u308f\u304b\u308b\u3088\u3046\u306b\u5909\u6570\u540d\u306f\u5927\u6587\u5b57\u3068\u5c0f\u6587\u5b57\u304c\u304d\u3061\u3093\u3068<br \/>\n\u8a8d\u8b58\u3055\u308c\u3066\u3044\u308b\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>Python\u3067\u306f\u540c\u3058\u5909\u6570\u540d\u306b\u5225\u306e\u6587\u5b57\u3092\u4ee3\u5165\u3059\u308b\u3068<br \/>\n\u5f8c\u306e\u6587\u5b57\u300e\u304a\u306f\u3088\u3046\u300f\u306e\u65b9\u304c\u53cd\u6620\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u3067\u3082\u3001\u53cd\u6620\u3055\u308c\u305f\u306e\u306f\u6700\u521d\u306e\u6587\u5b57\u300e\u3053\u3093\u306b\u3061\u306f\u300f\u3067\u3057\u305f\u3002<\/p>\n<p>\u3053\u306e\u3053\u3068\u304b\u3089\u3001\u5909\u6570\u540d\u306f\u5927\u6587\u5b57\u3068\u5c0f\u6587\u5b57\u304c\u533a\u5225\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u306d\u3002<\/p>\n<p>\u4ee5\u4e0a\u3067\u3001Python\u306b\u304a\u3051\u308b\u5909\u6570\u540d\u306b\u3064\u3044\u3066\u306e\u89e3\u8aac\u3092\u7d42\u308f\u308a\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u3053\u306e\u8a18\u4e8b\u3067\u306fPython\u306b\u304a\u3051\u308b\u5909\u6570\u306e\u4ee3\u5165\u306b\u3064\u3044\u3066\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3059\u3002 \u307e\u305a\u3001\u5909\u6570\u306b\u3064\u3044\u3066\u306f \u3053\u3061\u3089\u306e\u8a18\u4e8b\u3092\u3042\u308f\u305b\u3066\u3054\u89a7\u304f\u3060\u3055\u3044\u3002 \u21d2Python\u306e\u5909\u6570\u5ba3\u8a00\u3067\u6ce8\u610f\u3059\u3079\u304d\u3053\u3068 \u3053\u306e\u8a18\u4e8b\u3067\u306fJupyter Note [&hellip;]","protected":false},"author":1,"featured_media":417,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[16,17],"tags":[3,35,34],"_links":{"self":[{"href":"https:\/\/python-introduction.com\/index.php?rest_route=\/wp\/v2\/posts\/416"}],"collection":[{"href":"https:\/\/python-introduction.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/python-introduction.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/python-introduction.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/python-introduction.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=416"}],"version-history":[{"count":20,"href":"https:\/\/python-introduction.com\/index.php?rest_route=\/wp\/v2\/posts\/416\/revisions"}],"predecessor-version":[{"id":446,"href":"https:\/\/python-introduction.com\/index.php?rest_route=\/wp\/v2\/posts\/416\/revisions\/446"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/python-introduction.com\/index.php?rest_route=\/wp\/v2\/media\/417"}],"wp:attachment":[{"href":"https:\/\/python-introduction.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=416"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/python-introduction.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=416"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/python-introduction.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=416"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}