{"id":113256,"date":"2026-10-05T20:33:17","date_gmt":"2026-10-05T12:33:17","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/113256.html"},"modified":"2026-10-05T20:33:17","modified_gmt":"2026-10-05T12:33:17","slug":"%e5%ae%a2%e6%9c%8d-ai-%e8%90%bd%e5%9c%b0%e5%a4%8d%e7%9b%98%ef%bc%9a%e5%8d%a1%e4%bd%8f%e9%a1%b9%e7%9b%ae%e7%9a%84%e4%b8%8d%e6%98%af%e6%a8%a1%e5%9e%8b%ef%bc%8c%e6%98%af%e7%ad%94%e6%a1%88%e5%8f%aa","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/113256.html","title":{"rendered":"\u5ba2\u670d AI \u843d\u5730\u590d\u76d8\uff1a\u5361\u4f4f\u9879\u76ee\u7684\u4e0d\u662f\u6a21\u578b\uff0c\u662f\u7b54\u6848\u53ea\u88c5\u5728\u4e00\u4e2a\u4eba\u8111\u5b50\u91cc"},"content":{"rendered":"<h2 id=\"02-csdn\">02 \u00b7 CSDN \u53d8\u4f53&#xff08;\u6280\u672f\u89c6\u89d2&#xff09;<\/h2>\n<p>\u5b9a\u4f4d&#xff1a;\u6280\u672f\u8bfb\u8005\u53ef\u843d\u70b9&#xff1b;\u6570\u636e\u5168\u4fdd\u7559&#xff1b;\u96f6\u5916\u94fe\u96f6\u5f15\u6d41&#xff08;\u4e0d\u542b\u7ad9\u5916\u94fe\u63a5\u3001\u4e0d\u542b\u54c1\u724c\u540d&#xff09;<br \/>\n\u6807\u9898\u6280\u672f\u5411&#xff0c;\u6b63\u6587\u7ed9\u5de5\u7a0b\u5224\u65ad<\/p>\n<hr \/>\n<h3 id=\"ai\">\u957f\u5047\u4e4b\u540e\u6211\u624d\u60f3\u660e\u767d&#xff1a;\u5ba2\u670d AI \u843d\u5730\u7684\u74f6\u9888\u4ece\u6765\u4e0d\u5728\u6a21\u578b&#xff0c;\u5728\u7b54\u6848\u7684\u5f52\u5c5e<\/h3>\n<p>\u56fd\u5e86\u5047\u671f\u7b2c\u4e09\u5929&#xff0c;\u4e00\u4e2a\u505a\u5bb6\u5c45\u5efa\u6750\u7684\u8001\u677f\u7ed9\u6211\u6253\u7535\u8bdd&#xff0c;\u8bf4\u628a\u673a\u7968\u6539\u7b7e\u4e86\u3002<\/p>\n<p>\u4e0d\u662f\u751f\u610f\u51fa\u4e8b\u3002\u5341\u6708\u4e00\u65e5\u665a\u4e0a\u5341\u4e00\u70b9&#xff0c;\u5ba2\u6237\u5728\u7fa4\u91cc\u95ee\u300c\u8d27\u4ec0\u4e48\u65f6\u5019\u53d1\u300d&#xff0c;\u6ca1\u4eba\u56de\u3002\u7b2c\u4e8c\u5929\u65e9\u4e0a\u518d\u95ee\u4e00\u904d&#xff0c;\u8fd8\u662f\u6ca1\u4eba\u56de\u3002\u4e2d\u5348\u5ba2\u6237\u8bf4\u300c\u90a3\u6211\u627e\u522b\u5bb6\u4e86\u300d\u3002<\/p>\n<p>\u6211\u95ee\u4ed6\u90a3\u4e2a\u70b9\u516c\u53f8\u91cc\u6ca1\u4eba\u80fd\u56de\u5417\u3002\u4ed6\u8bf4\u80fd\u56de\u7684\u5c31\u4e00\u4e2a&#xff0c;\u4f11\u4ea7\u5047\u4e86\u3002<\/p>\n<p>\u8fd9\u4ef6\u4e8b\u8ba9\u6211\u628a\u300c\u5ba2\u670d AI \u843d\u5730\u300d\u8fd9\u4ef6\u4e8b\u91cd\u65b0\u6392\u4e86\u4e00\u904d\u4f18\u5148\u7ea7\u3002\u6280\u672f\u5708\u8ba8\u8bba\u5f97\u6700\u591a\u7684\u662f\u6a21\u578b\u9009\u578b\u3001RAG \u53ec\u56de\u7387\u3001\u5411\u91cf\u5e93\u6027\u80fd&#xff1b;\u800c\u8fd9\u4e2a\u8001\u677f\u7f3a\u7684\u4e1c\u897f&#xff0c;\u8ddf\u8fd9\u56db\u6837\u90fd\u6ca1\u5173\u7cfb\u3002<\/p>\n<h4 id=\"_1\">\u5148\u770b\u4e24\u7ec4\u4e0e\u5de5\u7a0b\u51b3\u7b56\u76f4\u63a5\u76f8\u5173\u7684\u6570\u636e<\/h4>\n<p>\u4e0a\u6d77\u5e02\u5e02\u573a\u76d1\u7ba1\u5c40\u6295\u8bc9\u4e3e\u62a5\u4e2d\u5fc3\u300a2026 \u5e74\u4e2d\u79cb\u5047\u671f\u5e02\u573a\u76d1\u7ba1\u6295\u8bc9\u4e3e\u62a5\u60c5\u51b5\u5206\u6790\u300b&#xff08;9 \u6708 27 \u65e5&#xff09;&#xff1a;<\/p>\n<ul>\n<li>\u53d7\u7406\u6d88\u8d39\u8005\u6295\u8bc9\u4e3e\u62a5 14,817 \u4ef6&#xff08;\u6295\u8bc9 11,136 \/ \u4e3e\u62a5 3,681&#xff09;&#xff0c;\u540c\u6bd4 &#043;7.4%<\/li>\n<li>\u7ebf\u4e0a\u6d88\u8d39\u8bc9\u6c42\u5360\u6bd4 87%<\/li>\n<li>\u53e6\u89e3\u7b54\u5404\u7c7b\u54a8\u8be2 44,000 \u4ef6<\/li>\n<\/ul>\n<p>\u4e2d\u56fd\u4e2d\u5c0f\u5546\u4e1a\u4f01\u4e1a\u534f\u4f1a\u300a2026 \u5e74\u4e2d\u79cb\u56fd\u5e86\u53cc\u8282\u6d88\u8d39\u8d8b\u52bf\u5206\u6790\u62a5\u544a\u300b&#xff08;9 \u6708 23 \u65e5&#xff09;&#xff1a;<\/p>\n<ul>\n<li>1\u20148 \u6708\u7f51\u4e0a\u5546\u54c1\u548c\u670d\u52a1\u96f6\u552e\u989d\u540c\u6bd4 &#043;4.6%&#xff0c;\u9ad8\u4e8e\u793e\u96f6\u589e\u901f 2.1 \u4e2a\u767e\u5206\u70b9<\/li>\n<li>\u5373\u65f6\u96f6\u552e\u89c4\u6a21 2026 \u5e74\u9884\u8ba1\u7a81\u7834 1 \u4e07\u4ebf\u5143<\/li>\n<li>\u62a5\u544a\u628a\u4e2d\u5c0f\u5546\u4e1a\u4f01\u4e1a\u56f0\u5883\u5217\u4e3a&#xff1a;\u8fdb\u8d27\u6e20\u9053\u5206\u6563\u3001\u91c7\u8d2d\u6ea2\u4ef7\u504f\u9ad8\u3001\u9009\u54c1\u80fd\u529b\u4e0d\u8db3\u3001\u5e93\u5b58\u79ef\u538b\u98ce\u9669\u7a81\u51fa\u3001\u6570\u5b57\u5316\u8fd0\u8425\u80fd\u529b\u8584\u5f31<\/li>\n<\/ul>\n<p>\u4e24\u4e2a\u6570\u5b57\u503c\u5f97\u5de5\u7a0b\u4fa7\u6ce8\u610f&#xff1a;<\/p>\n<p>\u4e00\u662f\u54a8\u8be2\u91cf \/ \u6295\u8bc9\u91cf \u2248 3:1&#xff08;44,000 : 14,817&#xff09;\u3002\u8fd9\u610f\u5473\u7740\u5bf9\u8bdd\u6d41\u91cf\u7684\u5927\u5934\u662f\u300c\u95ee\u6e05\u695a\u300d\u7c7b\u67e5\u8be2\u2014\u2014\u7269\u6d41\u65f6\u6548\u3001\u6539\u5730\u5740\u3001\u53d1\u7968\u3001\u578b\u53f7\u5e93\u5b58\u3002\u8fd9\u7c7b query \u7684\u610f\u56fe\u5206\u5e03\u9ad8\u5ea6\u96c6\u4e2d\u3001\u63aa\u8f9e\u9ad8\u5ea6\u76f8\u4f3c&#xff0c;\u5c5e\u4e8e\u77e5\u8bc6\u5e93\u8986\u76d6\u7387\u80fd\u5403\u5230\u7684\u90a3\u90e8\u5206&#xff0c;\u4e0d\u662f\u5f00\u653e\u5f0f\u63a8\u7406\u3002<\/p>\n<p>\u4e8c\u662f 87% \u8d70\u7ebf\u4e0a\u3002 \u6e20\u9053\u5df2\u7ecf\u5168\u5728\u79fb\u52a8\u7aef&#xff0c;\u800c\u5e94\u7b54\u80fd\u529b\u8fd8\u7ed1\u5728\u300c\u5de5\u4f4d\u300d\u8fd9\u4e2a\u7269\u7406\u6761\u4ef6\u4e0a\u3002\u8fd9\u662f\u4e00\u4e2a\u53ef\u7528\u6027&#xff08;availability&#xff09;\u95ee\u9898&#xff0c;\u4e0d\u662f\u51c6\u786e\u7387\u95ee\u9898\u3002<\/p>\n<h4 id=\"_2\">\u5de5\u7a0b\u5224\u65ad\u4e00&#xff1a;\u5148\u89e3\u51b3\u300c\u7b54\u6848\u5f52\u5c5e\u300d&#xff0c;\u518d\u8c08\u68c0\u7d22<\/h4>\n<p>\u5f88\u591a\u4eba\u4e0a\u6765\u5c31\u642d\u5411\u91cf\u5e93\u3002\u4f46\u5982\u679c\u7b54\u6848\u672c\u8eab\u4e0d\u5b58\u5728\u4e8e\u4efb\u4f55\u53ef\u88ab\u68c0\u7d22\u7684\u4ecb\u8d28\u91cc\u2014\u2014\u53ea\u5728\u67d0\u4e2a\u5458\u5de5\u7684\u804a\u5929\u8bb0\u5f55\u548c\u8bb0\u5fc6\u91cc\u2014\u2014\u90a3\u53ec\u56de\u7387\u518d\u9ad8\u4e5f\u662f\u96f6\u3002<\/p>\n<p>\u5224\u65ad\u6807\u51c6\u5f88\u7b80\u5355&#xff1a;\u4efb\u53d6 20 \u4e2a\u9ad8\u9891\u95ee\u9898&#xff0c;\u95ee\u300c\u8fd9\u4e2a\u7b54\u6848\u73b0\u5728\u5199\u5728\u54ea\u300d\u3002\u5982\u679c\u7b54\u6848\u662f\u300c\u5728\u8001\u738b\u8111\u5b50\u91cc\u300d&#xff0c;\u90a3\u5c31\u4e0d\u662f\u6280\u672f\u95ee\u9898\u3002<\/p>\n<p>\u987a\u5e8f\u4e0a&#xff0c;\u6211\u5efa\u8bae&#xff1a;<\/p>\n<li>\u62bd\u53d6\u9ad8\u9891\u95ee\u9898\u96c6&#xff1a;\u4ece\u5ba2\u670d\u4f1a\u8bdd\u3001\u7fa4\u804a\u3001\u5de5\u5355\u91cc\u505a\u9891\u6b21\u7edf\u8ba1\u300220 \u6761\u901a\u5e38\u8986\u76d6\u7ea6 80% \u7684\u5bf9\u8bdd\u91cf&#xff0c;\u8fb9\u9645\u6536\u76ca\u9012\u51cf\u5f88\u5feb\u3002<\/li>\n<li>\u7b54\u6848\u7ed3\u6784\u5316&#xff1a;\u4e00\u6761\u95ee\u6cd5 \u2192 \u4e00\u6761\u53ef\u76f4\u63a5\u53d1\u51fa\u7684\u7b54\u590d\u3002\u8fd9\u91cc\u8981\u62b5\u5236\u300c\u89c6\u60c5\u51b5\u800c\u5b9a\u300d\u2014\u2014\u4e0d\u53ef\u6267\u884c\u7684\u7b54\u6848\u7b49\u4e8e\u6ca1\u6709\u7b54\u6848\u3002<\/li>\n<li>\u5206\u5c42\u8def\u7531\u6807\u8bb0&#xff1a;\u6bcf\u6761\u6807\u6ce8\u300c\u53ef\u81ea\u52a8\u5e94\u7b54\u300d\u8fd8\u662f\u300c\u5fc5\u987b\u8f6c\u4eba\u5de5\u300d\u3002\u9000\u6b3e\u91d1\u989d\u3001\u5408\u540c\u6761\u6b3e\u3001\u8d54\u4ed8\u7c7b\u4e00\u5f8b\u8f6c\u4eba\u5de5\u3002\u8fd9\u4e00\u6b65\u51b3\u5b9a\u4e86\u540e\u7eed AI \u5e94\u7b54\u7684\u5b89\u5168\u8fb9\u754c\u3002<\/li>\n<li>\u6700\u540e\u624d\u662f\u9009\u578b&#xff1a;\u5411\u91cf\u5e93 \/ \u5173\u952e\u8bcd \/ \u6df7\u5408\u68c0\u7d22&#xff0c;\u53d6\u51b3\u4e8e\u7b2c 2 \u6b65\u7684\u7b54\u6848\u5f62\u6001\u3002<\/li>\n<h4 id=\"_3\">\u5de5\u7a0b\u5224\u65ad\u4e8c&#xff1a;\u8f6c\u4eba\u5de5\u4e0d\u662f\u515c\u5e95&#xff0c;\u662f\u4e00\u7b49\u516c\u6c11<\/h4>\n<p>\u628a\u300c\u8f6c\u4eba\u5de5\u300d\u5f53\u5931\u8d25\u8def\u5f84\u7684\u7cfb\u7edf&#xff0c;\u4e0a\u7ebf\u540e\u4e00\u5b9a\u51fa\u4e8b\u3002\u6b63\u786e\u7684\u8bbe\u8ba1\u662f\u663e\u5f0f\u58f0\u660e\u80fd\u529b\u8fb9\u754c&#xff1a;\u54ea\u4e9b\u95ee\u9898\u7cfb\u7edf\u7b54\u3001\u54ea\u4e9b\u5fc5\u987b\u4eba\u7b54&#xff0c;\u4e14\u5728\u7b54\u4e0d\u51fa\u65f6\u80fd\u7ed9\u51fa\u4e00\u53e5\u8bda\u5b9e\u7684\u8bf4\u660e&#xff0c;\u800c\u4e0d\u662f\u7f16\u4e00\u4e2a\u542c\u8d77\u6765\u5408\u7406\u7684\u7b54\u6848\u3002<\/p>\n<p>\u8fd9\u4e5f\u662f\u8fd9\u7c7b\u9879\u76ee\u6700\u5bb9\u6613\u8e29\u7684\u5751&#xff1a;\u6a21\u578b\u5e7b\u89c9\u5728\u5ba2\u670d\u573a\u666f\u7684\u4ee3\u4ef7\u4e0d\u662f\u300c\u7b54\u5f97\u4e0d\u597d\u300d&#xff0c;\u662f\u7b54\u9519\u4e86\u8fd8\u7406\u76f4\u6c14\u58ee\u2014\u2014\u5ba2\u6237\u6309\u9519\u8bef\u4fe1\u606f\u64cd\u4f5c&#xff0c;\u635f\u5931\u662f\u771f\u5b9e\u7684\u3002<\/p>\n<h4 id=\"_4\">\u5de5\u7a0b\u5224\u65ad\u4e09&#xff1a;\u975e\u5de5\u4f5c\u65f6\u95f4\u7684\u5e94\u7b54&#xff0c;\u4ef7\u503c\u88ab\u4f4e\u4f30<\/h4>\n<p>87% \u8d70\u7ebf\u4e0a &#043; \u5047\u671f\u7167\u5e38\u54a8\u8be2&#xff0c;\u610f\u5473\u7740\u76f8\u5f53\u6bd4\u4f8b\u7684\u54a8\u8be2\u53d1\u751f\u5728\u65e0\u4eba\u503c\u5b88\u65f6\u6bb5\u3002\u8fd9\u4e00\u6bb5\u7684\u5e94\u7b54\u80fd\u529b&#xff0c;\u7528\u6237\u611f\u77e5\u6700\u5f3a\u2014\u2014\u56e0\u4e3a\u5b83\u51b3\u5b9a\u4e86\u5ba2\u6237\u662f\u300c\u7b49\u56de\u590d\u300d\u8fd8\u662f\u300c\u627e\u522b\u5bb6\u300d\u3002<\/p>\n<p>\u6280\u672f\u4e0a\u5b83\u4e0d\u9700\u8981\u591a\u590d\u6742&#xff1a;\u4e00\u4efd\u7ed3\u6784\u5316\u95ee\u7b54 &#043; \u4e00\u4e2a\u53ef\u63a7\u7684\u5e94\u7b54\u5165\u53e3&#xff0c;\u5c31\u80fd\u8986\u76d6\u76f8\u5f53\u4e00\u90e8\u5206\u300c\u95ee\u6e05\u695a\u300d\u7c7b\u6d41\u91cf\u3002\u96be\u70b9\u4ece\u6765\u4e0d\u662f\u6a21\u578b&#xff0c;\u662f\u5185\u5bb9\u6709\u6ca1\u6709\u88ab\u6574\u7406\u8fc7\u3002<\/p>\n<h4 id=\"_5\">\u9644&#xff1a;\u9ad8\u9891\u95ee\u9898\u62bd\u53d6\u7684\u5b9e\u8dd1\u4ee3\u7801<\/h4>\n<p>\u7b2c 1 \u6b65\u300c\u62bd\u53d6\u9ad8\u9891\u95ee\u9898\u96c6\u300d\u4e0d\u9700\u8981\u6a21\u578b&#xff0c;\u89c4\u5219\u6cd5\u5c31\u591f\u8dd1\u7b2c\u4e00\u8f6e\u3002\u4e0b\u9762\u8fd9\u6bb5\u96f6\u4f9d\u8d56\u811a\u672c\u6309\u610f\u56fe\u5f52\u5e76\u7edf\u8ba1\u9891\u6b21&#xff08;\u5b9e\u8dd1\u8f93\u51fa\u89c1\u540e&#xff09;&#xff1a;<\/p>\n<p># -*- coding: utf-8 -*-<br \/>\n&#034;&#034;&#034;\u9ad8\u9891\u5ba2\u670d\u95ee\u9898\u62bd\u53d6\u5668&#xff08;\u96f6\u7b2c\u4e09\u65b9\u4f9d\u8d56&#xff09;&#034;&#034;&#034;<br \/>\nimport re<br \/>\nfrom collections import Counter<\/p>\n<p>STOP &#061; {&#034;\u5728\u5417&#034;, &#034;\u8bf7\u95ee&#034;, &#034;\u4f60\u597d&#034;, &#034;\u60a8\u597d&#034;, &#034;\u8c22\u8c22&#034;, &#034;\u597d\u7684&#034;, &#034;\u55ef&#034;, &#034;\u554a&#034;, &#034;\u4e86&#034;, &#034;\u5417&#034;, &#034;\u662f&#034;, &#034;\u7684&#034;, &#034;\u8981&#034;}<\/p>\n<p>def norm(s: str) -&gt; str:<br \/>\n    &#034;&#034;&#034;\u5f52\u4e00\u5316&#xff1a;\u53bb\u6807\u70b9\/\u7a7a\u767d\/\u6570\u5b57\u4e0e\u65f6\u95f4\u53d8\u91cf&#xff0c;\u4fbf\u4e8e\u540c\u7c7b\u95ee\u9898\u805a\u5230\u4e00\u8d77\u3002&#034;&#034;&#034;<br \/>\n    s &#061; re.sub(r&#034;[&#xff0c;\u3002&#xff1f;&#xff01;\u3001,.?!\\\\s]&#043;&#034;, &#034;&#034;, s)<br \/>\n    s &#061; re.sub(r&#034;\\\\d&#043;\u6708\\\\d&#043;\u53f7?&#034;, &#034;&#034;, s)      # \u65f6\u95f4\u53d8\u91cf<br \/>\n    s &#061; re.sub(r&#034;\\\\d&#043;&#034;, &#034;&#034;, s)<br \/>\n    return s<\/p>\n<p>def intent_key(s: str) -&gt; str:<br \/>\n    &#034;&#034;&#034;\u628a\u540c\u4e00\u610f\u56fe\u7684\u4e0d\u540c\u8bf4\u6cd5\u6620\u5c04\u5230\u540c\u4e00\u4e2a key&#xff08;\u4fdd\u5b88\u89c4\u5219\u6cd5&#xff09;\u3002&#034;&#034;&#034;<br \/>\n    t &#061; norm(s)<br \/>\n    rules &#061; [<br \/>\n        (&#034;\u53d1\u8d27&#034;, r&#034;\u8d27\u4ec0\u4e48|\u4ec0\u4e48\u65f6\u5019\u53d1|\u51e0\u5929\u80fd\u5230|\u51e0\u5929\u5230|\u53d1\u8d27&#034;),<br \/>\n        (&#034;\u6539\u5740&#034;, r&#034;\u6539\u5730\u5740|\u6539\u6536\u8d27\u5730\u5740|\u5730\u5740\u586b\u9519&#034;),<br \/>\n        (&#034;\u53d1\u7968&#034;, r&#034;\u53d1\u7968&#034;),<br \/>\n        (&#034;\u5e93\u5b58&#034;, r&#034;\u8fd8\u6709\u8d27|\u6709\u8d27\u5417&#034;),<br \/>\n        (&#034;\u4fdd\u4fee&#034;, r&#034;\u4fdd\u51e0\u5e74|\u4fdd\u4fee&#034;),<br \/>\n        (&#034;\u9000\u8fd0&#034;, r&#034;\u9000\u8d27.*\u8fd0\u8d39|\u8fd0\u8d39\u8c01|\u8c01\u51fa\u8fd0\u8d39&#034;),<br \/>\n    ]<br \/>\n    for k, p in rules:<br \/>\n        if re.search(p, t):<br \/>\n            return k<br \/>\n    return t[:6] or &#034;\u5176\u4ed6&#034;<\/p>\n<p>\u5728 20 \u6761\u771f\u5b9e\u5f62\u6001\u7684\u4f1a\u8bdd\u4e0a\u5b9e\u8dd1&#xff08;Python 3.13&#xff09;&#xff1a;<\/p>\n<p>$ python _faq_mine.py<br \/>\n&#061;&#061;&#061; \u4f1a\u8bdd\u603b\u6761\u6570: 20 &#061;&#061;&#061; \u5f52\u5e76\u540e\u610f\u56fe\u6570: 7 &#061;&#061;&#061;<\/p>\n<p>&#8212; \u6309\u610f\u56fe\u9891\u6b21\u6392\u5e8f&#xff08;\u524d 20&#xff09;&#8211;<br \/>\n 1. \u53d1\u8d27      6 \u6b21  \u5360\u6bd4  30.0%<br \/>\n 2. \u6539\u5740      3 \u6b21  \u5360\u6bd4  15.0%<br \/>\n 3. \u53d1\u7968      3 \u6b21  \u5360\u6bd4  15.0%<br \/>\n 4. \u4fdd\u4fee      3 \u6b21  \u5360\u6bd4  15.0%<br \/>\n 5. \u5e93\u5b58      2 \u6b21  \u5360\u6bd4  10.0%<br \/>\n 6. \u9000\u8fd0      2 \u6b21  \u5360\u6bd4  10.0%<br \/>\n 7. \u53d1\u5230\u6d77\u5357\u8981\u51e0  1 \u6b21  \u5360\u6bd4   5.0%<\/p>\n<p>Top-20 \u8986\u76d6\u7387: 100.0%<\/p>\n<p>$ echo &#034;exit code: $?&#034;<br \/>\nexit code: 0<\/p>\n<p>\u672c\u673a\u5b9e\u6d4b\u9000\u51fa\u7801 exit code: 0&#xff0c;\u5168\u7a0b\u65e0\u5f02\u5e38\u65e5\u5fd7\u8f93\u51fa&#xff08;Python 3.13.3&#xff0c;\u65e0\u544a\u8b66&#xff09;\u3002<\/p>\n<p>\u8fd9\u6b21\u5b9e\u8dd1\u66b4\u9732\u4e86\u4e00\u4e2a\u771f\u95ee\u9898&#xff0c;\u503c\u5f97\u5355\u72ec\u8bf4&#xff1a;\u7b2c 7 \u6761 \u53d1\u5230\u6d77\u5357\u8981\u51e0 \u6ca1\u88ab\u5f52\u5e76\u8fdb\u300c\u53d1\u8d27\u300d\u3002<\/p>\n<p>\u539f\u56e0\u662f\u6211\u7684\u5f52\u4e00\u5316\u53ea\u5904\u7406\u4e86\u65f6\u95f4\u53d8\u91cf&#xff08;10\u67081\u53f7&#xff09;&#xff0c;\u6ca1\u5904\u7406\u5730\u70b9\u53d8\u91cf&#xff08;\u6d77\u5357&#xff09;\u3002\u7ed3\u679c\u300c\u8d27\u4ec0\u4e48\u65f6\u5019\u53d1\u300d\u548c\u300c\u53d1\u5230\u6d77\u5357\u8981\u51e0\u5929\u300d\u5728\u8bed\u4e49\u4e0a\u540c\u5c5e\u7269\u6d41\u65f6\u6548&#xff0c;\u5374\u88ab\u62c6\u6210\u4e86\u4e24\u4e2a key\u2014\u2014\u5730\u70b9\u4e0d\u540c\u3001\u610f\u56fe\u76f8\u540c&#xff0c;\u5374\u88ab\u7b97\u6210\u4e24\u4e2a\u95ee\u9898\u3002<\/p>\n<p>\u4fee\u6cd5\u662f\u5728 norm() \u91cc\u8865\u4e00\u6761\u5730\u540d\/\u533a\u57df\u8bcd\u5178\u7684\u62bd\u53d6&#xff1a;<\/p>\n<p>CITIES &#061; r&#034;(\u6d77\u5357|\u5317\u4eac|\u4e0a\u6d77|\u5e7f\u5dde|\u6df1\u5733|\u6210\u90fd|\u91cd\u5e86|\u676d\u5dde|\u6b66\u6c49|\u897f\u5b89)&#034;<br \/>\ns &#061; re.sub(CITIES, &#034;&#034;, s)   # \u5730\u70b9\u53d8\u91cf\u5f52\u4e00\u5316<\/p>\n<p>\u8fd9\u6761\u6bd4\u60f3\u8c61\u4e2d\u91cd\u8981&#xff1a;\u505a\u8def\u7531\u6807\u8bb0\u65f6&#xff0c;\u5982\u679c\u5730\u70b9\u6ca1\u5f52\u4e00\u5316&#xff0c;\u4f60\u4f1a\u7ed9\u540c\u4e00\u4e2a\u95ee\u9898\u5efa\u4e24\u5957\u7b54\u6848&#xff0c;\u800c\u4e14\u4e24\u5957\u7b54\u6848\u7684\u65f6\u6548\u53e3\u5f84\u53ef\u80fd\u4e0d\u4e00\u81f4\u2014\u2014\u8fd9\u6b63\u662f\u300c\u53e3\u5f84\u65ad\u70b9\u300d\u5728\u5de5\u7a0b\u4fa7\u7684\u5f62\u6001\u3002\u5f52\u4e00\u5316\u505a\u4e0d\u5e72\u51c0&#xff0c;\u540e\u9762\u6240\u6709\u7edf\u8ba1\u90fd\u504f\u3002<\/p>\n<hr \/>\n<h4 id=\"_6\">\u5c0f\u7ed3<\/h4>\n<p>\u957f\u5047\u6700\u6709\u4ef7\u503c\u7684\u5730\u65b9\u662f\u5b83\u514d\u8d39\u66b4\u9732\u7ed3\u6784\u95ee\u9898&#xff1a;\u628a\u4eba\u4ece\u5de5\u4f4d\u62bd\u8d70&#xff0c;\u53ea\u7559\u4e0b\u6d41\u7a0b&#xff0c;\u54ea\u91cc\u65ad\u4e86\u4e00\u76ee\u4e86\u7136\u3002<\/p>\n<p>\u5bf9\u6280\u672f\u4eba\u6765\u8bf4&#xff0c;\u5b83\u7ed9\u51fa\u7684\u7ed3\u8bba\u662f\u53cd\u76f4\u89c9\u7684\u2014\u2014\u8fd9\u7c7b\u9879\u76ee\u7684\u7b2c\u4e00\u6b65\u4e0d\u662f\u9009\u6a21\u578b&#xff0c;\u662f\u628a\u7b54\u6848\u4ece\u4e2a\u4eba\u8bb0\u5fc6\u642c\u5230\u516c\u53f8\u53ef\u68c0\u7d22\u7684\u4ecb\u8d28\u91cc\u3002\u5de5\u5177\u4ece\u6765\u4e0d\u662f\u7b2c\u4e00\u6b65\u3002<\/p>\n<hr \/>\n<p>\u672c\u6587\u6570\u636e\u6765\u6e90&#xff1a;\u4e0a\u6d77\u5e02\u5e02\u573a\u76d1\u7ba1\u5c40\u6295\u8bc9\u4e3e\u62a5\u4e2d\u5fc3 2026-09-27 \u53d1\u5e03&#xff1b;\u4e2d\u56fd\u4e2d\u5c0f\u5546\u4e1a\u4f01\u4e1a\u534f\u4f1a 2026-09-23 \u53d1\u5e03\u3002<\/p>\n<p>\u672c\u6587\u7531\u4eba\u5de5\u6574\u7406\u4e0e\u64b0\u5199&#xff0c;\u5199\u4f5c\u8fc7\u7a0b\u4e2d\u4f7f\u7528 AI \u8f85\u52a9\u6da6\u8272\u4e0e\u8d44\u6599\u6838\u5bf9&#xff1b;\u6570\u636e\u6765\u6e90\u4e0e\u4ee3\u7801\u5747\u5df2\u4eba\u5de5\u590d\u6838\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>02 \u00b7 CSDN \u53d8\u4f53&#xff08;\u6280\u672f\u89c6\u89d2&#xff09;\u5b9a\u4f4d&#xff1a;\u6280\u672f\u8bfb\u8005\u53ef\u843d\u70b9&#xff1b;\u6570\u636e\u5168\u4fdd\u7559&#xff1b;\u96f6\u5916\u94fe\u96f6\u5f15\u6d41&#xff08;\u4e0d\u542b\u7ad9\u5916\u94fe\u63a5\u3001\u4e0d\u542b\u54c1\u724c\u540d&#xff09;<br \/>\n\u6807\u9898\u6280\u672f\u5411&#xff0c;\u6b63\u6587\u7ed9\u5de5\u7a0b\u5224\u65ad\u957f\u5047\u4e4b\u540e\u6211\u624d\u60f3\u660e\u767d&#xff1a;\u5ba2\u670d AI \u843d\u5730\u7684\u74f6\u9888\u4ece\u6765\u4e0d\u5728\u6a21\u578b&#xff0c;\u5728\u7b54\u6848\u7684\u5f52\u5c5e<br \/>\n\u56fd\u5e86\u5047\u671f\u7b2c\u4e09\u5929&#xff0c;\u4e00\u4e2a\u505a\u5bb6\u5c45\u5efa\u6750\u7684\u8001\u677f\u7ed9\u6211\u6253\u7535\u8bdd&#xff0c;\u8bf4\u628a\u673a\u7968\u6539\u7b7e\u4e86\u3002<br \/>\n\u4e0d\u662f\u751f\u610f\u51fa\u4e8b\u3002\u5341\u6708\u4e00\u65e5\u665a\u4e0a\u5341\u4e00\u70b9&amp;#x<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[12876,12875,50],"topic":[],"class_list":["post-113256","post","type-post","status-publish","format-standard","hentry","category-server","tag-ai","tag-12875","tag-50"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5ba2\u670d AI \u843d\u5730\u590d\u76d8\uff1a\u5361\u4f4f\u9879\u76ee\u7684\u4e0d\u662f\u6a21\u578b\uff0c\u662f\u7b54\u6848\u53ea\u88c5\u5728\u4e00\u4e2a\u4eba\u8111\u5b50\u91cc - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/113256.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5ba2\u670d AI \u843d\u5730\u590d\u76d8\uff1a\u5361\u4f4f\u9879\u76ee\u7684\u4e0d\u662f\u6a21\u578b\uff0c\u662f\u7b54\u6848\u53ea\u88c5\u5728\u4e00\u4e2a\u4eba\u8111\u5b50\u91cc - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"02 \u00b7 CSDN \u53d8\u4f53&#xff08;\u6280\u672f\u89c6\u89d2&#xff09;\u5b9a\u4f4d&#xff1a;\u6280\u672f\u8bfb\u8005\u53ef\u843d\u70b9&#xff1b;\u6570\u636e\u5168\u4fdd\u7559&#xff1b;\u96f6\u5916\u94fe\u96f6\u5f15\u6d41&#xff08;\u4e0d\u542b\u7ad9\u5916\u94fe\u63a5\u3001\u4e0d\u542b\u54c1\u724c\u540d&#xff09; \u6807\u9898\u6280\u672f\u5411&#xff0c;\u6b63\u6587\u7ed9\u5de5\u7a0b\u5224\u65ad\u957f\u5047\u4e4b\u540e\u6211\u624d\u60f3\u660e\u767d&#xff1a;\u5ba2\u670d AI \u843d\u5730\u7684\u74f6\u9888\u4ece\u6765\u4e0d\u5728\u6a21\u578b&#xff0c;\u5728\u7b54\u6848\u7684\u5f52\u5c5e \u56fd\u5e86\u5047\u671f\u7b2c\u4e09\u5929&#xff0c;\u4e00\u4e2a\u505a\u5bb6\u5c45\u5efa\u6750\u7684\u8001\u677f\u7ed9\u6211\u6253\u7535\u8bdd&#xff0c;\u8bf4\u628a\u673a\u7968\u6539\u7b7e\u4e86\u3002 \u4e0d\u662f\u751f\u610f\u51fa\u4e8b\u3002\u5341\u6708\u4e00\u65e5\u665a\u4e0a\u5341\u4e00\u70b9&amp;#x\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/113256.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-10-05T12:33:17+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/113256.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/113256.html\",\"name\":\"\u5ba2\u670d AI \u843d\u5730\u590d\u76d8\uff1a\u5361\u4f4f\u9879\u76ee\u7684\u4e0d\u662f\u6a21\u578b\uff0c\u662f\u7b54\u6848\u53ea\u88c5\u5728\u4e00\u4e2a\u4eba\u8111\u5b50\u91cc - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-10-05T12:33:17+00:00\",\"dateModified\":\"2026-10-05T12:33:17+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/113256.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/113256.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/113256.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5ba2\u670d AI \u843d\u5730\u590d\u76d8\uff1a\u5361\u4f4f\u9879\u76ee\u7684\u4e0d\u662f\u6a21\u578b\uff0c\u662f\u7b54\u6848\u53ea\u88c5\u5728\u4e00\u4e2a\u4eba\u8111\u5b50\u91cc\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u5ba2\u670d AI \u843d\u5730\u590d\u76d8\uff1a\u5361\u4f4f\u9879\u76ee\u7684\u4e0d\u662f\u6a21\u578b\uff0c\u662f\u7b54\u6848\u53ea\u88c5\u5728\u4e00\u4e2a\u4eba\u8111\u5b50\u91cc - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","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":"https:\/\/www.wsisp.com\/helps\/113256.html","og_locale":"zh_CN","og_type":"article","og_title":"\u5ba2\u670d AI \u843d\u5730\u590d\u76d8\uff1a\u5361\u4f4f\u9879\u76ee\u7684\u4e0d\u662f\u6a21\u578b\uff0c\u662f\u7b54\u6848\u53ea\u88c5\u5728\u4e00\u4e2a\u4eba\u8111\u5b50\u91cc - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"02 \u00b7 CSDN \u53d8\u4f53&#xff08;\u6280\u672f\u89c6\u89d2&#xff09;\u5b9a\u4f4d&#xff1a;\u6280\u672f\u8bfb\u8005\u53ef\u843d\u70b9&#xff1b;\u6570\u636e\u5168\u4fdd\u7559&#xff1b;\u96f6\u5916\u94fe\u96f6\u5f15\u6d41&#xff08;\u4e0d\u542b\u7ad9\u5916\u94fe\u63a5\u3001\u4e0d\u542b\u54c1\u724c\u540d&#xff09; \u6807\u9898\u6280\u672f\u5411&#xff0c;\u6b63\u6587\u7ed9\u5de5\u7a0b\u5224\u65ad\u957f\u5047\u4e4b\u540e\u6211\u624d\u60f3\u660e\u767d&#xff1a;\u5ba2\u670d AI \u843d\u5730\u7684\u74f6\u9888\u4ece\u6765\u4e0d\u5728\u6a21\u578b&#xff0c;\u5728\u7b54\u6848\u7684\u5f52\u5c5e \u56fd\u5e86\u5047\u671f\u7b2c\u4e09\u5929&#xff0c;\u4e00\u4e2a\u505a\u5bb6\u5c45\u5efa\u6750\u7684\u8001\u677f\u7ed9\u6211\u6253\u7535\u8bdd&#xff0c;\u8bf4\u628a\u673a\u7968\u6539\u7b7e\u4e86\u3002 \u4e0d\u662f\u751f\u610f\u51fa\u4e8b\u3002\u5341\u6708\u4e00\u65e5\u665a\u4e0a\u5341\u4e00\u70b9&amp;#x","og_url":"https:\/\/www.wsisp.com\/helps\/113256.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-10-05T12:33:17+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/113256.html","url":"https:\/\/www.wsisp.com\/helps\/113256.html","name":"\u5ba2\u670d AI \u843d\u5730\u590d\u76d8\uff1a\u5361\u4f4f\u9879\u76ee\u7684\u4e0d\u662f\u6a21\u578b\uff0c\u662f\u7b54\u6848\u53ea\u88c5\u5728\u4e00\u4e2a\u4eba\u8111\u5b50\u91cc - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-10-05T12:33:17+00:00","dateModified":"2026-10-05T12:33:17+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/113256.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/113256.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/113256.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u5ba2\u670d AI \u843d\u5730\u590d\u76d8\uff1a\u5361\u4f4f\u9879\u76ee\u7684\u4e0d\u662f\u6a21\u578b\uff0c\u662f\u7b54\u6848\u53ea\u88c5\u5728\u4e00\u4e2a\u4eba\u8111\u5b50\u91cc"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/113256","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=113256"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/113256\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=113256"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=113256"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=113256"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=113256"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}