{"id":950,"date":"2018-02-26T22:02:15","date_gmt":"2018-02-26T13:02:15","guid":{"rendered":"https:\/\/sparrow9630.net\/?p=950"},"modified":"2018-02-26T22:02:15","modified_gmt":"2018-02-26T13:02:15","slug":"for%e6%96%87%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9%e3%82%92%e8%a6%9a%e3%81%88%e3%82%88%e3%81%86","status":"publish","type":"post","link":"https:\/\/sparrow9630.net\/?p=950","title":{"rendered":"for\u6587\u306e\u4f7f\u3044\u65b9\u3092\u899a\u3048\u3088\u3046"},"content":{"rendered":"<p style=\"font-stretch: normal; font-size: 12px; line-height: normal; font-family: &quot;.Hiragino Kaku Gothic Interface&quot;; color: rgb(69, 69, 69);\">\u6c7a\u3081\u3089\u308c\u305f\u6570\u3060\u3051\u7e70\u308a\u8fd4\u3057\uff01<\/p>\n<p><\/p>\n<p style=\"font-stretch: normal; font-size: 12px; line-height: normal; font-family: &quot;Helvetica Neue&quot;; color: rgb(69, 69, 69); min-height: 14px;\"><\/p>\n<p><\/p>\n<p style=\"font-stretch: normal; font-size: 12px; line-height: normal; font-family: &quot;.Hiragino Kaku Gothic Interface&quot;; color: rgb(69, 69, 69);\">\u540c\u3058\u51e6\u7406\u3092\u4f55\u56de\u3082\u7e70\u308a\u8fd4\u3059\u6642\u306b\u4f7f\u7528\u3059\u308b\u306e\u304c<span style=\"font-stretch: normal; line-height: normal; font-family: &quot;Helvetica Neue&quot;;\">for<\/span>\u6587\u3002<\/p>\n<p><\/p>\n<p style=\"font-stretch: normal; font-size: 12px; line-height: normal; font-family: &quot;.Hiragino Kaku Gothic Interface&quot;; color: rgb(69, 69, 69);\"><span style=\"font-stretch: normal; line-height: normal; font-family: &quot;Helvetica Neue&quot;;\">for<\/span>\u6587\u306f\u6307\u5b9a\u3057\u305f\u56de\u6570\u5206\u3001\u51e6\u7406\u3092\u5b9f\u884c\u3067\u304d\u308b\u305f\u3081\u3001\u540c\u3058\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u66f8\u304d\u7d9a\u3051\u308b\u624b\u9593\u3082\u7701\u3051\u308b\u3002<\/p>\n<p><\/p>\n<p style=\"font-stretch: normal; font-size: 12px; line-height: normal; font-family: &quot;Helvetica Neue&quot;; color: rgb(69, 69, 69); min-height: 14px;\"><\/p>\n<p><\/p>\n<p style=\"font-stretch: normal; font-size: 12px; line-height: normal; font-family: &quot;Helvetica Neue&quot;;\"><font color=\"#7f7f7f\">for <span style=\"font-stretch: normal; line-height: normal; font-family: &quot;.Hiragino Kaku Gothic Interface&quot;;\">\u56de\u6570<\/span> in 1\u20265 {<\/font><\/p>\n<p><\/p>\n<p style=\"font-stretch: normal; font-size: 12px; line-height: normal; font-family: &quot;Helvetica Neue&quot;;\"><font color=\"#7f7f7f\">&nbsp; &nbsp; print<span style=\"font-stretch: normal; line-height: normal; font-family: &quot;.Hiragino Kaku Gothic Interface&quot;;\">(<\/span>&#8220;\\<span style=\"font-stretch: normal; line-height: normal; font-family: &quot;.Hiragino Kaku Gothic Interface&quot;;\">(\u56de\u6570)\u56de\u76ee\u3060\u3088<\/span>&#8220;<span style=\"font-stretch: normal; line-height: normal; font-family: &quot;.Hiragino Kaku Gothic Interface&quot;;\">)<\/span><\/font><\/p>\n<p><\/p>\n<p style=\"font-stretch: normal; font-size: 12px; line-height: normal; font-family: &quot;Helvetica Neue&quot;;\"><font color=\"#7f7f7f\">}<\/font><\/p>\n<p><\/p>\n<p style=\"font-stretch: normal; font-size: 12px; line-height: normal; font-family: &quot;Helvetica Neue&quot;; color: rgb(69, 69, 69); min-height: 14px;\"><\/p>\n<p><\/p>\n<p style=\"font-stretch: normal; font-size: 12px; line-height: normal; font-family: &quot;.Hiragino Kaku Gothic Interface&quot;; color: rgb(69, 69, 69);\"><span style=\"font-stretch: normal; line-height: normal; font-family: &quot;Helvetica Neue&quot;;\">foe<\/span>\u6587\u306f\u51e6\u7406\u3092\u4e00\u5468\u3059\u308b\u3068\u3001<span style=\"font-stretch: normal; line-height: normal; font-family: &quot;Helvetica Neue&quot;;\">for<\/span>\u306b\u7d9a\u3051\u3066\u66f8\u3044\u305f\u5909\u6570\u306b\u300c\uff11\u300d\u3092\u8db3\u3057\u3066\u3044\u304f\u3002<\/p>\n<p><\/p>\n<p style=\"font-stretch: normal; font-size: 12px; line-height: normal; font-family: &quot;.Hiragino Kaku Gothic Interface&quot;; color: rgb(69, 69, 69);\">\u306e\u3067\u3001\u7d50\u679c\u304c<\/p>\n<p><\/p>\n<p style=\"font-stretch: normal; font-size: 12px; line-height: normal; font-family: &quot;Helvetica Neue&quot;; color: rgb(69, 69, 69);\">\u2193\u2193\u2193<\/p>\n<p><\/p>\n<p style=\"font-stretch: normal; font-size: 12px; line-height: normal; font-family: &quot;Helvetica Neue&quot;; color: rgb(69, 69, 69); min-height: 14px;\"><\/p>\n<p><\/p>\n<p style=\"font-stretch: normal; font-size: 12px; line-height: normal; font-family: &quot;.Hiragino Kaku Gothic Interface&quot;; color: rgb(69, 69, 69);\"><span style=\"font-stretch: normal; line-height: normal; font-family: &quot;Helvetica Neue&quot;;\"><b>1<\/b><\/span><b>\u56de\u76ee\u3060\u3088<\/b><\/p>\n<p><\/p>\n<p style=\"font-stretch: normal; font-size: 12px; line-height: normal; font-family: &quot;.Hiragino Kaku Gothic Interface&quot;; color: rgb(69, 69, 69);\"><span style=\"font-stretch: normal; line-height: normal; font-family: &quot;Helvetica Neue&quot;;\"><b>2<\/b><\/span><b>\u56de\u76ee\u3060\u3088<\/b><\/p>\n<p><\/p>\n<p style=\"font-stretch: normal; font-size: 12px; line-height: normal; font-family: &quot;.Hiragino Kaku Gothic Interface&quot;; color: rgb(69, 69, 69);\"><span style=\"font-stretch: normal; line-height: normal; font-family: &quot;Helvetica Neue&quot;;\"><b>3<\/b><\/span><b>\u56de\u76ee\u3060\u3088<\/b><\/p>\n<p><\/p>\n<p style=\"font-stretch: normal; font-size: 12px; line-height: normal; font-family: &quot;.Hiragino Kaku Gothic Interface&quot;; color: rgb(69, 69, 69);\"><span style=\"font-stretch: normal; line-height: normal; font-family: &quot;Helvetica Neue&quot;;\"><b>4<\/b><\/span><b>\u56de\u76ee\u3060\u3088<\/b><\/p>\n<p><\/p>\n<p style=\"font-stretch: normal; font-size: 12px; line-height: normal; font-family: &quot;.Hiragino Kaku Gothic Interface&quot;; color: rgb(69, 69, 69);\"><span style=\"font-stretch: normal; line-height: normal; font-family: &quot;Helvetica Neue&quot;;\"><b>5<\/b><\/span><b>\u56de\u76ee\u3060\u3088<\/b><\/p>\n<p><\/p>\n<p style=\"font-stretch: normal; font-size: 12px; line-height: normal; font-family: &quot;Helvetica Neue&quot;; color: rgb(69, 69, 69); min-height: 14px;\"><\/p>\n<p style=\"font-stretch: normal; font-size: 12px; line-height: normal; font-family: &quot;Helvetica Neue&quot;; color: rgb(69, 69, 69); min-height: 14px;\"><\/p>\n<p style=\"font-stretch: normal; font-size: 12px; line-height: normal; font-family: &quot;Helvetica Neue&quot;; color: rgb(69, 69, 69); min-height: 14px;\"><\/p>\n<p><\/p>\n<p style=\"font-stretch: normal; font-size: 12px; line-height: normal; font-family: &quot;.Hiragino Kaku Gothic Interface&quot;; color: rgb(69, 69, 69);\"><span style=\"font-stretch: normal; line-height: normal; font-family: &quot;Helvetica Neue&quot;;\">for<\/span>\u6587\u306e\u5916\u306b\u3042\u308b\u5909\u6570\u306e\u51e6\u7406\u3082\u3067\u304d\u308b\u3002<\/p>\n<p><\/p>\n<p style=\"font-stretch: normal; font-size: 12px; line-height: normal; font-family: &quot;.Hiragino Kaku Gothic Interface&quot;; color: rgb(69, 69, 69);\">\u5916\u306e\u5909\u6570\u3092\u51e6\u7406\u3059\u308b\u4e8b\u3067\u3001\u8db3\u3059\u3060\u3051\u3058\u3083\u306a\u304f\u639b\u3051\u305f\u308a\u3001\u3044\u308d\u3093\u306a\u51e6\u7406\u304c\u3067\u304d\u3001\u51e6\u7406\u306e\u5e45\u304c\u5e83\u304c\u308b\u3002<\/p>\n<p><\/p>\n<p style=\"font-stretch: normal; font-size: 12px; line-height: normal; font-family: &quot;Helvetica Neue&quot;; color: rgb(69, 69, 69); min-height: 14px;\"><\/p>\n<p><\/p>\n<p style=\"font-stretch: normal; font-size: 12px; line-height: normal; font-family: &quot;Helvetica Neue&quot;;\"><font color=\"#7f7f7f\">var <span style=\"font-stretch: normal; line-height: normal; font-family: &quot;.Hiragino Kaku Gothic Interface&quot;;\">\u6570\u5b57<\/span> = 10<\/font><\/p>\n<p><\/p>\n<p style=\"font-stretch: normal; font-size: 12px; line-height: normal; font-family: &quot;Helvetica Neue&quot;;\"><font color=\"#7f7f7f\">for <span style=\"font-stretch: normal; line-height: normal; font-family: &quot;.Hiragino Kaku Gothic Interface&quot;;\">\u56de\u6570<\/span> in 1&#8230;10 {<\/font><\/p>\n<p><\/p>\n<p style=\"font-stretch: normal; font-size: 12px; line-height: normal; font-family: &quot;Helvetica Neue&quot;;\"><font color=\"#7f7f7f\">&nbsp; &nbsp; <span style=\"font-stretch: normal; line-height: normal; font-family: &quot;.Hiragino Kaku Gothic Interface&quot;;\">\u6570\u5b57<\/span> *= 2<\/font><\/p>\n<p><\/p>\n<p style=\"font-stretch: normal; font-size: 12px; line-height: normal; font-family: &quot;Helvetica Neue&quot;;\"><font color=\"#7f7f7f\">}<\/font><\/p>\n<p><\/p>\n<p style=\"font-stretch: normal; font-size: 12px; line-height: normal; font-family: &quot;Helvetica Neue&quot;;\"><font color=\"#7f7f7f\">print<span style=\"font-stretch: normal; line-height: normal; font-family: &quot;.Hiragino Kaku Gothic Interface&quot;;\">(<\/span>&#8220;\\<span style=\"font-stretch: normal; line-height: normal; font-family: &quot;.Hiragino Kaku Gothic Interface&quot;;\">(\u6570\u5b57)<\/span>&#8220;<span style=\"font-stretch: normal; line-height: normal; font-family: &quot;.Hiragino Kaku Gothic Interface&quot;;\">)<\/span><\/font><\/p>\n<p><\/p>\n<p style=\"font-stretch: normal; font-size: 12px; line-height: normal; font-family: &quot;Helvetica Neue&quot;; color: rgb(69, 69, 69); min-height: 14px;\"><\/p>\n<p><\/p>\n<p style=\"font-stretch: normal; font-size: 12px; line-height: normal; font-family: &quot;.Hiragino Kaku Gothic Interface&quot;; color: rgb(69, 69, 69);\">\u7d50\u679c\u306f\u3001<\/p>\n<p><\/p>\n<p style=\"font-stretch: normal; font-size: 12px; line-height: normal; font-family: &quot;Helvetica Neue&quot;; color: rgb(69, 69, 69); min-height: 14px;\"><\/p>\n<p><\/p>\n<p style=\"font-stretch: normal; font-size: 12px; line-height: normal; font-family: &quot;Helvetica Neue&quot;; color: rgb(69, 69, 69);\"><b>10240<\/b><\/p>\n<p><\/p>\n<p style=\"font-stretch: normal; font-size: 12px; line-height: normal; font-family: &quot;Helvetica Neue&quot;; color: rgb(69, 69, 69); min-height: 14px;\"><\/p>\n<p><\/p>\n<p style=\"font-stretch: normal; font-size: 12px; line-height: normal; font-family: &quot;.Hiragino Kaku Gothic Interface&quot;; color: rgb(69, 69, 69);\"><span style=\"font-stretch: normal; line-height: normal; font-family: &quot;Helvetica Neue&quot;;\">for<\/span>\u6587\u306e\u5916\u3067\u4f7f\u3063\u3066\u3044\u308b\u5909\u6570\u306f\u3001<span style=\"font-stretch: normal; line-height: normal; font-family: &quot;Helvetica Neue&quot;;\">for<\/span>\u6587\u306e\u4e2d\u3067\u5024\u3092\u53c2\u7167\u3057\u305f\u308a\u518d\u4ee3\u5165\u3057\u305f\u308a\u3067\u304d\u308b\u3002<\/p>\n<p><\/p>\n<p style=\"font-stretch: normal; font-size: 12px; line-height: normal; font-family: &quot;.Hiragino Kaku Gothic Interface&quot;; color: rgb(69, 69, 69);\">\u300c\u6570\u5b57\u300d\u306b\u300c<span style=\"font-stretch: normal; line-height: normal; font-family: &quot;Helvetica Neue&quot;;\">10<\/span>\u300d\u3092\u4ee3\u5165\u3057\u3066\u3001<span style=\"font-stretch: normal; line-height: normal; font-family: &quot;Helvetica Neue&quot;;\">for<\/span>\u6587\u3067\u300c<span style=\"font-stretch: normal; line-height: normal; font-family: &quot;Helvetica Neue&quot;;\">2<\/span>\u300d\u3092<span style=\"font-stretch: normal; line-height: normal; font-family: &quot;Helvetica Neue&quot;;\">10<\/span>\u56de\u639b\u3051\u3066\u3044\u308b\u3002<\/p>\n<p><\/p>\n<p style=\"font-stretch: normal; font-size: 12px; line-height: normal; font-family: &quot;Helvetica Neue&quot;; color: rgb(69, 69, 69); min-height: 14px;\"><\/p>\n<p><\/p>\n<p style=\"font-stretch: normal; font-size: 12px; line-height: normal; font-family: &quot;Helvetica Neue&quot;; color: rgb(69, 69, 69); min-height: 14px;\"><\/p>\n<p><\/p>\n<p style=\"font-stretch: normal; font-size: 12px; line-height: normal; font-family: &quot;.Hiragino Kaku Gothic Interface&quot;;\"><b><u><font color=\"#ff0000\"><span style=\"font-stretch: normal; line-height: normal; font-family: &quot;Helvetica Neue&quot;;\">for<\/span>\u6587\u306e\u5916\u306e\u5909\u6570\u540d\u3068\u4e2d\u306e\u5909\u6570\u540d\u306f\u4e00\u7dd2\u3067\u3082\u533a\u5225\u3055\u308c\u3066\u51e6\u7406\u3055\u308c\u308b\u3002<\/font><\/u><\/b><\/p>\n<p><\/p>\n<p style=\"font-stretch: normal; font-size: 12px; line-height: normal; font-family: &quot;.Hiragino Kaku Gothic Interface&quot;;\"><b><u><font color=\"#ff0000\">\u3067\u3082\u3001\u540c\u3058\u5909\u6570\u540d\u304c\u3042\u308b\u3068\u6df7\u4e71\u3092\u62db\u304f\u306e\u3067\u3001\u540c\u3058\u540d\u524d\u306f\u907f\u3051\u308b\u69d8\u306b\uff01<\/font><\/u><\/b><\/p>\n<div><\/div>\n<p>\n<!--more--><br \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jin_ogp_image_url":"","_jin_last_featured_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[72],"tags":[],"class_list":["post-950","post","type-post","status-publish","format-standard","hentry","category-swift"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":956,"url":"https:\/\/sparrow9630.net\/?p=956","url_meta":{"origin":950,"position":0},"title":"Swift\u8d85\u5165\u9580\u306e\u307e\u3068\u3081","author":"sparrow9630","date":"2018-03-04","format":false,"excerpt":"","rel":"","context":"Swift\u8d85\u5165\u9580","block_context":{"text":"Swift\u8d85\u5165\u9580","link":"https:\/\/sparrow9630.net\/?cat=72"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":954,"url":"https:\/\/sparrow9630.net\/?p=954","url_meta":{"origin":950,"position":1},"title":"while\u6587\u306e\u4f7f\u3044\u65b9\u3092\u899a\u3048\u3088\u3046","author":"sparrow9630","date":"2018-03-02","format":false,"excerpt":"","rel":"","context":"Swift\u8d85\u5165\u9580","block_context":{"text":"Swift\u8d85\u5165\u9580","link":"https:\/\/sparrow9630.net\/?cat=72"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":691,"url":"https:\/\/sparrow9630.net\/?p=691","url_meta":{"origin":950,"position":2},"title":"else\u6587\u306e\u4f7f\u3044\u65b9\u3092\u899a\u3048\u3088\u3046","author":"sparrow9630","date":"2018-02-18","format":false,"excerpt":"","rel":"","context":"Swift\u8d85\u5165\u9580","block_context":{"text":"Swift\u8d85\u5165\u9580","link":"https:\/\/sparrow9630.net\/?cat=72"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":696,"url":"https:\/\/sparrow9630.net\/?p=696","url_meta":{"origin":950,"position":3},"title":"switch\u6587\u306e\u4f7f\u3044\u65b9\u3092\u899a\u3048\u3088\u3046","author":"sparrow9630","date":"2018-02-20","format":false,"excerpt":"","rel":"","context":"Swift\u8d85\u5165\u9580","block_context":{"text":"Swift\u8d85\u5165\u9580","link":"https:\/\/sparrow9630.net\/?cat=72"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":690,"url":"https:\/\/sparrow9630.net\/?p=690","url_meta":{"origin":950,"position":4},"title":"If\u6587\u306e\u3064\u304b\u3044\u304b\u305f\u3092\u899a\u3048\u3088\u3046","author":"sparrow9630","date":"2018-02-16","format":false,"excerpt":"","rel":"","context":"Swift\u8d85\u5165\u9580","block_context":{"text":"Swift\u8d85\u5165\u9580","link":"https:\/\/sparrow9630.net\/?cat=72"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":109,"url":"https:\/\/sparrow9630.net\/?p=109","url_meta":{"origin":950,"position":5},"title":"if\u6587","author":"sparrow9630","date":"2014-09-22","format":false,"excerpt":"","rel":"","context":"iOS\u30a2\u30d7\u30ea\u4f5c\u6210\u3000ACT1","block_context":{"text":"iOS\u30a2\u30d7\u30ea\u4f5c\u6210\u3000ACT1","link":"https:\/\/sparrow9630.net\/?cat=9"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/sparrow9630.net\/index.php?rest_route=\/wp\/v2\/posts\/950","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sparrow9630.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sparrow9630.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sparrow9630.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sparrow9630.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=950"}],"version-history":[{"count":0,"href":"https:\/\/sparrow9630.net\/index.php?rest_route=\/wp\/v2\/posts\/950\/revisions"}],"wp:attachment":[{"href":"https:\/\/sparrow9630.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=950"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sparrow9630.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=950"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sparrow9630.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=950"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}