{"id":125,"date":"2008-10-27T20:28:00","date_gmt":"2008-10-27T12:28:00","guid":{"rendered":""},"modified":"2013-11-22T20:46:51","modified_gmt":"2013-11-22T12:46:51","slug":"%e8%ba%ab%e4%bb%bd%e8%af%81%e5%8f%b7%e7%a0%81%e7%ae%97%e6%b3%95%e6%b5%85%e6%9e%90","status":"publish","type":"post","link":"https:\/\/kyle.ai\/blog\/125.html","title":{"rendered":"\u8eab\u4efd\u8bc1\u53f7\u7801\u7b97\u6cd5\u6d45\u6790"},"content":{"rendered":"<p>1\u3001\u53f7\u7801\u7684\u7ed3\u6784<br \/>\n\u516c\u6c11\u8eab\u4efd\u53f7\u7801\u662f\u7279\u5f81\u7ec4\u5408\u7801\uff0c\u7531\u5341\u4e03\u4f4d\u6570\u5b57\u672c\u4f53\u7801\u548c\u4e00\u4f4d\u6821\u9a8c\u7801\u7ec4\u6210\u3002\u6392\u5217\u987a\u5e8f\u4ece\u5de6\u81f3\u53f3\u4f9d\u6b21\u4e3a\uff1a\u516d\u4f4d\u6570\u5b57\u5730\u5740\u7801\uff0c\u516b\u4f4d\u6570\u5b57\u51fa\u751f\u65e5\u671f\u7801\uff0c\u4e09\u4f4d\u6570\u5b57\u987a\u5e8f\u7801\u548c\u4e00\u4f4d\u6570\u5b57\u6821\u9a8c\u7801\u3002<\/p>\n<p>2\u3001\u5730\u5740\u7801<br \/>\n\u8868\u793a\u7f16\u7801\u5bf9\u8c61\u5e38\u4f4f\u6237\u53e3\u6240\u5728\u53bf(\u5e02\u3001\u65d7\u3001\u533a)\u7684\u884c\u653f\u533a\u5212\u4ee3\u7801\uff0c\u6309GB\/T2260\u7684\u89c4\u5b9a\u6267\u884c\u3002(\u6240\u6709\u533a\u57df\u7684\u7f16\u7801\u53ef\u4ee5\u5230\u8fd9\u4e2a\u7f51\u7ad9<a href=\"http:\/\/www.stats.gov.cn\/tjbz\/index.htm\">http:\/\/www.stats.gov.cn\/tjbz\/index.htm<\/a>\u67e5\u8be2\u5230\u6700\u65b0\u7684\u53bf\u53ca\u53bf\u4ee5\u4e0a\u7684\u884c\u653f\u7f16\u7801\u8d44\u6599\u3002)<\/p>\n<p>3\u3001\u51fa\u751f\u65e5\u671f\u7801<br \/>\n\u8868\u793a\u7f16\u7801\u5bf9\u8c61\u51fa\u751f\u7684\u5e74\u3001\u6708\u3001\u65e5\uff0c\u6309GB\/T7408\u7684\u89c4\u5b9a\u6267\u884c\uff0c\u5e74\u3001\u6708\u3001\u65e5\u4ee3\u7801\u4e4b\u95f4\u4e0d\u7528\u5206\u9694\u7b26\u3002<\/p>\n<p>4\u3001\u987a\u5e8f\u7801<br \/>\n\u8868\u793a\u5728\u540c\u4e00\u5730\u5740\u7801\u6240\u6807\u8bc6\u7684\u533a\u57df\u8303\u56f4\u5185\uff0c\u5bf9\u540c\u5e74\u3001\u540c\u6708\u3001\u540c\u65e5\u51fa\u751f\u7684\u4eba\u7f16\u5b9a\u7684\u987a\u5e8f\u53f7\uff0c\u987a\u5e8f\u7801\u7684\u5947\u6570\u5206\u914d\u7ed9\u7537\u6027\uff0c\u5076\u6570\u5206\u914d\u7ed9\u5973\u6027\u3002<\/p>\n<p>5\u3001\u6821\u9a8c\u7801<br \/>\n\u7b2c\u5341\u516b\u4f4d\u6570\u5b57\u7684\u8ba1\u7b97\u65b9\u6cd5\u4e3a\uff1a<br \/>\n1.\u5c06\u524d\u9762\u7684\u8eab\u4efd\u8bc1\u53f7\u780117\u4f4d\u6570\u5206\u522b\u4e58\u4ee5\u4e0d\u540c\u7684\u7cfb\u6570\u3002\u4ece\u7b2c\u4e00\u4f4d\u5230\u7b2c\u5341\u4e03\u4f4d\u7684\u7cfb\u6570\u5206\u522b\u4e3a\uff1a7 9 10 5 8 4 2 1 6 3 7 9 10 5 8 4 2<br \/>\n2.\u5c06\u8fd917\u4f4d\u6570\u5b57\u548c\u7cfb\u6570\u76f8\u4e58\u7684\u7ed3\u679c\u76f8\u52a0\u3002<br \/>\n3.\u7528\u52a0\u51fa\u6765\u548c\u9664\u4ee511\uff0c\u770b\u4f59\u6570\u662f\u591a\u5c11<br \/>\n4.\u4f59\u6570\u53ea\u53ef\u80fd\u67090 1 2 3 4 5 6 7 8 9 10\u8fd911\u4e2a\u6570\u5b57\u3002\u5176\u5206\u522b\u5bf9\u5e94\u7684\u6700\u540e\u4e00\u4f4d\u8eab\u4efd\u8bc1\u7684\u53f7\u7801\u4e3a1 0 X 9 8 7 6 5 4 3 2\u3002<br \/>\n5.\u901a\u8fc7\u4e0a\u9762\u5f97\u77e5\u5982\u679c\u4f59\u6570\u662f2\uff0c\u5c31\u4f1a\u5728\u8eab\u4efd\u8bc1\u7684\u7b2c18\u4f4d\u6570\u5b57\u4e0a\u51fa\u73b0\u7f57\u9a6c\u6570\u5b57\u7684\u2169\u3002\u5982\u679c\u4f59\u6570\u662f10\uff0c\u8eab\u4efd\u8bc1\u7684\u6700\u540e\u4e00\u4f4d\u53f7\u7801\u5c31\u662f2\u3002<\/p>\n<p>\u4f8b\u5982\uff1a\u67d0\u7537\u6027\u7684\u8eab\u4efd\u8bc1\u53f7\u7801\u662f34052419800101001X\u3002\u6211\u4eec\u8981\u770b\u770b\u8fd9\u4e2a\u8eab\u4efd\u8bc1\u662f\u4e0d\u662f\u5408\u6cd5\u7684\u8eab\u4efd\u8bc1\u3002<br \/>\n\u9996\u5148\uff1a\u6211\u4eec\u5f97\u51fa\uff0c\u524d17\u4f4d\u7684\u4e58\u79ef\u548c\u662f189<br \/>\n\u7136\u540e\uff1a\u7528189\u9664\u4ee511\u5f97\u51fa\u7684\u7ed3\u679c\u662f17 + 2\/11\uff0c\u4e5f\u5c31\u662f\u8bf4\u4f59\u6570\u662f2\u3002<br \/>\n\u6700\u540e\uff1a\u901a\u8fc7\u5bf9\u5e94\u89c4\u5219\u5c31\u53ef\u4ee5\u77e5\u9053\u4f59\u65702\u5bf9\u5e94\u7684\u6570\u5b57\u662fx\u3002\u6240\u4ee5\uff0c\u8fd9\u662f\u4e00\u4e2a\u5408\u683c\u7684\u8eab\u4efd\u8bc1\u53f7\u7801\u3002<\/p>\n<p>\u4e0b\u9762\u662f\u7b97\u6cd5\u7684C\u7a0b\u5e8f\u4ee3\u7801\uff1a<\/p>\n<pre class=\"brush: cpp; title: ; notranslate\" title=\"\">\r\nchar DoVerify(const char* pszSrc)\r\n{\r\n    int iS = 0;\r\n    int iW&#x5B;]={7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2};\r\n    static char szVerCode&#x5B;]=&quot;10X98765432&quot;;\r\n    int i;\r\n    for(i=0;i&lt;17;i++)\r\n    {\r\n        iS += (int)(pszSrc&#x5B;i]-\u20190\u2032) * iW&#x5B;i];\r\n    }\r\n    int iY = iS%11;\r\n    return szVerCode&#x5B;iY];\r\n}\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>1\u3001\u53f7\u7801\u7684\u7ed3\u6784 \u516c\u6c11\u8eab\u4efd\u53f7\u7801\u662f\u7279\u5f81\u7ec4\u5408\u7801\uff0c\u7531\u5341\u4e03\u4f4d\u6570\u5b57\u672c\u4f53\u7801\u548c\u4e00\u4f4d\u6821\u9a8c\u7801\u7ec4\u6210\u3002\u6392\u5217\u987a\u5e8f\u4ece\u5de6\u81f3\u53f3\u4f9d\u6b21\u4e3a\uff1a\u516d\u4f4d\u6570\u5b57 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-125","post","type-post","status-publish","format-standard","hentry","category-skill"],"_links":{"self":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/125","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/comments?post=125"}],"version-history":[{"count":1,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/125\/revisions"}],"predecessor-version":[{"id":5117,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/125\/revisions\/5117"}],"wp:attachment":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/media?parent=125"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/categories?post=125"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/tags?post=125"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}