{"id":6483,"date":"2020-01-21T11:41:41","date_gmt":"2020-01-21T03:41:41","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=6483"},"modified":"2020-01-21T16:51:12","modified_gmt":"2020-01-21T08:51:12","slug":"break","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/break","title":{"rendered":"break\u547d\u4ee4 – \u7ed3\u675ffor while\u6216until\u5faa\u73af"},"content":{"rendered":"\n
break\u547d\u4ee4\u7528\u4e8e\u7ed3\u675ffor\uff0cwhile\u6216until\u5faa\u73af\uff0c\u53ef\u6307\u5b9a\u9000\u51fa\u51e0\u5c42\u5faa\u73af\u3002 <\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>break [\u53c2\u6570]<\/p>\n\n\n\n \u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n \u53c2\u8003\u793a\u4f8b<\/strong><\/p>\n\n\n\n break\u7684\u53ef\u9009\u53c2\u6570n\u7f3a\u7701\u503c\u4e3a1\uff1a<\/p>\n\n\n\n \u5f53n\u4e3a2\u65f6: \u9000\u51fa\u4e24\u5c42\u5faa\u73af\uff0c\u7ed3\u675f\uff1a<\/p>\n\n\n\n break\u547d\u4ee4\u7528\u4e8e\u7ed3\u675ffor\uff0cwhile\u6216until\u5faa\u73af\uff0c\u53ef\u6307\u5b9a\u9000\u51fa\u51e0\u5c42\u5faa\u73af\u3002 \u8bed\u6cd5\u683c\u5f0f\uff1abreak [\u53c2\u6570] […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[11],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6483"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=6483"}],"version-history":[{"count":8,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6483\/revisions"}],"predecessor-version":[{"id":6569,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6483\/revisions\/6569"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=6483"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=6483"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=6483"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}n<\/td> \u5927\u4e8e\u7b49\u4e8e1\u7684\u6574\u6570\uff0c\u7528\u4e8e\u6307\u5b9a\u9000\u51fa\u51e0\u5c42\u5faa\u73af <\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n for((j=3;j>0;j--)); do \n for((i=3;i>0;i--)); do \n if((j==2)); then \n break \n fi \nprintf \"%s %s\\n\" ${i} ${j} \n done \ndone \n# \u8f93\u51fa\u7ed3\u679c 3 3 2 3 1 3 <\/pre>\n\n\n\n
for((i=3;i>0;i--)); do \n for((j=3;j>0;j--)); do \n if((j==2)); then \n break 2 \n fi \nprintf \"%s %s\\n\" ${i} ${j}\n done \ndone \n# \u8f93\u51fa\u7ed3\u679c 3 3 <\/pre>\n","protected":false},"excerpt":{"rendered":"