{"id":5607,"date":"2026-01-14T11:47:16","date_gmt":"2026-01-14T03:47:16","guid":{"rendered":"https:\/\/code.jishujc.com\/?p=5607"},"modified":"2026-01-14T11:47:16","modified_gmt":"2026-01-14T03:47:16","slug":"x-%e7%ab%99%e8%b5%84%e6%ba%90%e9%87%87%e9%9b%86%e5%85%b3%e9%94%ae%e8%af%8d%e8%bf%87%e6%bb%a4%e6%95%99%e7%a8%8b-%e6%8c%87%e5%ae%9a%e5%85%b3%e9%94%ae%e8%af%8d%e8%b5%84%e6%ba%90%e7%b2%be%e5%87%86","status":"publish","type":"post","link":"https:\/\/www.qqjishu.com\/index.php\/2026\/01\/14\/x-%e7%ab%99%e8%b5%84%e6%ba%90%e9%87%87%e9%9b%86%e5%85%b3%e9%94%ae%e8%af%8d%e8%bf%87%e6%bb%a4%e6%95%99%e7%a8%8b-%e6%8c%87%e5%ae%9a%e5%85%b3%e9%94%ae%e8%af%8d%e8%b5%84%e6%ba%90%e7%b2%be%e5%87%86\/","title":{"rendered":"x \u7ad9\u8d44\u6e90\u91c7\u96c6\u5173\u952e\u8bcd\u8fc7\u6ee4\u6559\u7a0b \u6307\u5b9a\u5173\u952e\u8bcd\u8d44\u6e90\u7cbe\u51c6\u91c7\u96c6\u6280\u5de7"},"content":{"rendered":"<h3>\u5173\u952e\u8bcd\u8fc7\u6ee4\u7684\u76ee\u7684<\/h3>\n<p class=\"ds-markdown-paragraph\">\u5728\u6d69\u5982\u70df\u6d77\u7684\u8d44\u6e90\u4e2d\uff0c\u5feb\u901f\u7b5b\u9009\u9898\u6750\u3001\u6f14\u5458\u3001\u5bfc\u6f14\u7b49\u7b26\u5408\u7279\u5b9a\u9700\u6c42\u7684\u5185\u5bb9\uff0c\u5173\u952e\u8bcd\u8fc7\u6ee4\u662f\u6838\u5fc3\u624b\u6bb5\u3002\u5b83\u53ef\u4ee5\u5e94\u7528\u5728\u91c7\u96c6\u524d\uff08\u4e3b\u52a8\u7b5b\u9009\uff09\u6216\u91c7\u96c6\u540e\uff08\u88ab\u52a8\u8fc7\u6ee4\uff09\u3002<\/p>\n<h3>\u91c7\u96c6\u524d\u8fc7\u6ee4\uff1a\u4e3b\u52a8\u7cbe\u51c6\u6293\u53d6<\/h3>\n<p class=\"ds-markdown-paragraph\">\u8fd9\u79cd\u65b9\u6cd5\u5728\u6e90\u5934\u63a7\u5236\u6570\u636e\u6d41\u5165\uff0c\u6548\u7387\u6700\u9ad8\u3002<\/p>\n<ol start=\"1\">\n<li>\n<p class=\"ds-markdown-paragraph\"><strong>\u5229\u7528\u7ad9\u5185\u641c\u7d22<\/strong>\uff1a\u5982\u679c\u76ee\u6807\u7f51\u7ad9\u63d0\u4f9b\u641c\u7d22\u529f\u80fd\uff0c\u53ef\u4ee5\u5c06\u5173\u952e\u8bcd\u7ec4\u5408\u6210\u641c\u7d22URL\u4f5c\u4e3a\u91c7\u96c6\u8d77\u59cb\u70b9\u3002\u4f8b\u5982\uff1a<code>https:\/\/site.com\/search?q=\u5173\u952e\u8bcd<\/code>\u3002\u7136\u540e\u91c7\u96c6\u641c\u7d22\u7ed3\u679c\u9875\u7684\u5185\u5bb9\u3002<\/p>\n<\/li>\n<li>\n<p class=\"ds-markdown-paragraph\"><strong>\u5728\u5217\u8868\u9875\u5b9e\u65f6\u8fc7\u6ee4<\/strong>\uff1a\u7f16\u5199\u91c7\u96c6\u89c4\u5219\u65f6\uff0c\u589e\u52a0\u6761\u4ef6\u5224\u65ad\u3002\u4f8b\u5982\uff0c\u4ec5\u5f53\u5217\u8868\u9879\u4e2d\u7684\u6807\u9898\u6216\u7b80\u4ecb\u6587\u672c\u5305\u542b\u201c\u79d1\u5e7b\u201d\u6216\u201c\u5218\u6148\u6b23\u201d\u65f6\uff0c\u624d\u8fdb\u5165\u8be5\u94fe\u63a5\u6293\u53d6\u8be6\u60c5\u3002\u8fd9\u9700\u8981\u5728\u91c7\u96c6\u5de5\u5177\u4e2d\u652f\u6301\u201c\u5185\u5bb9\u8fc7\u6ee4\u201d\u6216\u201c\u6761\u4ef6\u6293\u53d6\u201d\u529f\u80fd\u3002<\/p>\n<\/li>\n<\/ol>\n<h3>\u91c7\u96c6\u540e\u8fc7\u6ee4\uff1a\u6570\u636e\u6e05\u6d17\u4e0e\u7b5b\u9009<\/h3>\n<p class=\"ds-markdown-paragraph\">\u5982\u679c\u5df2\u7ecf\u5b8c\u6210\u4e86\u5168\u91cf\u6216\u5bbd\u6cdb\u91c7\u96c6\uff0c\u53ef\u4ee5\u901a\u8fc7\u540e\u671f\u5904\u7406\u8fdb\u884c\u7b5b\u9009\u3002<br \/>\n<strong>\u5b9e\u64cd\u6848\u4f8b<\/strong>\uff1a\u4f7f\u7528Python\u7684Pandas\u5e93\uff0c\u52a0\u8f7d\u91c7\u96c6\u5230\u7684CSV\u6570\u636e\uff0c\u7136\u540e\u5bf9<code>title<\/code>\u548c<code>description<\/code>\u5b57\u6bb5\u8fdb\u884c\u5b57\u7b26\u4e32\u5339\u914d\u3002<\/p>\n<div class=\"md-code-block md-code-block-light\">\n<div class=\"md-code-block-banner-wrap\">\n<div class=\"md-code-block-banner md-code-block-banner-lite\">\n<div class=\"_121d384\">\n<div class=\"d2a24f03\"><span class=\"d813de27\">python<\/span><\/div>\n<div class=\"d2a24f03 _246a029\">\n<div class=\"efa13877\">\n<div class=\"ds-focus-ring\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<pre><span class=\"token keyword\">import<\/span> pandas <span class=\"token keyword\">as<\/span> pd\ndf <span class=\"token operator\">=<\/span> pd<span class=\"token punctuation\">.<\/span>read_csv<span class=\"token punctuation\">(<\/span><span class=\"token string\">'resources.csv'<\/span><span class=\"token punctuation\">)<\/span>\n<span class=\"token comment\"># \u7b5b\u9009\u6807\u9898\u6216\u63cf\u8ff0\u4e2d\u5305\u542b\u201c\u9ad8\u6e05\u201d\u4e14\u5305\u542b\u201c\u56fd\u82f1\u53cc\u8bed\u201d\u7684\u6570\u636e<\/span>\nfiltered_df <span class=\"token operator\">=<\/span> df<span class=\"token punctuation\">[<\/span>df<span class=\"token punctuation\">[<\/span><span class=\"token string\">'title'<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">.<\/span><span class=\"token builtin\">str<\/span><span class=\"token punctuation\">.<\/span>contains<span class=\"token punctuation\">(<\/span><span class=\"token string\">'\u9ad8\u6e05'<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token operator\">&amp;<\/span> df<span class=\"token punctuation\">[<\/span><span class=\"token string\">'description'<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">.<\/span><span class=\"token builtin\">str<\/span><span class=\"token punctuation\">.<\/span>contains<span class=\"token punctuation\">(<\/span><span class=\"token string\">'\u56fd\u82f1\u53cc\u8bed'<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">]<\/span>\nfiltered_df<span class=\"token punctuation\">.<\/span>to_csv<span class=\"token punctuation\">(<\/span><span class=\"token string\">'filtered_resources.csv'<\/span><span class=\"token punctuation\">,<\/span> index<span class=\"token operator\">=<\/span><span class=\"token boolean\">False<\/span><span class=\"token punctuation\">)<\/span><\/pre>\n<\/div>\n<p class=\"ds-markdown-paragraph\">\u8fd9\u79cd\u65b9\u6cd5\u7075\u6d3b\uff0c\u53ef\u4ee5\u7ed3\u5408\u590d\u6742\u7684\u903b\u8f91\uff08\u4e0e\u3001\u6216\u3001\u975e\uff09\uff0c\u4f46\u524d\u63d0\u662f\u5df2\u7ecf\u91c7\u96c6\u4e86\u8db3\u591f\u591a\u7684\u5143\u6570\u636e\u3002<\/p>\n<h3>\u603b\u7ed3\uff1a\u6e90\u5934\u63a7\u5236\u4e0e\u540e\u7aef\u7b5b\u9009\u7ed3\u5408<\/h3>\n<p class=\"ds-markdown-paragraph\">\u6700\u7406\u60f3\u7684\u7b56\u7565\u662f\u7ed3\u5408\u4e24\u8005\uff1a\u5148\u5229\u7528\u7ad9\u5185\u641c\u7d22\u6216\u6761\u4ef6\u6293\u53d6\u8fdb\u884c\u521d\u6b65\u7b5b\u9009\uff0c\u91c7\u96c6\u5230\u4e00\u6279\u76f8\u5173\u6027\u8f83\u9ad8\u7684\u6570\u636e\uff1b\u518d\u901a\u8fc7\u540e\u7aef\u811a\u672c\u8fdb\u884c\u66f4\u7cbe\u7ec6\u7684\u5173\u952e\u8bcd\u7ec4\u5408\u8fc7\u6ee4\uff0c\u5f97\u5230\u6700\u7ec8\u6240\u9700\u7684\u9ad8\u7cbe\u51c6\u5ea6\u8d44\u6e90\u5217\u8868\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5173\u952e\u8bcd\u8fc7\u6ee4\u7684\u76ee\u7684 \u5728\u6d69\u5982\u70df\u6d77\u7684\u8d44\u6e90\u4e2d\uff0c\u5feb\u901f\u7b5b\u9009\u9898\u6750\u3001\u6f14\u5458\u3001\u5bfc\u6f14\u7b49\u7b26\u5408\u7279\u5b9a\u9700\u6c42\u7684\u5185\u5bb9\uff0c\u5173\u952e\u8bcd\u8fc7\u6ee4\u662f\u6838\u5fc3\u624b\u6bb5\u3002\u5b83\u53ef\u4ee5\u5e94\u7528\u5728\u91c7\u96c6\u524d\uff08\u4e3b\u52a8\u7b5b\u9009\uff09\u6216\u91c7\u96c6\u540e\uff08\u88ab\u52a8\u8fc7\u6ee4\uff09\u3002 \u91c7\u96c6\u524d\u8fc7\u6ee4\uff1a\u4e3b\u52a8\u7cbe\u51c6\u6293\u53d6 \u8fd9\u79cd\u65b9\u6cd5\u5728\u6e90\u5934\u63a7\u5236\u6570\u636e\u6d41\u5165\uff0c\u6548\u7387\u6700\u9ad8\u3002 \u5229\u7528\u7ad9\u5185\u641c\u7d22\uff1a\u5982\u679c\u76ee\u6807\u7f51\u7ad9\u63d0\u4f9b\u641c\u7d22\u529f\u80fd\uff0c\u53ef\u4ee5\u5c06\u5173\u952e\u8bcd\u7ec4\u5408\u6210\u641c\u7d22URL\u4f5c\u4e3a\u91c7\u96c6\u8d77\u59cb\u70b9\u3002\u4f8b\u5982\uff1ahttps:\/\/site.com\/search?q=\u5173\u952e\u8bcd\u3002\u7136\u540e\u91c7\u96c6\u641c\u7d22\u7ed3\u679c\u9875\u7684\u5185\u5bb9\u3002 \u5728\u5217\u8868\u9875\u5b9e\u65f6\u8fc7\u6ee4\uff1a\u7f16\u5199\u91c7\u96c6\u89c4\u5219\u65f6\uff0c\u589e\u52a0\u6761\u4ef6\u5224\u65ad\u3002\u4f8b\u5982\uff0c\u4ec5\u5f53\u5217\u8868\u9879\u4e2d\u7684\u6807\u9898\u6216\u7b80\u4ecb\u6587\u672c\u5305\u542b\u201c\u79d1\u5e7b\u201d\u6216\u201c\u5218\u6148\u6b23\u201d\u65f6\uff0c\u624d\u8fdb\u5165<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[28],"tags":[],"collection":[],"class_list":["post-5607","post","type-post","status-publish","format-standard","hentry","category-qtjc"],"_links":{"self":[{"href":"https:\/\/www.qqjishu.com\/index.php\/wp-json\/wp\/v2\/posts\/5607","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qqjishu.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qqjishu.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qqjishu.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qqjishu.com\/index.php\/wp-json\/wp\/v2\/comments?post=5607"}],"version-history":[{"count":0,"href":"https:\/\/www.qqjishu.com\/index.php\/wp-json\/wp\/v2\/posts\/5607\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.qqjishu.com\/index.php\/wp-json\/wp\/v2\/media?parent=5607"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qqjishu.com\/index.php\/wp-json\/wp\/v2\/categories?post=5607"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qqjishu.com\/index.php\/wp-json\/wp\/v2\/tags?post=5607"},{"taxonomy":"collection","embeddable":true,"href":"https:\/\/www.qqjishu.com\/index.php\/wp-json\/wp\/v2\/collection?post=5607"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}