{"id":2907,"date":"2018-05-07T22:16:10","date_gmt":"2018-05-07T14:16:10","guid":{"rendered":"https:\/\/usr.nkust.org\/?p=884"},"modified":"2018-05-07T22:16:10","modified_gmt":"2018-05-07T14:16:10","slug":"scratch-find-max-min-01","status":"publish","type":"post","link":"https:\/\/104.es\/index.php\/2018\/05\/07\/scratch-find-max-min-01\/","title":{"rendered":"\u3010Scratch\u3011\u5373\u6642\u627e\u51fa\u6700\u5927\u503c\u548c\u6700\u5c0f\u503c"},"content":{"rendered":"<p>\u5728\u5b78\u7fd2\u5982\u4f55\u6392\u5e8f\u4e4b\u524d\uff0c\u8b93\u6211\u5011\u5148\u4f86\u77ad\u89e3\u6e05\u55ae\u7684\u61c9\u7528\uff0c\u4ee5\u53ca\u5982\u4f55\u900f\u904e\u89d2\u8272\u4f86\u8f38\u5165\u6e05\u55ae\u6240\u9700\u8981\u7684\u8cc7\u6599\u3002\u9996\u5148\uff0c\u8acb\u65b0\u5efa\u7acb\u4e00\u500b\u5c08\u6848\uff0c\u4e26\u4fdd\u7559\u8c93\u54aa\u9019\u500b\u89d2\u8272\uff0c\u7136\u5f8c\u5728\u8cc7\u6599\u7684\u5730\u65b9\u5efa\u7acb\u4e00\u500b\u8981\u7528\u4f86\u5b58\u653e\u8cc7\u6599\u9805\u76ee\u7684\u6e05\u55ae\u8b8a\u6578\uff0c\u5047\u8a2d\u5728\u9019\u88e1\u6211\u5011\u628a\u5b83\u53eb\u505adata\u3002\u5982\u4e0b\u5716\u6240\u793a\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-885 aligncenter\" src=\"https:\/\/usr.nkust.org\/wp-content\/uploads\/2018\/05\/2018-05-07_21-49-29.png\" alt=\"\" width=\"272\" height=\"547\" \/><\/p>\n<p>\u7a0b\u5f0f\u4e00\u958b\u59cb\u7684\u6642\u5019\uff0c\u6211\u5011\u5148\u628adata\u6e05\u9664\u70ba\u7a7a\uff0c\u56e0\u6b64\u9700\u8981\u5728\u7a0b\u5f0f\u958b\u59cb\u57f7\u884c\u7684\u4e8b\u4ef6\u4e2d\uff0c\u52a0\u4e0a\u522a\u9664\u5168\u90e8\u6e05\u55ae\u5167\u5bb9\u7684\u7a0b\u5f0f\u7a4d\u6728\uff0c\u5982\u4e0b\u6240\u793a\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-886 aligncenter\" src=\"https:\/\/usr.nkust.org\/wp-content\/uploads\/2018\/05\/2018-05-07_21-50-48.png\" alt=\"\" width=\"266\" height=\"108\" \/><\/p>\n<p>\u6b64\u6642\uff0c\u7576\u7a0b\u5f0f\u4e00\u958b\u59cb\u57f7\u884c\u7684\u6642\u5019\uff0c\u770b\u5230\u7684\u756b\u9762\u61c9\u8a72\u5982\u4e0b\u9762\u9019\u500b\u6a23\u5b50\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-887 aligncenter\" src=\"https:\/\/usr.nkust.org\/wp-content\/uploads\/2018\/05\/2018-05-07_21-52-21.png\" alt=\"\" width=\"602\" height=\"524\" \/><\/p>\n<p>\u5047\u8a2d\u6211\u5011\u5e0c\u671b\u7576\u4f7f\u7528\u8005\u9ede\u6309\u8c93\u54aa\u7684\u6642\u5019\u5c31\u6703\u8a62\u554f\u4f7f\u7528\u8005\u662f\u5426\u8981\u8f38\u5165\u6578\u5b57\uff0c\u5247\u53ef\u4ee5\u5efa\u7acb\u5982\u4e0b\u6240\u793a\u7684\u7a0b\u5f0f\u7a4d\u6728\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-888 aligncenter\" src=\"https:\/\/usr.nkust.org\/wp-content\/uploads\/2018\/05\/2018-05-07_21-53-33.png\" alt=\"\" width=\"302\" height=\"139\" \/><\/p>\n<p>\u4e4b\u5f8c\uff0c\u5728\u8c93\u54aa\u88ab\u9ede\u64ca\u4e4b\u5f8c\uff0c\u5c31\u6703\u5728\u821e\u53f0\u7684\u4e0b\u65b9\u51fa\u73fe\u8a62\u554f\u7684\u5c0d\u8a71\u6846\uff0c\u5982\u4e0b\u6240\u793a\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-889 aligncenter\" src=\"https:\/\/usr.nkust.org\/wp-content\/uploads\/2018\/05\/2018-05-07_21-54-36.png\" alt=\"\" width=\"613\" height=\"502\" \/><\/p>\n<p>\u6bcf\u8f38\u5165\u4e00\u500b\u6578\u5b57\uff0c\u6b64\u6578\u5b57\u5c31\u6703\u88ab\u52a0\u5165\u5230\u6e05\u55ae\u4e2d\uff0c\u5728\u821e\u53f0\u4e2d\u5c31\u53ef\u4ee5\u5373\u6642\u770b\u5230\u8b8a\u6578\u7684\u5167\u5bb9\u3002\u4e0b\u9762\u662f\u6211\u5011\u8f38\u5165\u4e865\u500b\u6578\u5b57\u4e4b\u5f8c\u7684\u756b\u9762\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-890 aligncenter\" src=\"https:\/\/usr.nkust.org\/wp-content\/uploads\/2018\/05\/2018-05-07_21-56-22.png\" alt=\"\" width=\"606\" height=\"526\" \/><\/p>\n<p>\u90a3\u9ebc\u8981\u5982\u4f55\u624d\u80fd\u5920\u627e\u51fa\u9019\u4e9b\u6578\u5b57\u7684\u6700\u5927\u503c\u548c\u6700\u5c0f\u503c\u5462\uff1f\u6700\u7c21\u55ae\u7684\u65b9\u6cd5\u5c31\u662f\u8a2d\u5b9a\u5169\u500b\u8b8a\u6578\uff0c\u4e00\u500b\u53eb\u505amax\uff0c\u53e6\u5916\u4e00\u500b\u53eb\u505amin\uff0c\u4e00\u958b\u59cb\u628amax\u8a2d\u6210\u4e00\u500b\u5f88\u5c0f\u7684\u6578\uff0c\u800cmin\u8a2d\u6210\u4e00\u500b\u5f88\u5927\u6578\uff0c\u5982\u4e0b\u6240\u793a\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-891 aligncenter\" src=\"https:\/\/usr.nkust.org\/wp-content\/uploads\/2018\/05\/2018-05-07_22-00-54.png\" alt=\"\" width=\"222\" height=\"143\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-893 aligncenter\" src=\"https:\/\/usr.nkust.org\/wp-content\/uploads\/2018\/05\/2018-05-07_22-03-47.png\" alt=\"\" width=\"250\" height=\"162\" \/><\/p>\n<p>\u7136\u5f8c\u5728\u6bcf\u6b21\u8f38\u5165\u8cc7\u6599\u7684\u6642\u5019\uff0c\u53ea\u8981\u8f38\u5165\u7684\u9019\u500b\u6578\u6bd4min\u9084\u5c0f\uff0c\u5c31\u628a\u5b83\u8a2d\u5b9a\u70bamin\uff0c\u5982\u679c\u6bd4max\u9084\u5927\uff0c\u5c31\u628a\u5b83\u8a2d\u5b9a\u70bamax\uff0c\u7a0b\u5f0f\u7a4d\u6728\u5982\u4e0b\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-894 aligncenter\" src=\"https:\/\/usr.nkust.org\/wp-content\/uploads\/2018\/05\/2018-05-07_22-06-20.png\" alt=\"\" width=\"306\" height=\"332\" \/><\/p>\n<p>\u540c\u5b78\u5011\u53ef\u4ee5\u57f7\u884c\u9019\u500b\u7a0b\u5f0f\u770b\u770b\uff0c\u4f60\u6703\u767c\u73fe\uff0c\u5728\u4e00\u908a\u8f38\u5165\u6578\u5b57\u8cc7\u6599\u9805\u7684\u904e\u7a0b\u4e2d\uff0cmax\u548cmin\u8b8a\u6578\u4e00\u76f4\u90fd\u6703\u4fdd\u6301\u6240\u6709\u8cc7\u6599\u9805\u4e2d\u7684\u6700\u5927\u503c\u548c\u6700\u5c0f\u503c\u5594\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-895 aligncenter\" src=\"https:\/\/usr.nkust.org\/wp-content\/uploads\/2018\/05\/2018-05-07_22-07-32.png\" alt=\"\" width=\"604\" height=\"496\" \/><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u5b78\u7fd2\u5982\u4f55\u6392\u5e8f\u4e4b\u524d\uff0c\u8b93\u6211\u5011\u5148\u4f86\u77ad\u89e3\u6e05\u55ae\u7684\u61c9\u7528\uff0c\u4ee5\u53ca\u5982\u4f55\u900f\u904e\u89d2\u8272\u4f86\u8f38\u5165\u6e05\u55ae\u6240\u9700\u8981\u7684\u8cc7\u6599\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[218],"tags":[176],"class_list":["post-2907","post","type-post","status-publish","format-standard","hentry","category-218","tag-scratch"],"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/104.es\/index.php\/wp-json\/wp\/v2\/posts\/2907","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/104.es\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/104.es\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/104.es\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/104.es\/index.php\/wp-json\/wp\/v2\/comments?post=2907"}],"version-history":[{"count":0,"href":"https:\/\/104.es\/index.php\/wp-json\/wp\/v2\/posts\/2907\/revisions"}],"wp:attachment":[{"href":"https:\/\/104.es\/index.php\/wp-json\/wp\/v2\/media?parent=2907"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/104.es\/index.php\/wp-json\/wp\/v2\/categories?post=2907"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/104.es\/index.php\/wp-json\/wp\/v2\/tags?post=2907"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}