{"id":139,"date":"2016-05-02T02:55:03","date_gmt":"2016-05-02T02:55:03","guid":{"rendered":"http:\/\/blogs.softwareclue.com\/?p=139"},"modified":"2016-05-02T02:59:19","modified_gmt":"2016-05-02T02:59:19","slug":"%e7%bc%96%e7%a8%8b%e9%9c%80%e8%a6%81%e7%9f%a5%e9%81%93%e5%a4%9a%e5%b0%91%e6%95%b0%e5%ad%a6%e7%9f%a5%e8%af%86%ef%bc%9f","status":"publish","type":"post","link":"http:\/\/blog.softwareclues.com\/zh\/%e7%bc%96%e7%a8%8b%e9%9c%80%e8%a6%81%e7%9f%a5%e9%81%93%e5%a4%9a%e5%b0%91%e6%95%b0%e5%ad%a6%e7%9f%a5%e8%af%86%ef%bc%9f","title":{"rendered":"\u7f16\u7a0b\u9700\u8981\u77e5\u9053\u591a\u5c11\u6570\u5b66\u77e5\u8bc6\uff1f"},"content":{"rendered":"<blockquote><p>\u82f1\u6587\uff1aAl Sweigart<\/p>\n<p>\u8bd1\u6587\uff1a\u4f2f\u4e50\u5728\u7ebf &#8211; \u5510\u5c0f\u5a1f<\/p>\n<p>\u94fe\u63a5\uff1ahttp:\/\/blog.jobbole.com\/19348\/<\/p><\/blockquote>\n<p>\u4e0b\u9762\u662f\u6211\u5728Reddit\u7684\u5b50\u8bba\u575b r\/learnprogramming \u770b\u5230\u7684\u51e0\u4e2a\u5e16\u5b50\uff1a<\/p>\n<ul class=\" list-paddingleft-2\">\n<li>\u201c\u8981\u6210\u4e3a\u4e00\u4e2a\u4f18\u79c0\u7684\u7a0b\u5e8f\u5458\u9700\u8981\u5b66\u4e60\u591a\u5c11\u6570\u5b66\uff1f\u201d<\/li>\n<li>\u201c\u6211\u5e94\u8be5\u91cd\u65b0\u5b66\u4e60\u6570\u5b66\u5417\uff1f\u201d<\/li>\n<li>\u201c\u8fd9\u53ef\u80fd\u662f\u6211\u63d0\u95ee\u8fc7\u7684\u6700\u611a\u8822\u7684\u4e00\u4e2a\u95ee\u9898\u3002\u6210\u4e3a\u4e00\u4e2a\u4f18\u79c0\u7684\u7a0b\u5e8f\u5458\u7a76\u7adf\u9700\u8981\u5b66\u4e60\u591a\u5c11\u6570\u5b66\uff1f\u201d<\/li>\n<\/ul>\n<p>\u6570\u5b66\u548c\u7f16\u7a0b\u6709\u4e00\u79cd\u5bb9\u6613\u8ba9\u4eba\u8bef\u89e3\u7684\u8054\u7cfb\u3002\u8bb8\u591a\u4eba\u8ba4\u4e3a\u5728\u5f00\u59cb\u5b66\u4e60\u7f16\u7a0b\u4e4b\u524d\u5fc5\u987b\u5bf9\u6570\u5b66\u5f88\u5728\u884c\u6216\u8005\u6570\u5b66\u5206\u6570\u5f88\u9ad8\u3002\u4f46\u4e00\u4e2a\u4eba\u4e3a\u4e86\u7f16\u7a0b\u7684\u8bdd\uff0c\u9700\u8981\u5b66\u4e60\u591a\u5c11\u6570\u5b66\u5462\uff1f<\/p>\n<p>\uff08\u3010<strong>\u4f2f\u4e50\u5728\u7ebf\u7f16\u6ce8<\/strong>\u3011\uff1a\u672c\u6587\u4ec5\u4e3a Al Sweigart \u4e00\u5bb6\u4e4b\u8a00\uff0c\u518d\u63a8\u8350 Alan Skorkin \u7684\u8fd9\u7bc7\u6587\u7ae0\u300a<a href=\"http:\/\/mp.weixin.qq.com\/s?__biz=MzA4MjEyNTA5Mw==&amp;mid=405018977&amp;idx=1&amp;sn=08999f0a47875746a8d74a37ce6d649a&amp;scene=21#wechat_redirect\" target=\"_blank\">\u6570\u5b66\u662f\u6210\u5c31\u5353\u8d8a\u5f00\u53d1\u4eba\u5458\u7684\u5fc5\u5907\u6280\u80fd<\/a>\u300b\u3002\uff09<\/p>\n<p><strong>\u5b9e\u9645\u4e0a\u4e0d\u9700\u8981\u5f88\u591a<\/strong>\u3002\u8fd9\u7bc7\u6587\u7ae0\u4e2d\u6211\u4f1a\u6df1\u5165\u63a2\u8ba8\u7f16\u7a0b\u4e2d\u6240\u9700\u8981\u7684\u6570\u5b66\u77e5\u8bc6\u3002\u4f60\u53ef\u80fd\u5df2\u7ecf\u90fd\u77e5\u9053\u4e86\u3002<\/p>\n<p>\u5bf9\u4e8e\u57fa\u672c\u7684\u7f16\u7a0b\uff0c\u4f60\u9700\u8981\u77e5\u9053\u4e0b\u9762\u7684\uff1a<\/p>\n<ul class=\" list-paddingleft-2\">\n<li><strong>\u52a0\u51cf\u4e58\u9664<\/strong> \u2014 \u5b9e\u9645\u4e0a\uff0c\u7535\u8111\u4f1a\u5e2e\u4f60\u4f5c\u52a0\u51cf\u4e58\u9664\u8fd0\u7b97\u3002\u4f60\u4ec5\u9700\u8981\u77e5\u9053\u4ec0\u4e48\u65f6\u5019\u8fd0\u7528\u5b83\u4eec\u3002<\/li>\n<li><strong>\u6a21\u8fd0\u7b97<\/strong> \u2014 \u6a21\u8fd0\u7b97\u662f\u7528\u6765\u8ba1\u7b97\u4f59\u6570\uff0c\u5b83\u7684\u7b26\u53f7\u901a\u5e38\u7528%\u767e\u5206\u53f7\u6765\u8868\u793a\u3002\u6240\u4ee523\u9664\u4ee57\u7b49\u4e8e3\uff0c\u4f59\u6570\u662f2\u300223 mod 7 = 2\u3002<\/li>\n<li><strong>\u5224\u65ad\u662f\u5947\u6570\u8fd8\u662f\u5076\u6570\u7684\u6a21\u8fd0\u7b97<\/strong> \u2014 \u5982\u679c\u4f60\u60f3\u77e5\u9053\u4e00\u4e2a\u6570\u662f\u5947\u6570\u8fd8\u662f\u5076\u6570\uff0c\u7528\u5b83mod 2\u6765\u4f5c\u6a21\u8fd0\u7b97\u3002\u5982\u679c\u7ed3\u679c\u662f0\uff0c\u5b83\u5c31\u662f\u5076\u6570\u3002\u5982\u679c\u7ed3\u679c\u662f1\uff0c\u5c31\u662f\u5947\u6570\u300223 mod 2\u7b49\u4e8e1\uff0c\u6240\u4ee523\u662f\u5947\u6570\uff0c24 mod 2\u7b49\u4e8e0\uff0c24\u662f\u5076\u6570\u3002<\/li>\n<li><strong>\u5bf9\u4e00\u4e2a\u6570\u4f5c\u767e\u5206\u6570\u8fd0\u7b97<\/strong>\uff0c\u5c31\u662f\u7528\u8fd9\u4e2a\u6570\u6765\u4e58\u4ee5\u4e00\u4e2a\u767e\u5206\u6570\u3002\u8b6c\u5982\u4f60\u8981\u5f97\u5230279\u768454%\uff0c\u5c31\u662f\u75280\u300254*279\u3002\u8fd9\u5c31\u610f\u5473\u7740\u4e3a\u4ec0\u4e481.0\u7b49\u4e8e100%\uff0c0.0\u7b49\u4e8e0%\u3002<\/li>\n<li><strong>\u77e5\u9053\u8d1f\u6570\u662f\u4ec0\u4e48<\/strong>\u3002\u8d1f\u6570\u4e58\u4ee5\u8d1f\u6570\u7b49\u4e8e\u6b63\u6570\u3002\u8d1f\u6570\u4e58\u4ee5\u6b63\u6570\u7b49\u4e8e\u8d1f\u6570\u3002\u5c31\u8fd9\u4e48\u7b80\u5355\u3002<\/li>\n<li><strong>\u77e5\u9053\u7b1b\u5361\u5c14\u5750\u6807\u7cfb\u7edf<\/strong>\u3002\u5728\u7f16\u7a0b\u4e2d\uff0c\uff080,0\uff09\u4ee3\u8868\u5c4f\u5e55\u5de6\u4e0a\u89d2\uff0cY\u5750\u6807\u7684\u6b63\u8f74\u5f80\u4e0b\u3002<\/li>\n<li><strong>\u77e5\u9053\u52fe\u80a1\u5b9a\u5f8b<\/strong>\uff0c\u56e0\u4e3a\u5b83\u662f\u7528\u6765\u8ba1\u7b97\u7b1b\u5361\u5c14\u5750\u6807\u4e2d\u4e24\u70b9\u4e4b\u95f4\u7684\u8ddd\u79bb\u7684\u3002\u52fe\u80a1\u5b9a\u5f8ba^2 + b^2 = c^2\u3002(x1, y1)\u548c(x2, y2)\u4e24\u70b9\u4e4b\u95f4\u7684\u8ddd\u79bb\u7b49\u4e8e( (x1 \u2013 x2)^2 + (y1 \u2013 y2)^2 )\u3002<\/li>\n<li><strong>\u77e5\u9053\u5341\u8fdb\u5236\u3001\u4e8c\u8fdb\u5236\u3001\u5341\u516d\u8fdb\u5236<\/strong>\u3002\u5341\u8fdb\u5236\u5c31\u662f\u6211\u4eec\u901a\u5e38\u7528\u7684\u5341\u4e2a\u6570\uff1a0-9\u3002\u901a\u5e38\u8ba4\u4e3a\u8fd9\u4e2a\u5341\u8fdb\u5236\u7cfb\u7edf\u662f\u4eba\u7c7b\u53d1\u660e\u7684\uff0c\u56e0\u4e3a\u6211\u4eec\u6709\u5341\u4e2a\u624b\u6307\u3002<\/li>\n<\/ul>\n<p>\u7535\u8111\u91c7\u7528\u4e8c\u8fdb\u5236\u6570\u636e\uff0c\u53ea\u6709\u4e24\u4e2a\u6570\u5b57\uff1a0\u548c1\u3002\u8fd9\u662f\u56e0\u4e3a\u6211\u4eec\u7528\u7535\u5b50\u5143\u4ef6\u6765\u6784\u5efa\u7684\u7535\u8111\uff0c\u8ba9\u7535\u8111\u53ea\u8bc6\u522b\u4e24\u79cd\u72b6\u6001\u66f4\u4fbf\u5b9c\u4e9b\uff08\u4e00\u79cd\u4ee3\u88680\uff0c\u53e6\u4e00\u79cd\u4ee3\u88681\uff09\u3002<\/p>\n<p>\u6570\u662f\u4e00\u6837\u7684\uff0c\u4f46\u662f\u5728\u4e0d\u540c\u7684\u8fdb\u5236\u7cfb\u7edf\u91cc\u7684\u8868\u73b0\u5f62\u5f0f\u4e0d\u540c\uff0c\u56e0\u4e3a\u4e0d\u540c\u8fdb\u5236\u5305\u542b\u7684\u6570\u7684\u4e2a\u6570\u4e0d\u540c\u3002\u5341\u516d\u8fdb\u5236\u6bd4\u5341\u8fdb\u5236\u591a\u516d\u4e2a\u6570\u5b57\uff0c\u6240\u4ee5\u6211\u4eec\u7528A-F\u8868\u793a\u8d85\u8fc79\u7684\u6570\u3002\u80fd\u591f\u8868\u73b0\u8fd9\u4e9b\u8fdb\u5236\u7cfb\u7edf\u7684\u6700\u7b80\u5355\u65b9\u6cd5\u5c31\u662f\u7528\u4e00\u4e2a\u8ba1\u6570\u5668(odometer)\u3002\u4e0b\u9762\u4e09\u79cd\u4e0d\u540c\u7684\u8ba1\u6570\u5668\u663e\u793a\u7684\u662f\u540c\u4e00\u4e2a\u6570\uff0c\u4f46\u5728\u4e0d\u540c\u7684\u8fdb\u5236\u7cfb\u7edf\u4e2d\u7684\u5f62\u5f0f\u4e0d\u540c\uff1a<\/p>\n<p><img decoding=\"async\" class=\"\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyBpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw\/eHBhY2tldCBiZWdpbj0i77u\/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNSBXaW5kb3dzIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkJDQzA1MTVGNkE2MjExRTRBRjEzODVCM0Q0NEVFMjFBIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOkJDQzA1MTYwNkE2MjExRTRBRjEzODVCM0Q0NEVFMjFBIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6QkNDMDUxNUQ2QTYyMTFFNEFGMTM4NUIzRDQ0RUUyMUEiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6QkNDMDUxNUU2QTYyMTFFNEFGMTM4NUIzRDQ0RUUyMUEiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw\/eHBhY2tldCBlbmQ9InIiPz6p+a6fAAAAD0lEQVR42mJ89\/Y1QIABAAWXAsgVS\/hWAAAAAElFTkSuQmCC\" data-src=\"http:\/\/mmbiz.qpic.cn\/mmbiz\/fhujzoQe7TqCdjG9J1dic6up2dZqibxxiaxAhjwRqsLFnpvqbnI5OrGg6OJJw9DyajaKDTRnAlhZmibChfyibhiaC1ag\/0?wx_fmt=jpeg\" data-type=\"jpeg\" data-ratio=\"1.046875\" data-w=\"128\" \/><\/p>\n<p>\u4f60\u751a\u81f3\u4e0d\u9700\u8981\u77e5\u9053\u600e\u4e48\u4ece\u4e00\u4e2a\u8fdb\u5236\u7cfb\u7edf\u8f6c\u6362\u6210\u53e6\u4e00\u4e2a\u7cfb\u7edf\u3002\u6bcf\u79cd\u7f16\u7a0b\u8bed\u8a00\u90fd\u6709\u5e2e\u4f60\u8f6c\u6362\u7684\u51fd\u6570\u3002<\/p>\n<p>\uff08\u63d0\u793a\u4e00\u4e0b\uff0c\u5341\u516d\u8fdb\u5236\u7684\u4f7f\u7528\u662f\u56e0\u4e3a\u4e00\u4e2a\u5341\u516d\u8fdb\u5236\u7684\u6570\u53ef\u4ee5\u8868\u793a\u56db\u4e2a\u4e8c\u8fdb\u5236\u7684\u6570\u3002\u56e0\u4e3a\u5341\u516d\u8fdb\u5236\u4e2d\u76843\u548c\u4e8c\u8fdb\u5236\u4e2d\u76840011\u5bf9\u5e94\uff0c\u5341\u516d\u8fdb\u5236\u7684A\u548c\u4e8c\u8fdb\u5236\u76841010\u5bf9\u5e94\uff0c\u6240\u4ee5\u5341\u516d\u8fdb\u5236\u4e2d\u76843A\uff08\u5341\u8fdb\u5236\u768458\uff09\u53ef\u4ee5\u5199\u6210\u4e8c\u8fdb\u5236\u768400111010\u3002\u5341\u516d\u8fdb\u5236\u5728\u7f16\u7a0b\u4e2d\u7684\u4f7f\u7528\u662f\u56e0\u4e3a\u5b83\u662f\u5bf9\u4e8c\u8fdb\u5236\u7684\u7b80\u5316\u3002\u6ca1\u4eba\u559c\u6b22\u5199\u51fa\u7684\u6570\u5168\u662f0\u548c1\u3002\uff09<\/p>\n<p>\u5c31\u662f\u8fd9\u4e48\u591a\u4e86\u3002\u9664\u4e86\u8fdb\u5236\u7cfb\u7edf\u4ee5\u5916\uff0c\u4f60\u53ef\u4ee5\u5df2\u7ecf\u77e5\u9053\u7f16\u7a0b\u6240\u9700\u7684\u6570\u5b66\u77e5\u8bc6\u4e86\u3002\u867d\u7136\u666e\u904d\u8ba4\u4e3a\u7f16\u7a0b\u9700\u8981\u5b66\u4e60\u8bb8\u591a\u6570\u5b66\uff0c\u4f46\u5b9e\u9645\u4e0a\u5e76\u4e0d\u9700\u8981\u90a3\u4e48\u591a\u3002\u4f60\u53ef\u80fd\u4e3a\u4e86\u7f16\u5199\u4e00\u4e2a\u7a0b\u5e8f\uff0c\u8b6c\u5982\u8bf4\u5730\u9707\u6a21\u62df\u5668\uff0c\u800c\u9700\u8981\u5b66\u4e60\u6570\u5b66\u3002\u5176\u5b9e\u4f60\u66f4\u9700\u8981\u5b66\u4e60\u5730\u9707\u7684\u6570\u5b66\uff0c\u800c\u4e0d\u662f\u56e0\u4e3a\u8981\u7f16\u5199\u5730\u9707\u6a21\u62df\u5668\u800c\u5b66\u4e60\u6570\u5b66\u3002<\/p>\n<p><strong>\u67d0\u4e9b\u7f16\u7a0b\u9886\u57df\u4e2d\u66f4\u4e3a\u9ad8\u7ea7\u7684\u6570\u5b66<\/strong><\/p>\n<p>\u6709\u4e00\u4e9b\u9886\u57df\u4e2d\u9700\u8981\u66f4\u591a\u7684\u6570\u5b66\u77e5\u8bc6\uff08\u4f4695%\u7684\u8f6f\u4ef6\u4e2d\uff0c\u4f60\u90fd\u4e0d\u9700\u8981\u77e5\u9053\u5b83\u4eec\u3002\uff09<\/p>\n<p>\u67d0\u4e9b\u7f16\u7a0b\u9886\u57df\u4e2d\u66f4\u4e3a\u9ad8\u7ea7\u7684\u6570\u5b66<\/p>\n<p>\u6709\u4e00\u4e9b\u9886\u57df\u4e2d\u9700\u8981\u66f4\u591a\u7684\u6570\u5b66\u77e5\u8bc6\uff08\u4f4695%\u7684\u8f6f\u4ef6\u4e2d\uff0c\u4f60\u90fd\u4e0d\u9700\u8981\u77e5\u9053\u5b83\u4eec\u3002\uff09<\/p>\n<p>\u25cf <strong>3D\u6e38\u620f\u548c3D\u7ed8\u56fe <\/strong>\u2014 3D\u901a\u5e38\u9700\u8981\u6d89\u53ca\u4e09\u89d2\u51fd\u6570\u548c\u7ebf\u6027\u4ee3\u6570\uff08\u7528\u77e9\u9635\u6765\u89e3\u51b3\u95ee\u9898\u7684\u6570\u5b66\uff09\u3002\u5f53\u7136\uff0c\u6709\u8bb8\u591a3D\u56fe\u5f62\u5e93\u5df2\u7ecf\u5b9e\u73b0\u4e86\u8fd9\u4e9b\u6570\u5b66\u7f16\u7a0b\uff0c\u4f60\u4e0d\u9700\u8981\u77e5\u9053\u8fd9\u4e9b\u6570\u5b66\u3002<\/p>\n<p>\u25cf <strong>2D\u7269\u7406\uff08\u8b6c\u5982\u6124\u6012\u7684\u5c0f\u9e1f\uff09\u548c3D\u7269\u7406\uff08\u8b6c\u5982\u8bb8\u591a\u6d41\u884c\u76843D\u6e38\u620f\uff09<\/strong> \u2014 \u4e3a\u4e86\u5199\u6d89\u53ca\u5230\u7269\u7406\u7684\u7f16\u7a0b\uff0c\u4f60\u9700\u8981\u5b66\u4e60\u4e00\u4e9b\u7269\u7406\u65b9\u7a0b\u548c\u516c\u5f0f\uff08\u5c24\u5176\u662f\u529b\u5b66\uff0c\u5982\u5f39\u529b\uff0c\u91cd\u529b\uff0c\u7403\u6eda\u4e0b\u659c\u5761\u7b49\u7269\u7406\u3002\uff09\u7136\u800c\uff0c\u5df2\u7ecf\u6709\u4e00\u4e9b\u7269\u7406\u5f15\u64ce\u548c\u8f6f\u4ef6\u5e93\u5e2e\u4f60\u5b9e\u73b0\u4e86\uff0c\u6240\u4ee5\u4f60\u4e5f\u4e0d\u9700\u8981\u77e5\u9053\u6e38\u620f\uff08\u5982\u6124\u6012\u7684\u5c0f\u9e1f\uff09\u4e2d\u7684\u7269\u7406\u516c\u5f0f\u3002<\/p>\n<p>\u25cf <strong>\u52a0\u5bc6\u5b66 <\/strong>\u2014 \u4e8b\u5b9e\u4e0a\u6211\u6307\u7684\u662fRSA\u3002\u4f60\u9700\u8981\u77e5\u9053\u8d28\u6570\u7684\u6709\u5173\u77e5\u8bc6\uff0c\u4ee5\u53ca\u5982\u4f55\u6c42\u6700\u5927\u516c\u7ea6\u6570\uff08\u5176\u5b9e\u662f\u4e2a\u975e\u5e38\u7b80\u5355\u7684\u7b97\u6cd5\uff0c\u8fd8\u6709\u8bb8\u591a\u7f16\u7a0b\u8bed\u8a00\u4e2d\u90fd\u6709gcd()\u51fd\u6570\uff0c\u5e2e\u4f60\u6c42\u89e3\u6700\u5927\u516c\u7ea6\u6570\uff09\u5176\u4ed6\u7684\u7f16\u7801\u5927\u90e8\u5206\u5c31\u662f\u5c06\u6570\u636e\u6309\u7167\u67d0\u79cd\u6b65\u9aa4\u632a\u52a8\u3002\u4e3e\u4e2a\u4f8b\u5b50\uff0c\u4e0b\u9762\u7684flash\u5c31\u662fAES\u201cRijndael\u201d\u7f16\u7801\u7684\u6b65\u9aa4\u3002\u6240\u6709\u7684\u6b65\u9aa4\u5305\u542b\u7528\u4e00\u4e9b\u6570\u51cf\u53bb\u53e6\u4e00\u4e9b\u6570\uff0c\u5c06\u884c\u5411\u4e0a\u79fb\uff0c\u5c06\u5217\u6570\u5b57\u6253\u4e71\uff0c\u518d\u4f5c\u7b80\u5355\u7684\u52a0\u6cd5\u8fd0\u7b97\u3002<\/p>\n<p>\u5982\u679c\u4f60\u8981\u5199\u4f60\u81ea\u5df1\u7684\u52a0\u5bc6\u7b97\u6cd5\uff08\u901a\u5e38\u4e0d\u9700\u8981\u4f60\u505a\uff0c\u56e0\u4e3a\u5df2\u7ecf\u6709\u8bb8\u591a\u5f88\u597d\u7684\u5de5\u5177\u4e86\uff0c\u5e76\u4e14\u5982\u679c\u4f60\u4e0d\u662f\u52a0\u5bc6\u5b66\u7684\u4e13\u5bb6\u7684\u8bdd\uff0c\u4f60\u7684\u7a0b\u5e8f\u4e5f\u8bb8\u4f1a\u5f88\u5bb9\u6613\u88ab\u7834\u89e3\u3002\uff09\u5982\u679c\u4f60\u4ec5\u4ec5\u60f3\u52a0\u5bc6\u4e00\u4e9b\u6570\u636e\u7684\u8bdd\uff0c\u5df2\u7ecf\u6709\u8bb8\u591a\u52a0\u5bc6\u548c\u89e3\u5bc6\u7684\u8f6f\u4ef6\u5e93\u4e86\u3002<\/p>\n<p>\u6240\u4ee5\u5c31\u7b97\u662f\u4ee5\u4e0a\u7684\u60c5\u51b5\uff0c\u4f60\u4e5f\u4e0d\u9700\u8981\u771f\u6b63\u7684\u77e5\u90533D\u56fe\u50cf\uff0c\u7269\u7406\u6216\u8005\u52a0\u5bc6\u7684\u6570\u5b66\u3002\u4f60\u53ea\u9700\u8981\u5b66\u4e60\u8fd0\u7528\u8f6f\u4ef6\u5e93\u5c31\u884c\u4e86\u3002<\/p>\n<p><strong>\u7f16\u7a0b\u9700\u8981\u5b66\u4e60\u4ec0\u4e48\uff1f<\/strong><\/p>\n<p>\u4f60\u9700\u8981\u5b66\u4e60\u7684\u662f\u5982\u4f55\u5efa\u6a21\u548c\u8bbe\u8ba1\u7b97\u6cd5\u3002\u8fd9\u610f\u5473\u7740\uff0c\u5982\u4f55\u5c06\u771f\u5b9e\u4e16\u754c\u7684\u8fd0\u7b97\u6216\u8005\u6570\u636e\u5904\u7406\u62bd\u8c61\u51fa\u6765\uff0c\u5199\u51fa\u4ee3\u7801\uff0c\u8ba9\u8ba1\u7b97\u673a\u6765\u5e2e\u4f60\u8fd0\u7b97\u3002\u4f8b\u5982\uff0c\u5728\u6e38\u620f\u201c\u9f99\u4e0e\u5730\u4e0b\u57ce\u201d\uff08Dungeons and Dragons\uff09\u4e2d\uff0c\u89d2\u8272\u548c\u602a\u517d\u90fd\u6709\u8bb8\u591a\u4e0d\u540c\u7684\u6218\u6597\u7edf\u8ba1\u503c\uff1a<\/p>\n<p>\u25cf \u751f\u547d\u503c\uff08Hit points\uff09\u662f\u4e00\u4e2a\u4eba\u6b7b\u524d\u6240\u80fd\u7ecf\u53d7\u7684\u4f24\u5bb3\u503c\u3002\u8d8a\u9ad8\u7684\u751f\u547d\u503c\u5c31\u610f\u5473\u7740\u53ef\u4ee5\u7ecf\u53d7\u66f4\u591a\u7684\u4f24\u5bb3\u3002<\/p>\n<p>\u25cf \u9632\u5fa1\u7b49\u7ea7\uff08armor class\uff09\u662f\u5bf9\u4f60\u7684\u6b66\u5668\u9632\u5fa1\u80fd\u529b\u7684\u91cf\u5ea6\u3002\u9632\u5fa1\u503c\u8d8a\u4f4e\uff0c\u6b66\u5668\u7684\u9632\u5fa1\u80fd\u529b\u8d8a\u9ad8\u3002<\/p>\n<p>\u25cf THAC0\uff08\u8bfb\u4f5c\u201cthay-co\u201d\uff0c\u201cTo Hit Armor Class 0\u201d\uff09\uff0c\u662f\u5bf9\u4e00\u4e2a\u4eba\u8fdb\u884c\u6709\u6548\u653b\u51fb\u7684\u80fd\u529b\u7684\u6d4b\u91cf\u3002THAC0\u503c\u8d8a\u4f4e\uff0c\u653b\u51fb\u8d8a\u51c6\u3002<\/p>\n<p>\u25cf \u6b66\u5668\u7684\u653b\u51fb\u529b\u7528\u7c7b\u4f3c1d6+2\u6765\u8868\u793a\uff0c\u5b83\u8868\u793a\u6447\u4e00\u4e2a\u516d\u9762\u9ab0\u5f97\u5230\u7684\u503c\uff0c\u7136\u540e\u518d\u52a02\u30022d4\u5c31\u662f\u64472\u4e2a4\u9762\u9ab0\uff0c\u7136\u540e\u5c06\u5b83\u4eec\u76f8\u52a0\u3002\uff08\u201c\u9f99\u4e0e\u5730\u4e0b\u57ce\u201d\u91c7\u7528\u7684\u662f4\uff0c6\uff0c8\uff0c10\uff0c12\u548c20\u9762\u9ab0\u3002\uff09<\/p>\n<p><img decoding=\"async\" class=\"\" src=\"http:\/\/mmbiz.qpic.cn\/mmbiz\/fhujzoQe7TqCdjG9J1dic6up2dZqibxxiaxNR1clriagic23Y2F6ppHmUWcgjEdYtpcyxJjBSKdHCM2BpvFxicmBkFeA\/640?wx_fmt=jpeg&amp;wxfrom=5&amp;wx_lazy=1\" data-src=\"http:\/\/mmbiz.qpic.cn\/mmbiz\/fhujzoQe7TqCdjG9J1dic6up2dZqibxxiaxNR1clriagic23Y2F6ppHmUWcgjEdYtpcyxJjBSKdHCM2BpvFxicmBkFeA\/0?wx_fmt=jpeg\" data-ratio=\"0.696\" data-w=\"500\" data-type=\"jpeg\" \/><\/p>\n<p>\u8981\u770b\u653b\u51fb\u8005\u6253\u9632\u5fa1\u8005\uff0c\u8ba9\u653b\u51fb\u8005\u6447\u52a8\u4e00\u4e2a20\u9762\u9ab0\u3002\u5982\u679c\u8fd9\u4e2a\u6570\u5b57\u5927\u4e8e\u6216\u7b49\u4e8e\u653b\u51fb\u8005\u7684THAC0\u51cf\u53bb\u9632\u5fa1\u8005\u7684\u9632\u5fa1\u80fd\u529b\uff0c\u90a3\u4e48\u8fd9\u4e2a\u653b\u51fb\u5c31\u6210\u529f\uff0c\u9632\u5fa1\u8005\u5c06\u53d7\u5230\u4f24\u5bb3\u3002\u4e0d\u7136\uff0c\u9632\u5fa1\u8005\u5c31\u963b\u51fb\u4e86\u8fd9\u4e2a\u653b\u51fb\uff0c\u5e76\u4e14\u4e0d\u8d39\u8840\u3002<\/p>\n<p>\u6211\u4eec\u5047\u8bbe\u4e24\u4e2a\u4eba\u7269\uff0cAlice\u548cBob\uff0c\u5979\u4eec\u5177\u6709\u4ee5\u4e0b\u503c\uff1a<\/p>\n<p>\u25cf Alice: HP 14, AC 5, THAC0 18, DAMAGE 1d6<\/p>\n<p>\u25cf Bob: HP 12, AC 7, THAC0 16, DAMAGE 2d4<\/p>\n<p>\u6240\u4ee5Alice\u6709\u66f4\u591a\u7684\u751f\u547d\u503c\u548c\u9632\u5fa1\u529b\uff08\u8bb0\u4f4f\uff0cAC\u8d8a\u4f4e\u8d8a\u597d\uff09\u3002\u4f46\u662fBob\u66f4\u53ef\u80fd\u6210\u529f\u51fb\u4e2d\u5bf9\u65b9\uff08\u8bb0\u4f4f\uff0cTHAC0\u8d8a\u4f4e\u8d8a\u597d\uff09\uff0c\u5e76\u9020\u6210\u66f4\u591a\u7684\u4f24\u5bb3\u3002\u6211\u4eec\u8bf4Bob\u7684\u653b\u51fb\u529b\u66f4\u5f3a\u662f\u56e0\u4e3a2d4\u53ef\u4ee5\u9020\u62102-8\u70b9\u4f24\u5bb3\uff0c\u800cAlice\u76841d6\u53ea\u80fd\u9020\u62101-6\u70b9\u4f24\u5bb3\u3002\uff08\u5982\u679c\u4f60\u61c2\u7edf\u8ba1\u5b66\uff0c\u4f60\u53ef\u4ee5\u8ba1\u7b97\u51faBob\u7684\u671f\u671b\u4f24\u5bb3\u503c\u662f5\uff0c\u6bd4Alice\u76843\u30025\u8981\u9ad8\u3002\uff09<\/p>\n<p>\u4f60\u4f1a\u6253\u8d4cAlice\u6216\u8005Bob\u4f1a\u8d62\u5f97\u6bd4\u8d5b\u5bf9\u5417\uff1f\u5f88\u96be\u8bb2\u8c01\u4f1a\u8d62\uff0c\u4ed6\u4eec\u770b\u8d77\u6765\u52bf\u5747\u529b\u654c\u3002\u5c3d\u7ba1\u53ef\u80fd\u4f60\u7684\u7edf\u8ba1\u5b66\u5b66\u5f97\u5f88\u597d\uff0c\u4f46\u505a\u8fd9\u4e2a\u8ba1\u7b97\u5c06\u4f1a\u5341\u5206\u5934\u75bc\u3002\u7f16\u5199\u201c\u9f99\u4e0e\u5730\u4e0b\u57ce\u201d\u7684\u7a0b\u5e8f\uff08\u6a21\u62df\u6218\u6597\u8fc7\u7a0b\uff09\uff0c\u4f60\u751a\u81f3\u4e0d\u9700\u8981\u77e5\u9053\u7edf\u8ba1\u5b66\u3002\u4ec5\u4ec5\u9700\u8981\u8fd0\u884c\u51e0\u767e\u6b21\u6216\u8005\u51e0\u5343\u6b21\u6218\u6597\uff0c\u770b\u770b\u8c01\u8d62\u5f97\u66f4\u591a\u3002<\/p>\n<p>\u4e0b\u9762\u662f\u7528Python\u5199\u7684\u7a0b\u5e8f\uff1a\uff08\u4e0b\u8f7d\u4ee3\u7801 http:\/\/inventwithpython.com\/dnd_simulator.py\uff09<\/p>\n<blockquote><p>import random, copy<\/p>\n<p>NUM_FIGHTS = 1<\/p>\n<p>VERBOSE = True<\/p>\n<p># Lower thac0 and lower ac values are better. Higher damage &amp; hp values are better.<\/p>\n<p>aliceTemplate = {&#8216;name&#8217;: &#8216;Alice&#8217;, &#8216;hp&#8217;: 14, &#8216;ac&#8217;: 5, &#8216;thac0&#8217;: 18, &#8216;dmgnum&#8217;: 1, &#8216;dmgsize&#8217;:6, &#8216;dmgmod&#8217;: 0}<\/p>\n<p>bobTemplate \u00a0 = {&#8216;name&#8217;: &#8216;Bob&#8217;, \u00a0 &#8216;hp&#8217;: 12, &#8216;ac&#8217;: 7, &#8216;thac0&#8217;: 16, &#8216;dmgnum&#8217;: 2, &#8216;dmgsize&#8217;:4, &#8216;dmgmod&#8217;: 0}<\/p>\n<p>def display(s):<\/p>\n<p>if VERBOSE:<\/p>\n<p>print(s)<\/p>\n<p>def attack(attacker, defender):<\/p>\n<p>if random.randint(1, 20) &gt;= attacker[&#8216;thac0&#8217;] &#8211; defender[&#8216;ac&#8217;]:<\/p>\n<p>damage = 0<\/p>\n<p>for i in range(attacker[&#8216;dmgnum&#8217;]):<\/p>\n<p>damage += random.randint(1, attacker[&#8216;dmgsize&#8217;])<\/p>\n<p>damage += attacker[&#8216;dmgmod&#8217;]<\/p>\n<p>display(&#8216;%s (%s hp) hits %s (%s hp) for %s points of damage. %s is reduced to %s hp.&#8217; % (attacker[&#8216;name&#8217;], attacker[&#8216;hp&#8217;], defender[&#8216;name&#8217;], defender[&#8216;hp&#8217;], damage, defender[&#8216;name&#8217;], defender[&#8216;hp&#8217;] &#8211; damage))<\/p>\n<p>defender[&#8216;hp&#8217;] -= damage<\/p>\n<p>else:<\/p>\n<p>display(&#8216;%s misses %s.&#8217; % (attacker[&#8216;name&#8217;], defender[&#8216;name&#8217;]))<\/p>\n<p>aliceWins = 0<\/p>\n<p>bobWins = 0<\/p>\n<p>for i in range(NUM_FIGHTS):<\/p>\n<p>display(&#8216;======================&#8217;)<\/p>\n<p>display(&#8216;Start of combat #%s&#8217; % (i+1))<\/p>\n<p>alice = copy.deepcopy(aliceTemplate)<\/p>\n<p>bob = copy.deepcopy(bobTemplate)<\/p>\n<p>while True:<\/p>\n<p>attack(alice, bob)<\/p>\n<p>if bob[&#8216;hp&#8217;] &lt;= 0:<\/p>\n<p>break<\/p>\n<p>attack(bob, alice)<\/p>\n<p>if alice[&#8216;hp&#8217;] &lt;= 0:<\/p>\n<p>break<\/p>\n<p>if alice[&#8216;hp&#8217;] &lt;= 0:<\/p>\n<p>display(&#8216;Alice has died.&#8217;)<\/p>\n<p>bobWins += 1<\/p>\n<p>if bob[&#8216;hp&#8217;] &lt;= 0:<\/p>\n<p>display(&#8216;Bob has died.&#8217;)<\/p>\n<p>aliceWins += 1<\/p>\n<p>print()<\/p>\n<p>print(&#8216;Alice won %s (%s%%) fights. Bob won %s (%s%%) fights.&#8217; % (aliceWins, round(aliceWins \/ NUM_FIGHTS * 100, 2), bobWins, round(bobWins \/ NUM_FIGHTS * 100, 2)))<\/p><\/blockquote>\n<p>\u5f53\u8fd0\u884c\u8fd9\u4e2a\u7a0b\u5e8f\u65f6\uff0c\u4f60\u4f1a\u770b\u5230\uff1a<\/p>\n<blockquote><p>Start of combat #1<\/p>\n<p>Alice misses Bob.<\/p>\n<p>Bob (12 hp) hits Alice (14 hp) for 6 points of damage. Alice is reduced to 8 hp.<\/p>\n<p>Alice misses Bob.<\/p>\n<p>Bob misses Alice.<\/p>\n<p>Alice misses Bob.<\/p>\n<p>Bob misses Alice.<\/p>\n<p>Alice misses Bob.<\/p>\n<p>Bob misses Alice.<\/p>\n<p>Alice (8 hp) hits Bob (12 hp) for 5 points of damage. Bob is reduced to 7 hp.<\/p>\n<p>Bob misses Alice.<\/p>\n<p>Alice misses Bob.<\/p>\n<p>Bob misses Alice.<\/p>\n<p>Alice misses Bob.<\/p>\n<p>Bob (7 hp) hits Alice (8 hp) for 2 points of damage. Alice is reduced to 6 hp.<\/p>\n<p>Alice (6 hp) hits Bob (7 hp) for 6 points of damage. Bob is reduced to 1 hp.<\/p>\n<p>Bob misses Alice.<\/p>\n<p>Alice (6 hp) hits Bob (1 hp) for 1 points of damage. Bob is reduced to 0 hp.<\/p>\n<p>Bob has died.<\/p>\n<p>Alice won 1 (100.0%) fights. Bob won 0 (0.0%) fights.<\/p><\/blockquote>\n<p>\u4f46\u662f\u53ef\u80fdAlice\u6b63\u597d\u5728\u67d0\u4e00\u6b21\u6218\u6597\u4e2d\u5f88\u5e78\u8fd0\u3002\u8ba9\u6211\u4eec\u5173\u6389\u8f93\u51fa\u518d\u91cd\u65b0\u8fd0\u884c\u7a0b\u5e8f\uff08\u5728\u5c4f\u5e55\u8f93\u51fa\u6bd4\u8fd0\u884c\u7a0b\u5e8f\u66f4\u8017\u65f6\u95f4\uff09\uff0c\u5f53\u6218\u6597\u6b21\u6570\u8fbe\u523030\uff0c000\u6b21\u65f6\uff08\u5c06NUM_FIGHTS\u6539\u621030000\uff0cVERBOSE\u53d8\u91cf\u53d8\u6210False\uff09\uff1a<\/p>\n<blockquote><p>Alice \u8d62\u5f9712909 (43.03%)\u6b21\u6218\u6597. Bob\u8d62\u5f9717091 (56.97%)\u6218\u6597\u3002<\/p><\/blockquote>\n<p>\u6240\u4ee5\u6211\u4eec\u770b\u5230\u4f7f\u7528\u4e0a\u9762\u7684\u6570\u503c\uff0cBob\u7a0d\u7a0d\u5360\u5148\u3002\u7535\u8111\u8fdb\u884c\u4e8630\uff0c000\u6b21\u6218\u6597\u6a21\u62df\u3002\u5982\u679c\u6211\u4eec\u7528\u7b14\u548c\u7eb8\u8fd8\u6709\u9ab0\u6765\u8fdb\u884c30000\u6b21\u6218\u6597\u6a21\u62df\u7684\u8bdd\uff0c\u53ef\u80fd\u9700\u8981\u51e0\u4e2a\u6708\u6765\u7b97\u51fa\u7ed3\u679c\uff0c\u800c\u6211\u7684\u7b14\u8bb0\u672c\u4ec5\u7528\u4e868\u79d2\u3002<\/p>\n<p>\u90a3\u4e48\u5982\u679cAlice\u7684\u751f\u547d\u503c\u4ece14\u589e\u52a0\u523020\u5462\u3002\u8c01\u4f1a\u8d62\u5462\uff1f<\/p>\n<blockquote><p>Alice\u8d62\u5f9719438 (64.79%)\u6b21\u6218\u6597. Bob\u8d62\u5f9710562 (35.21%)\u6b21\u6218\u6597.<\/p><\/blockquote>\n<p>\u6211\u4eec\u770b\u5230\u7ed9Alice\u589e\u52a06\u70b9\u751f\u547d\u503c\uff0c\u7ed3\u679c\u5012\u8fc7\u6765\u4e86\uff0cAlice\u5360\u5148\u4e86\u3002\u90a3\u4e48\u5982\u679cAlice\u7684\u751f\u547d\u503c\u53ea\u662f\u589e\u52a0\u523016\u5462\uff1f<\/p>\n<blockquote><p>Alice\u8d62\u5f9715176 (50.59%)\u6b21\u6218\u6597\u554a. Bob\u8d62\u5f9714824 (49.41%)\u6b21\u6218\u6597.<\/p><\/blockquote>\n<p>\u6240\u4ee5\u4ec5\u4ec5\u589e\u52a02\u4e2a\u751f\u547d\u503c\uff0c\u5c31\u5df2\u7ecf\u8db3\u591f\u6273\u56deBob\u66f4\u5f3a\u653b\u51fb\u529b\u7684\u80dc\u7b97\u3002<\/p>\n<p>\u6765\u770b\u8fd9\u4e2a\u7a0b\u5e8f\uff0c\u5b83\u53ea\u7528\u4e86\u52a0\u51cf\u4e58\u9664\u6765\u8ba1\u7b97\u4e00\u4e2a\u767e\u5206\u6bd4\u3002\u751a\u81f3\u5728\u66f4\u590d\u6742\u7684\u7a0b\u5e8f\u4e2d\uff0c\u9700\u8981\u8868\u793amagic spells\uff0c\u6cbb\u6108\u90e8\u4f4d\uff0c\u591a\u6b21\u653b\u51fb\uff0c\u5728\u6218\u6597\u4e2d\u5207\u6362\u6b66\u5668\u7b49\u4e0d\u540c\u6548\u679c\u65f6\uff0c\u6211\u4eec\u4e5f\u4e0d\u9700\u8981\u77e5\u9053\u66f4\u591a\u7684\u6570\u5b66\u4e86\u3002<\/p>\n<p>\u5f53\u7136\uff0c\u53bb\u5b66\u66f4\u591a\u7684\u6570\u5b66\u5427\u3002\u53ef\u4ee5\u8ba9\u4f60\u6210\u4e3a\u66f4\u51fa\u8272\u7684\u7a0b\u5e8f\u5458\u3002\u4f46\u662f\u4e3a\u4e86\u5b66\u4e60\u7f16\u7a0b\u9700\u8981\u591a\u5c11\u6570\u5b66\uff1f\u771f\u7684\u975e\u5e38\u5c11\u3002<\/p>\n<p>\u66f4\u65b0\uff1a\u6211\u60f3\u6211\u5e94\u8be5\u5728\u57fa\u672c\u77e5\u8bc6\u70b9\u4e2d\u589e\u52a0\u57fa\u672c\u4ee3\u6570\uff0c\u4f46\u4ec5\u4ec5\u9700\u8981\u77e5\u9053\u7684\u5982 \u5982\u679cX * 3 = 12\uff0c\u77e5\u9053X\u7b49\u4e8e4\u3002<\/p>\n<p>\u2014\u2014\u2014\u2014\u2014\u2014<\/p>\n<p>\u867d\u7136\u5927\u591a\u6570\u5f00\u53d1\u4eba\u5458\u4f1a\u544a\u8bc9\u4f60\uff0c\u4ed6\u4eec\u5728\u5de5\u4f5c\u4e2d\u4ece\u6765\u4e0d\u9700\u8981\u6570\u5b66\uff0c\u4f46\u662f\u7ecf\u8fc7\u4e00\u756a\u6c89\u601d\u540e\uff0c\u6211\u6709\u4e86\u4e2a\u60f3\u6cd5\uff1a\u5c31\u662f\u53cd\u9a6c\u65af\u6d1b\u7684\u9524\u5b50\u7406\u8bba\uff1a\u5f53\u4f60\u6709\u4e00\u628a\u9524\u5b50\uff0c\u4f60\u4f1a\u628a\u4e00\u5207\u770b\u6210\u662f\u9489\u5b50\u3002<\/p>\n<p>\u672c\u6587\u4ec5\u4e3a Al Sweigart \u4e00\u5bb6\u4e4b\u8a00\uff0c\u518d\u63a8\u8350 Alan Skorkin \u7684\u8fd9\u7bc7\u6587\u7ae0\u300a<a href=\"http:\/\/mp.weixin.qq.com\/s?__biz=MzA4MjEyNTA5Mw==&amp;mid=405018977&amp;idx=1&amp;sn=08999f0a47875746a8d74a37ce6d649a&amp;scene=21#wechat_redirect\" target=\"_blank\">\u6570\u5b66\u662f\u6210\u5c31\u5353\u8d8a\u5f00\u53d1\u4eba\u5458\u7684\u5fc5\u5907\u6280\u80fd<\/a>\u300b<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u82f1\u6587\uff1aAl Sweigart \u8bd1\u6587\uff1a\u4f2f\u4e50\u5728\u7ebf &#8211; \u5510\u5c0f\u5a1f \u94fe\u63a5\uff1ahttp:\/\/blog.jobbo &hellip; <a href=\"http:\/\/blog.softwareclues.com\/zh\/%e7%bc%96%e7%a8%8b%e9%9c%80%e8%a6%81%e7%9f%a5%e9%81%93%e5%a4%9a%e5%b0%91%e6%95%b0%e5%ad%a6%e7%9f%a5%e8%af%86%ef%bc%9f\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u201c\u7f16\u7a0b\u9700\u8981\u77e5\u9053\u591a\u5c11\u6570\u5b66\u77e5\u8bc6\uff1f\u201d<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_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","enabled":false}}},"categories":[49],"tags":[73,78],"translation":{"provider":"WPGlobus","version":"2.12.2","language":"zh","enabled_languages":["en","zh"],"languages":{"en":{"title":true,"content":true,"excerpt":false},"zh":{"title":true,"content":true,"excerpt":false}}},"jetpack_publicize_connections":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u7f16\u7a0b\u9700\u8981\u77e5\u9053\u591a\u5c11\u6570\u5b66\u77e5\u8bc6\uff1f - \u8f6f\u4ef6\u542f\u793a\u5f55<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/blog.softwareclues.com\/zh\/\u7f16\u7a0b\u9700\u8981\u77e5\u9053\u591a\u5c11\u6570\u5b66\u77e5\u8bc6\uff1f\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u7f16\u7a0b\u9700\u8981\u77e5\u9053\u591a\u5c11\u6570\u5b66\u77e5\u8bc6\uff1f - \u8f6f\u4ef6\u542f\u793a\u5f55\" \/>\n<meta property=\"og:url\" content=\"http:\/\/blog.softwareclues.com\/zh\/\u7f16\u7a0b\u9700\u8981\u77e5\u9053\u591a\u5c11\u6570\u5b66\u77e5\u8bc6\uff1f\" \/>\n<meta property=\"og:site_name\" content=\"\u8f6f\u4ef6\u542f\u793a\u5f55\" \/>\n<meta property=\"article:published_time\" content=\"2016-05-02T02:55:03+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2016-05-02T02:59:19+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/mmbiz.qpic.cn\/mmbiz\/fhujzoQe7TqCdjG9J1dic6up2dZqibxxiaxNR1clriagic23Y2F6ppHmUWcgjEdYtpcyxJjBSKdHCM2BpvFxicmBkFeA\/640?wx_fmt=jpeg&amp;wxfrom=5&amp;wx_lazy=1\" \/>\n<meta name=\"author\" content=\"Editorial Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"Editorial Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"14 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"http:\/\/blog.softwareclues.com\/zh\/%e7%bc%96%e7%a8%8b%e9%9c%80%e8%a6%81%e7%9f%a5%e9%81%93%e5%a4%9a%e5%b0%91%e6%95%b0%e5%ad%a6%e7%9f%a5%e8%af%86%ef%bc%9f\",\"url\":\"http:\/\/blog.softwareclues.com\/zh\/%e7%bc%96%e7%a8%8b%e9%9c%80%e8%a6%81%e7%9f%a5%e9%81%93%e5%a4%9a%e5%b0%91%e6%95%b0%e5%ad%a6%e7%9f%a5%e8%af%86%ef%bc%9f\",\"name\":\"\u7f16\u7a0b\u9700\u8981\u77e5\u9053\u591a\u5c11\u6570\u5b66\u77e5\u8bc6\uff1f - \u8f6f\u4ef6\u542f\u793a\u5f55\",\"isPartOf\":{\"@id\":\"http:\/\/blog.softwareclues.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"http:\/\/blog.softwareclues.com\/zh\/%e7%bc%96%e7%a8%8b%e9%9c%80%e8%a6%81%e7%9f%a5%e9%81%93%e5%a4%9a%e5%b0%91%e6%95%b0%e5%ad%a6%e7%9f%a5%e8%af%86%ef%bc%9f#primaryimage\"},\"image\":{\"@id\":\"http:\/\/blog.softwareclues.com\/zh\/%e7%bc%96%e7%a8%8b%e9%9c%80%e8%a6%81%e7%9f%a5%e9%81%93%e5%a4%9a%e5%b0%91%e6%95%b0%e5%ad%a6%e7%9f%a5%e8%af%86%ef%bc%9f#primaryimage\"},\"thumbnailUrl\":\"http:\/\/mmbiz.qpic.cn\/mmbiz\/fhujzoQe7TqCdjG9J1dic6up2dZqibxxiaxNR1clriagic23Y2F6ppHmUWcgjEdYtpcyxJjBSKdHCM2BpvFxicmBkFeA\/640?wx_fmt=jpeg&amp;wxfrom=5&amp;wx_lazy=1\",\"datePublished\":\"2016-05-02T02:55:03+00:00\",\"dateModified\":\"2016-05-02T02:59:19+00:00\",\"author\":{\"@id\":\"http:\/\/blog.softwareclues.com\/#\/schema\/person\/4c47e4e97a658930b6c0e90f4a4eda82\"},\"breadcrumb\":{\"@id\":\"http:\/\/blog.softwareclues.com\/zh\/%e7%bc%96%e7%a8%8b%e9%9c%80%e8%a6%81%e7%9f%a5%e9%81%93%e5%a4%9a%e5%b0%91%e6%95%b0%e5%ad%a6%e7%9f%a5%e8%af%86%ef%bc%9f#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/blog.softwareclues.com\/zh\/%e7%bc%96%e7%a8%8b%e9%9c%80%e8%a6%81%e7%9f%a5%e9%81%93%e5%a4%9a%e5%b0%91%e6%95%b0%e5%ad%a6%e7%9f%a5%e8%af%86%ef%bc%9f\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"http:\/\/blog.softwareclues.com\/zh\/%e7%bc%96%e7%a8%8b%e9%9c%80%e8%a6%81%e7%9f%a5%e9%81%93%e5%a4%9a%e5%b0%91%e6%95%b0%e5%ad%a6%e7%9f%a5%e8%af%86%ef%bc%9f#primaryimage\",\"url\":\"http:\/\/mmbiz.qpic.cn\/mmbiz\/fhujzoQe7TqCdjG9J1dic6up2dZqibxxiaxNR1clriagic23Y2F6ppHmUWcgjEdYtpcyxJjBSKdHCM2BpvFxicmBkFeA\/640?wx_fmt=jpeg&amp;wxfrom=5&amp;wx_lazy=1\",\"contentUrl\":\"http:\/\/mmbiz.qpic.cn\/mmbiz\/fhujzoQe7TqCdjG9J1dic6up2dZqibxxiaxNR1clriagic23Y2F6ppHmUWcgjEdYtpcyxJjBSKdHCM2BpvFxicmBkFeA\/640?wx_fmt=jpeg&amp;wxfrom=5&amp;wx_lazy=1\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/blog.softwareclues.com\/zh\/%e7%bc%96%e7%a8%8b%e9%9c%80%e8%a6%81%e7%9f%a5%e9%81%93%e5%a4%9a%e5%b0%91%e6%95%b0%e5%ad%a6%e7%9f%a5%e8%af%86%ef%bc%9f#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\/\/blog.softwareclues.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u7f16\u7a0b\u9700\u8981\u77e5\u9053\u591a\u5c11\u6570\u5b66\u77e5\u8bc6\uff1f\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/blog.softwareclues.com\/#website\",\"url\":\"http:\/\/blog.softwareclues.com\/\",\"name\":\"\u8f6f\u4ef6\u542f\u793a\u5f55\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/blog.softwareclues.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"http:\/\/blog.softwareclues.com\/#\/schema\/person\/4c47e4e97a658930b6c0e90f4a4eda82\",\"name\":\"Editorial Team\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"http:\/\/blog.softwareclues.com\/#\/schema\/person\/image\/\",\"url\":\"http:\/\/2.gravatar.com\/avatar\/e4fb391d9f5bb29583ed9579324a5e17?s=96&d=mystery&r=g\",\"contentUrl\":\"http:\/\/2.gravatar.com\/avatar\/e4fb391d9f5bb29583ed9579324a5e17?s=96&d=mystery&r=g\",\"caption\":\"Editorial Team\"},\"url\":\"http:\/\/blog.softwareclues.com\/zh\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u7f16\u7a0b\u9700\u8981\u77e5\u9053\u591a\u5c11\u6570\u5b66\u77e5\u8bc6\uff1f - \u8f6f\u4ef6\u542f\u793a\u5f55","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/blog.softwareclues.com\/zh\/\u7f16\u7a0b\u9700\u8981\u77e5\u9053\u591a\u5c11\u6570\u5b66\u77e5\u8bc6\uff1f","og_locale":"zh_CN","og_type":"article","og_title":"\u7f16\u7a0b\u9700\u8981\u77e5\u9053\u591a\u5c11\u6570\u5b66\u77e5\u8bc6\uff1f - \u8f6f\u4ef6\u542f\u793a\u5f55","og_url":"http:\/\/blog.softwareclues.com\/zh\/\u7f16\u7a0b\u9700\u8981\u77e5\u9053\u591a\u5c11\u6570\u5b66\u77e5\u8bc6\uff1f","og_site_name":"\u8f6f\u4ef6\u542f\u793a\u5f55","article_published_time":"2016-05-02T02:55:03+00:00","article_modified_time":"2016-05-02T02:59:19+00:00","og_image":[{"url":"http:\/\/mmbiz.qpic.cn\/mmbiz\/fhujzoQe7TqCdjG9J1dic6up2dZqibxxiaxNR1clriagic23Y2F6ppHmUWcgjEdYtpcyxJjBSKdHCM2BpvFxicmBkFeA\/640?wx_fmt=jpeg&amp;wxfrom=5&amp;wx_lazy=1"}],"author":"Editorial Team","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"Editorial Team","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"14 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"http:\/\/blog.softwareclues.com\/zh\/%e7%bc%96%e7%a8%8b%e9%9c%80%e8%a6%81%e7%9f%a5%e9%81%93%e5%a4%9a%e5%b0%91%e6%95%b0%e5%ad%a6%e7%9f%a5%e8%af%86%ef%bc%9f","url":"http:\/\/blog.softwareclues.com\/zh\/%e7%bc%96%e7%a8%8b%e9%9c%80%e8%a6%81%e7%9f%a5%e9%81%93%e5%a4%9a%e5%b0%91%e6%95%b0%e5%ad%a6%e7%9f%a5%e8%af%86%ef%bc%9f","name":"\u7f16\u7a0b\u9700\u8981\u77e5\u9053\u591a\u5c11\u6570\u5b66\u77e5\u8bc6\uff1f - \u8f6f\u4ef6\u542f\u793a\u5f55","isPartOf":{"@id":"http:\/\/blog.softwareclues.com\/#website"},"primaryImageOfPage":{"@id":"http:\/\/blog.softwareclues.com\/zh\/%e7%bc%96%e7%a8%8b%e9%9c%80%e8%a6%81%e7%9f%a5%e9%81%93%e5%a4%9a%e5%b0%91%e6%95%b0%e5%ad%a6%e7%9f%a5%e8%af%86%ef%bc%9f#primaryimage"},"image":{"@id":"http:\/\/blog.softwareclues.com\/zh\/%e7%bc%96%e7%a8%8b%e9%9c%80%e8%a6%81%e7%9f%a5%e9%81%93%e5%a4%9a%e5%b0%91%e6%95%b0%e5%ad%a6%e7%9f%a5%e8%af%86%ef%bc%9f#primaryimage"},"thumbnailUrl":"http:\/\/mmbiz.qpic.cn\/mmbiz\/fhujzoQe7TqCdjG9J1dic6up2dZqibxxiaxNR1clriagic23Y2F6ppHmUWcgjEdYtpcyxJjBSKdHCM2BpvFxicmBkFeA\/640?wx_fmt=jpeg&amp;wxfrom=5&amp;wx_lazy=1","datePublished":"2016-05-02T02:55:03+00:00","dateModified":"2016-05-02T02:59:19+00:00","author":{"@id":"http:\/\/blog.softwareclues.com\/#\/schema\/person\/4c47e4e97a658930b6c0e90f4a4eda82"},"breadcrumb":{"@id":"http:\/\/blog.softwareclues.com\/zh\/%e7%bc%96%e7%a8%8b%e9%9c%80%e8%a6%81%e7%9f%a5%e9%81%93%e5%a4%9a%e5%b0%91%e6%95%b0%e5%ad%a6%e7%9f%a5%e8%af%86%ef%bc%9f#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["http:\/\/blog.softwareclues.com\/zh\/%e7%bc%96%e7%a8%8b%e9%9c%80%e8%a6%81%e7%9f%a5%e9%81%93%e5%a4%9a%e5%b0%91%e6%95%b0%e5%ad%a6%e7%9f%a5%e8%af%86%ef%bc%9f"]}]},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"http:\/\/blog.softwareclues.com\/zh\/%e7%bc%96%e7%a8%8b%e9%9c%80%e8%a6%81%e7%9f%a5%e9%81%93%e5%a4%9a%e5%b0%91%e6%95%b0%e5%ad%a6%e7%9f%a5%e8%af%86%ef%bc%9f#primaryimage","url":"http:\/\/mmbiz.qpic.cn\/mmbiz\/fhujzoQe7TqCdjG9J1dic6up2dZqibxxiaxNR1clriagic23Y2F6ppHmUWcgjEdYtpcyxJjBSKdHCM2BpvFxicmBkFeA\/640?wx_fmt=jpeg&amp;wxfrom=5&amp;wx_lazy=1","contentUrl":"http:\/\/mmbiz.qpic.cn\/mmbiz\/fhujzoQe7TqCdjG9J1dic6up2dZqibxxiaxNR1clriagic23Y2F6ppHmUWcgjEdYtpcyxJjBSKdHCM2BpvFxicmBkFeA\/640?wx_fmt=jpeg&amp;wxfrom=5&amp;wx_lazy=1"},{"@type":"BreadcrumbList","@id":"http:\/\/blog.softwareclues.com\/zh\/%e7%bc%96%e7%a8%8b%e9%9c%80%e8%a6%81%e7%9f%a5%e9%81%93%e5%a4%9a%e5%b0%91%e6%95%b0%e5%ad%a6%e7%9f%a5%e8%af%86%ef%bc%9f#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/blog.softwareclues.com\/"},{"@type":"ListItem","position":2,"name":"\u7f16\u7a0b\u9700\u8981\u77e5\u9053\u591a\u5c11\u6570\u5b66\u77e5\u8bc6\uff1f"}]},{"@type":"WebSite","@id":"http:\/\/blog.softwareclues.com\/#website","url":"http:\/\/blog.softwareclues.com\/","name":"\u8f6f\u4ef6\u542f\u793a\u5f55","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/blog.softwareclues.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"http:\/\/blog.softwareclues.com\/#\/schema\/person\/4c47e4e97a658930b6c0e90f4a4eda82","name":"Editorial Team","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"http:\/\/blog.softwareclues.com\/#\/schema\/person\/image\/","url":"http:\/\/2.gravatar.com\/avatar\/e4fb391d9f5bb29583ed9579324a5e17?s=96&d=mystery&r=g","contentUrl":"http:\/\/2.gravatar.com\/avatar\/e4fb391d9f5bb29583ed9579324a5e17?s=96&d=mystery&r=g","caption":"Editorial Team"},"url":"http:\/\/blog.softwareclues.com\/zh\/author\/admin"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/paLJfj-2f","jetpack-related-posts":[],"_links":{"self":[{"href":"http:\/\/blog.softwareclues.com\/zh\/wp-json\/wp\/v2\/posts\/139"}],"collection":[{"href":"http:\/\/blog.softwareclues.com\/zh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.softwareclues.com\/zh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.softwareclues.com\/zh\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.softwareclues.com\/zh\/wp-json\/wp\/v2\/comments?post=139"}],"version-history":[{"count":3,"href":"http:\/\/blog.softwareclues.com\/zh\/wp-json\/wp\/v2\/posts\/139\/revisions"}],"predecessor-version":[{"id":141,"href":"http:\/\/blog.softwareclues.com\/zh\/wp-json\/wp\/v2\/posts\/139\/revisions\/141"}],"wp:attachment":[{"href":"http:\/\/blog.softwareclues.com\/zh\/wp-json\/wp\/v2\/media?parent=139"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.softwareclues.com\/zh\/wp-json\/wp\/v2\/categories?post=139"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.softwareclues.com\/zh\/wp-json\/wp\/v2\/tags?post=139"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}