{"id":124347,"date":"2026-11-18T22:16:36","date_gmt":"2026-11-18T14:16:36","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/124347.html"},"modified":"2026-11-18T22:16:36","modified_gmt":"2026-11-18T14:16:36","slug":"%e6%8f%90%e7%a4%ba%e8%af%8d%e6%a8%a1%e6%9d%bf%e7%89%88%e6%9c%ac%e7%ae%a1%e7%90%86%e5%b7%a5%e4%bd%9c%e6%b5%81%ef%bc%9a%e6%8a%bd%e7%a6%bb%e3%80%81%e7%89%88%e6%9c%ac%e3%80%81%e7%81%b0%e5%ba%a6%e4%b8%8e","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/124347.html","title":{"rendered":"\u63d0\u793a\u8bcd\u6a21\u677f\u7248\u672c\u7ba1\u7406\u5de5\u4f5c\u6d41\uff1a\u62bd\u79bb\u3001\u7248\u672c\u3001\u7070\u5ea6\u4e0e\u56de\u6eda\u7684 5 \u6b65\u6e05\u5355\uff0c\u9644\u53ef\u8dd1\u4ee3\u7801"},"content":{"rendered":"<p>        \/* MD \/ \u5bcc\u6587\u672c\u4e2d\u7684 .toc\uff08\u542b\u535a\u5ba2\u56ed\u642c\u5bb6\u7b49\u5d4c\u5957\u7ed3\u6784\uff09\uff1b.toc-box \u5728\u4fa7\u680f\uff0c\u4e0d\u53d7\u5f71\u54cd *\/<br \/>\n        #content_views .toc,<br \/>\n        \/* \u7f16\u8f91\u5668\u5e38\u5728\u76ee\u5f55\u524d\u540e\u63d2\u5165\u7a7a p\uff08:empty \u4ecd\u5360 20px\uff09\uff0c\u4e00\u5e76\u53bb\u6389\u907f\u514d\u9876\u7a7a\u9699 *\/<br \/>\n        #content_views.markdown_views &gt; p:empty:has(+ .toc),<br \/>\n        #content_views.markdown_views &gt; .toc + p:empty,<br \/>\n        \/* \u5bcc\u6587\u672c\u65e7\u7248\u76ee\u5f55\u6807\u8bb0 *\/<br \/>\n        #content_views.htmledit_views #main-toc,<br \/>\n        #content_views.htmledit_views #hr-toc,<br \/>\n        #content_views.htmledit_views p[id*=\\&#8221;-toc\\&#8221;] {<br \/>\n          display: none !important;<br \/>\n        }<br \/>\n        \/* \u76ee\u5f55\u53bb\u6389\u540e\uff0c\u7d27\u8ddf\u7684\u9996\u4e2a\u6807\u9898\u4e0d\u518d\u591a\u51fa\u4e00\u5757\u4e0a\u8fb9\u8ddd *\/<br \/>\n        #content_views.markdown_views &gt; .toc + h1,<br \/>\n        #content_views.markdown_views &gt; .toc + h2,<br \/>\n        #content_views.markdown_views &gt; .toc + h3,<br \/>\n        #content_views.markdown_views &gt; .toc + h4,<br \/>\n        #content_views.markdown_views &gt; .toc + p:empty + h1,<br \/>\n        #content_views.markdown_views &gt; .toc + p:empty + h2,<br \/>\n        #content_views.markdown_views &gt; .toc + p:empty + h3,<br \/>\n        #content_views.markdown_views &gt; .toc + p:empty + h4 {<br \/>\n          margin-top: 0 !important;<br \/>\n        }<\/p>\n<p>\u4e0a\u4e00\u7bc7\u8bb2\u4e86\u9519\u8bef\u7801\u5b57\u5178&#xff0c;\u8fd9\u7bc7\u7ed9\u4f60\u4e00\u5957\u63d0\u793a\u8bcd\u6a21\u677f\u7248\u672c\u7ba1\u7406&#xff1a;\u63d0\u793a\u8bcd\u4ece\u4ee3\u7801\u91cc\u62bd\u51fa\u6765\u3001\u6bcf\u7248\u7559\u8bb0\u5f55\u3001\u6539\u574f\u4e86\u80fd\u56de\u6eda\u3002\u6587\u672b\u6709\u4e00\u6bb5\u53ef\u8dd1\u4ee3\u7801&#xff0c;\u6a21\u677f\u3001\u7248\u672c\u3001\u5bf9\u7167\u8bb0\u5f55\u4e00\u6b21\u914d\u9f50&#xff0c;\u6f14\u793a\u7528\u6a21\u62df\u6570\u636e&#xff0c;\u4e0d\u53d1\u771f\u5b9e\u8bf7\u6c42\u3002\u5f00\u5934\u5148\u8d34\u4e00\u5f20\u201c\u63d0\u793a\u8bcd\u7248\u672c\u5bf9\u7167\u8868\u201d\u6a21\u677f&#xff0c;\u6b22\u8fce\u586b\u5b8c\u6652\u81ea\u5df1\u7684\u7248\u672c\u8bb0\u5f55\u2014\u2014\u4f60\u7684\u63d0\u793a\u8bcd\u73b0\u5728\u662f\u7b2c\u51e0\u7248&#xff0c;\u4f60\u8fd8\u627e\u5f97\u56de\u7b2c\u4e00\u7248\u5417&#xff1f;<\/p>\n<p>\u4e3a\u4ec0\u4e48\u9700\u8981\u7248\u672c\u7ba1\u7406&#xff1f;\u63d0\u793a\u8bcd\u6700\u5bb9\u6613\u51fa\u73b0\u4e09\u4e2a\u75c7\u72b6&#xff1a;\u7b2c\u4e00&#xff0c;\u63d0\u793a\u8bcd\u6563\u5728\u5404\u5904\u8c03\u7528\u70b9&#xff0c;\u6539\u4e86\u4e00\u5904&#xff0c;\u53e6\u4e00\u5904\u8fd8\u662f\u65e7\u7248&#xff1b;\u7b2c\u4e8c&#xff0c;\u6548\u679c\u53d8\u597d\u4e86\u6216\u8005\u53d8\u5dee\u4e86&#xff0c;\u4e0d\u77e5\u9053\u662f\u54ea\u4e00\u7248\u6539\u52a8\u9020\u6210\u7684&#xff0c;\u5b9a\u4f4d\u4e0d\u5230&#xff1b;\u7b2c\u4e09&#xff0c;\u60f3\u56de\u6eda\u5230\u4e0a\u4e00\u7248&#xff0c;\u65e7\u7248\u65e9\u88ab\u8986\u76d6\u4e86&#xff0c;\u627e\u4e0d\u56de\u6765\u3002\u6ca1\u6709\u7248\u672c\u7ba1\u7406&#xff0c;\u63d0\u793a\u8bcd\u5c31\u662f\u4e00\u5806\u6563\u843d\u7684\u5b57\u7b26\u4e32&#xff0c;\u6539\u4e00\u6b21\u9760\u8fd0\u6c14&#xff0c;\u6548\u679c\u5168\u51ed\u611f\u89c9\u3002\u7248\u672c\u7ba1\u7406\u505a\u7684\u4e8b\u5f88\u7b80\u5355&#xff1a;\u63d0\u793a\u8bcd\u62bd\u51fa\u6765\u96c6\u4e2d\u653e&#xff0c;\u6bcf\u6b21\u6539\u52a8\u8bb0\u4e00\u7248&#xff0c;\u65b0\u65e7\u7248\u672c\u62ff\u540c\u4e00\u6279\u8f93\u5165\u5bf9\u7167\u7740\u770b&#xff0c;\u6539\u574f\u4e86\u80fd\u4e00\u952e\u56de\u53bb\u3002<\/p>\n<p>\u5148\u770b\u7248\u672c\u5bf9\u7167\u8868\u3002\u4e0b\u9762\u662f\u4e00\u5957\u201c\u603b\u7ed3\u201d\u63d0\u793a\u8bcd\u4ece v1.0.0 \u5230 v2.0.0 \u7684\u771f\u5b9e\u5bf9\u7167&#xff08;\u6f14\u793a\u7528\u6a21\u62df\u8f93\u51fa&#xff0c;\u4e0d\u53d1\u771f\u5b9e\u8bf7\u6c42&#xff09;&#xff1a;<\/p>\n<table>\n<tr>\u7248\u672c\u6539\u4e86\u4ec0\u4e48\u4e3a\u4ec0\u4e48\u6539\u540c\u6279\u8f93\u5165\u5bf9\u7167\u7ed3\u679c&#xff08;\u6a21\u62df&#xff09;<\/tr>\n<tbody>\n<tr>\n<td>v1.0.0<\/td>\n<td>\u7b2c\u4e00\u7248&#xff1a;\u53ea\u63d0\u603b\u7ed3&#xff0c;\u6ca1\u63d0\u683c\u5f0f<\/td>\n<td>\u5148\u8dd1\u901a<\/td>\n<td>\u8f93\u51fa\u8f83\u957f&#xff0c;\u672a\u5206\u70b9<\/td>\n<\/tr>\n<tr>\n<td>v1.1.0<\/td>\n<td>\u52a0\u4e86\u683c\u5f0f\u8981\u6c42&#xff1a;\u5206\u70b9 &#043; \u4fdd\u7559\u6570\u5b57<\/td>\n<td>\u8f93\u51fa\u592a\u6563&#xff0c;\u5173\u952e\u6570\u5b57\u5e38\u4e22<\/td>\n<td>\u5206 3 \u70b9&#xff0c;\u4fdd\u7559\u4e86\u5173\u952e\u6570\u5b57<\/td>\n<\/tr>\n<tr>\n<td>v2.0.0<\/td>\n<td>\u52a0\u4e86\u7ed3\u8bba\u53e5<\/td>\n<td>\u8bfb\u5b8c\u4e0d\u77e5\u9053\u7ed3\u8bba\u662f\u4ec0\u4e48<\/td>\n<td>\u5206 3 \u70b9&#xff0c;\u4fdd\u7559\u5173\u952e\u6570\u5b57&#xff0c;\u7ed3\u5c3e\u7ed9\u51fa\u7ed3\u8bba<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5bf9\u7167\u7528\u7684\u662f\u540c\u4e00\u6279 3 \u6761\u8f93\u5165&#xff08;\u5b63\u5ea6\u590d\u76d8\u6750\u6599\u3001\u7528\u6237\u53cd\u9988\u6c47\u603b\u3001\u4f1a\u8bae\u7eaa\u8981&#xff09;&#xff0c;v1.1.0 \u4e0e v2.0.0 \u7684\u8f93\u51fa\u53ea\u6709\u7ed3\u5c3e\u7ed3\u8bba\u4e00\u53e5\u4e4b\u5dee&#xff0c;\u6539\u52a8\u7684\u5f71\u54cd\u4e00\u773c\u770b\u5f97\u51fa\u6765\u3002\u4e0b\u9762 5 \u6b65\u662f\u7ed9\u63d0\u793a\u8bcd\u4e0a\u7248\u672c\u7ba1\u7406\u7684\u6807\u51c6\u52a8\u4f5c&#xff1a;<\/p>\n<p>\u7b2c\u4e00\u6b65&#xff1a;\u628a\u63d0\u793a\u8bcd\u4ece\u4ee3\u7801\u91cc\u62bd\u51fa\u6765&#xff0c;\u96c6\u4e2d\u653e<br \/>\n\u63d0\u793a\u8bcd\u522b\u5199\u5728\u8c03\u7528\u70b9&#xff0c;\u522b\u62fc\u5728\u4e1a\u52a1\u903b\u8f91\u91cc\u3002\u62bd\u6210\u6a21\u677f&#xff0c;\u653e\u5230\u6a21\u677f\u5e93\u6216\u8005\u6a21\u677f\u6587\u4ef6\u91cc&#xff0c;\u8c03\u7528\u65b9\u53ea\u4f20\u53d8\u91cf\u3002\u62bd\u79bb\u4e4b\u540e&#xff0c;\u6539\u63d0\u793a\u8bcd\u53ea\u6539\u6a21\u677f\u4e00\u5904&#xff0c;\u4e0d\u7528\u6ee1\u4ee3\u7801\u627e\u5b57\u7b26\u4e32\u3002<\/p>\n<p>\u7b2c\u4e8c\u6b65&#xff1a;\u7ed9\u6bcf\u4e2a\u6a21\u677f\u5b9a\u7248\u672c\u53f7&#xff0c;\u6539\u52a8\u5199 changelog<br \/>\n\u7248\u672c\u53f7\u7528\u8bed\u4e49\u5316\u7248\u672c&#xff1a;v1.0.0\u3001v1.1.0\u3001v2.0.0&#xff0c;\u5927\u6539\u5347\u4e3b\u7248\u672c&#xff0c;\u5c0f\u6539\u5347\u6b21\u7248\u672c\u3002\u6bcf\u7248\u914d\u4e00\u53e5 changelog&#xff1a;\u6539\u4e86\u4ec0\u4e48\u3001\u4e3a\u4ec0\u4e48\u6539\u3002\u7248\u672c\u53f7\u662f\u5b9a\u4f4d\u4f9d\u636e&#xff1a;\u6548\u679c\u53d8\u4e86&#xff0c;\u5148\u95ee\u201c\u662f\u54ea\u4e00\u7248\u201d&#xff0c;\u800c\u4e0d\u662f\u201c\u662f\u8c01\u6539\u7684\u201d\u3002<\/p>\n<p>\u7b2c\u4e09\u6b65&#xff1a;\u53d8\u91cf\u7528\u5360\u4f4d\u7b26&#xff0c;\u6a21\u677f\u4e0e\u6570\u636e\u5206\u79bb<br \/>\n\u6a21\u677f\u91cc\u7559 {{text}} \u8fd9\u6837\u7684\u5360\u4f4d\u7b26&#xff0c;\u8c03\u7528\u65f6\u518d\u586b\u771f\u5b9e\u5185\u5bb9\u3002\u6a21\u677f\u53ea\u7ba1\u63aa\u8f9e\u548c\u683c\u5f0f&#xff0c;\u6570\u636e\u53ea\u7ba1\u4f20\u8fdb\u6765\u3002\u597d\u5904\u662f\u540c\u4e00\u6a21\u677f\u80fd\u590d\u7528&#xff0c;\u574f\u5904\u662f\u53d8\u91cf\u62fc\u8fdb\u53bb\u4e4b\u524d\u8981\u68c0\u67e5\u2014\u2014\u7528\u6237\u8f93\u5165\u522b\u76f4\u63a5\u62fc\u8fdb\u6a21\u677f&#xff0c;\u5148\u505a\u5fc5\u8981\u7684\u6821\u9a8c\u548c\u8f6c\u4e49\u3002<\/p>\n<p>\u7b2c\u56db\u6b65&#xff1a;\u7070\u5ea6\u4e0e\u5bf9\u7167&#xff1a;\u65b0\u65e7\u7248\u672c\u540c\u6279\u8f93\u5165\u5e76\u8dd1&#xff0c;\u518d\u51b3\u5b9a\u5207\u4e0d\u5207<br \/>\n\u65b0\u7248\u522b\u76f4\u63a5\u5168\u91cf\u66ff\u6362\u65e7\u7248\u3002\u62ff\u540c\u4e00\u6279\u8f93\u5165\u8dd1\u65b0\u65e7\u4e24\u4e2a\u7248\u672c&#xff0c;\u628a\u8f93\u51fa\u5e76\u6392\u8bb0\u4e0b\u6765&#xff0c;\u5c31\u662f\u5bf9\u7167\u8bb0\u5f55\u3002\u5bf9\u7167\u8bb0\u5f55\u8981\u8bb0\u4e09\u6837&#xff1a;\u7248\u672c\u53f7\u3001\u8f93\u5165\u3001\u8f93\u51fa&#xff0c;\u7f3a\u4e86\u8f93\u5165&#xff0c;\u5bf9\u7167\u5c31\u6ca1\u6cd5\u590d\u73b0\u3002\u770b\u5b8c\u5bf9\u7167\u518d\u51b3\u5b9a&#xff1a;\u65b0\u7248\u66f4\u597d\u5c31\u5207\u8fc7\u53bb&#xff0c;\u4e0d\u597d\u5c31\u7559\u5728\u65e7\u7248\u3002<\/p>\n<p>\u7b2c\u4e94\u6b65&#xff1a;\u56de\u6eda&#xff1a;\u4e00\u952e\u5207\u56de\u4e0a\u4e00\u7248&#xff0c;\u65e7\u7248\u4fdd\u7559\u4e0d\u5220\u9664<br \/>\n\u56de\u6eda\u4e0d\u662f\u628a\u65b0\u7248\u5220\u6389&#xff0c;\u800c\u662f\u628a\u5f53\u524d\u9ed8\u8ba4\u7248\u5207\u56de\u65e7\u7248\u3002\u65e7\u7248\u6c38\u8fdc\u4fdd\u7559\u5728\u5e93\u91cc&#xff0c;\u5220\u4e86\u5c31\u7b49\u4e8e\u4e22\u4e86\u9000\u8def\u3002\u56de\u6eda\u4e4b\u540e\u4e5f\u8981\u8bb0\u4e00\u7b14&#xff1a;\u4ec0\u4e48\u65f6\u5019\u3001\u4ece\u54ea\u7248\u3001\u56de\u5230\u4e86\u54ea\u7248\u3001\u4e3a\u4ec0\u4e48\u56de\u6eda\u3002<\/p>\n<p>\u4e0b\u9762\u662f\u4e00\u6bb5\u628a\u6a21\u677f\u3001\u7248\u672c\u3001\u5bf9\u7167\u8bb0\u5f55\u4e32\u8d77\u6765\u7684\u53ef\u8dd1\u4ee3\u7801&#xff0c;\u6f14\u793a\u7528\u6a21\u62df\u6570\u636e&#xff0c;\u4e0d\u53d1\u771f\u5b9e\u8bf7\u6c42&#xff1a;<\/p>\n<p><span class=\"token comment\"># \u63d0\u793a\u8bcd\u6a21\u677f\u5e93&#xff1a;\u6a21\u677f\u3001\u7248\u672c\u3001\u5bf9\u7167\u8bb0\u5f55\u6536\u5728\u4e00\u8d77<\/span><br \/>\n<span class=\"token comment\"># \u6f14\u793a\u7528\u6a21\u62df\u8f93\u51fa&#xff0c;\u4e0d\u53d1\u771f\u5b9e\u8bf7\u6c42<\/span><br \/>\n<span class=\"token keyword\">class<\/span> <span class=\"token class-name\">PromptTemplateLibrary<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token keyword\">def<\/span> <span class=\"token function\">__init__<\/span><span class=\"token punctuation\">(<\/span>self<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">:<\/span><br \/>\n        <span class=\"token comment\"># name -&gt; {version: {&#034;template&#034;: str, &#034;notes&#034;: str}}<\/span><br \/>\n        self<span class=\"token punctuation\">.<\/span>_templates <span class=\"token operator\">&#061;<\/span> <span class=\"token punctuation\">{<\/span><span class=\"token punctuation\">}<\/span><br \/>\n        <span class=\"token comment\"># \u5bf9\u7167\u8bb0\u5f55&#xff1a;\u6bcf\u6b21\u65b0\u65e7\u7248\u672c\u540c\u6279\u8f93\u5165\u7684\u5bf9\u6bd4\u7ed3\u679c<\/span><br \/>\n        self<span class=\"token punctuation\">.<\/span>compare_log <span class=\"token operator\">&#061;<\/span> <span class=\"token punctuation\">[<\/span><span class=\"token punctuation\">]<\/span><\/p>\n<p>    <span class=\"token keyword\">def<\/span> <span class=\"token function\">register<\/span><span class=\"token punctuation\">(<\/span>self<span class=\"token punctuation\">,<\/span> name<span class=\"token punctuation\">,<\/span> version<span class=\"token punctuation\">,<\/span> template<span class=\"token punctuation\">,<\/span> notes<span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;&#034;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">:<\/span><br \/>\n        self<span class=\"token punctuation\">.<\/span>_templates<span class=\"token punctuation\">.<\/span>setdefault<span class=\"token punctuation\">(<\/span>name<span class=\"token punctuation\">,<\/span> <span class=\"token punctuation\">{<\/span><span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">[<\/span>version<span class=\"token punctuation\">]<\/span> <span class=\"token operator\">&#061;<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n            <span class=\"token string\">&#034;template&#034;<\/span><span class=\"token punctuation\">:<\/span> template<span class=\"token punctuation\">,<\/span><br \/>\n            <span class=\"token string\">&#034;notes&#034;<\/span><span class=\"token punctuation\">:<\/span> notes<span class=\"token punctuation\">,<\/span><br \/>\n        <span class=\"token punctuation\">}<\/span><\/p>\n<p>    <span class=\"token keyword\">def<\/span> <span class=\"token function\">versions<\/span><span class=\"token punctuation\">(<\/span>self<span class=\"token punctuation\">,<\/span> name<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">:<\/span><br \/>\n        <span class=\"token keyword\">return<\/span> <span class=\"token builtin\">sorted<\/span><span class=\"token punctuation\">(<\/span>self<span class=\"token punctuation\">.<\/span>_templates<span class=\"token punctuation\">.<\/span>get<span class=\"token punctuation\">(<\/span>name<span class=\"token punctuation\">,<\/span> <span class=\"token punctuation\">{<\/span><span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">.<\/span>keys<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<p>    <span class=\"token keyword\">def<\/span> <span class=\"token function\">render<\/span><span class=\"token punctuation\">(<\/span>self<span class=\"token punctuation\">,<\/span> name<span class=\"token punctuation\">,<\/span> version<span class=\"token punctuation\">,<\/span> <span class=\"token operator\">**<\/span>variables<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">:<\/span><br \/>\n        entry <span class=\"token operator\">&#061;<\/span> self<span class=\"token punctuation\">.<\/span>_templates<span class=\"token punctuation\">[<\/span>name<span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">[<\/span>version<span class=\"token punctuation\">]<\/span><br \/>\n        text <span class=\"token operator\">&#061;<\/span> entry<span class=\"token punctuation\">[<\/span><span class=\"token string\">&#034;template&#034;<\/span><span class=\"token punctuation\">]<\/span><br \/>\n        <span class=\"token keyword\">for<\/span> key<span class=\"token punctuation\">,<\/span> value <span class=\"token keyword\">in<\/span> variables<span class=\"token punctuation\">.<\/span>items<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">:<\/span><br \/>\n            text <span class=\"token operator\">&#061;<\/span> text<span class=\"token punctuation\">.<\/span>replace<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;{{&#034;<\/span> <span class=\"token operator\">&#043;<\/span> key <span class=\"token operator\">&#043;<\/span> <span class=\"token string\">&#034;}}&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token builtin\">str<\/span><span class=\"token punctuation\">(<\/span>value<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><br \/>\n        <span class=\"token keyword\">return<\/span> text<\/p>\n<p>    <span class=\"token keyword\">def<\/span> <span class=\"token function\">rollback<\/span><span class=\"token punctuation\">(<\/span>self<span class=\"token punctuation\">,<\/span> name<span class=\"token punctuation\">,<\/span> target_version<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">:<\/span><br \/>\n        <span class=\"token triple-quoted-string string\">&#034;&#034;&#034;\u56de\u6eda&#xff1a;\u5207\u56de\u6307\u5b9a\u65e7\u7248&#xff0c;\u65e7\u7248\u4fdd\u7559\u4e0d\u5220\u9664&#xff0c;\u53ea\u6362\u5f53\u524d\u9ed8\u8ba4\u7248\u3002&#034;&#034;&#034;<\/span><br \/>\n        <span class=\"token keyword\">if<\/span> target_version <span class=\"token keyword\">not<\/span> <span class=\"token keyword\">in<\/span> self<span class=\"token punctuation\">.<\/span>_templates<span class=\"token punctuation\">.<\/span>get<span class=\"token punctuation\">(<\/span>name<span class=\"token punctuation\">,<\/span> <span class=\"token punctuation\">{<\/span><span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">:<\/span><br \/>\n            <span class=\"token keyword\">raise<\/span> ValueError<span class=\"token punctuation\">(<\/span><span class=\"token string-interpolation\"><span class=\"token string\">f&#034;\u6ca1\u6709\u8fd9\u4e2a\u7248\u672c&#xff1a;<\/span><span class=\"token interpolation\"><span class=\"token punctuation\">{<\/span>target_version<span class=\"token punctuation\">}<\/span><\/span><span class=\"token string\">&#034;<\/span><\/span><span class=\"token punctuation\">)<\/span><br \/>\n        <span class=\"token keyword\">return<\/span> target_version<\/p>\n<p>    <span class=\"token keyword\">def<\/span> <span class=\"token function\">compare<\/span><span class=\"token punctuation\">(<\/span>self<span class=\"token punctuation\">,<\/span> name<span class=\"token punctuation\">,<\/span> version_a<span class=\"token punctuation\">,<\/span> version_b<span class=\"token punctuation\">,<\/span> inputs<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">:<\/span><br \/>\n        <span class=\"token triple-quoted-string string\">&#034;&#034;&#034;\u540c\u4e00\u6279\u8f93\u5165\u8dd1\u4e24\u4e2a\u7248\u672c&#xff0c;\u8bb0\u5bf9\u7167\u8bb0\u5f55\u3002run_model \u662f\u6a21\u62df\u7684\u3002&#034;&#034;&#034;<\/span><br \/>\n        rows <span class=\"token operator\">&#061;<\/span> <span class=\"token punctuation\">[<\/span><span class=\"token punctuation\">]<\/span><br \/>\n        <span class=\"token keyword\">for<\/span> item <span class=\"token keyword\">in<\/span> inputs<span class=\"token punctuation\">:<\/span><br \/>\n            out_a <span class=\"token operator\">&#061;<\/span> run_model_simulated<span class=\"token punctuation\">(<\/span>name<span class=\"token punctuation\">,<\/span> version_a<span class=\"token punctuation\">,<\/span> item<span class=\"token punctuation\">)<\/span><br \/>\n            out_b <span class=\"token operator\">&#061;<\/span> run_model_simulated<span class=\"token punctuation\">(<\/span>name<span class=\"token punctuation\">,<\/span> version_b<span class=\"token punctuation\">,<\/span> item<span class=\"token punctuation\">)<\/span><br \/>\n            rows<span class=\"token punctuation\">.<\/span>append<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">(<\/span>item<span class=\"token punctuation\">,<\/span> out_a<span class=\"token punctuation\">,<\/span> out_b<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><br \/>\n        self<span class=\"token punctuation\">.<\/span>compare_log<span class=\"token punctuation\">.<\/span>append<span class=\"token punctuation\">(<\/span><br \/>\n            <span class=\"token punctuation\">{<\/span><span class=\"token string\">&#034;name&#034;<\/span><span class=\"token punctuation\">:<\/span> name<span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;a&#034;<\/span><span class=\"token punctuation\">:<\/span> version_a<span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;b&#034;<\/span><span class=\"token punctuation\">:<\/span> version_b<span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;rows&#034;<\/span><span class=\"token punctuation\">:<\/span> rows<span class=\"token punctuation\">}<\/span><br \/>\n        <span class=\"token punctuation\">)<\/span><br \/>\n        <span class=\"token keyword\">return<\/span> rows<\/p>\n<p><span class=\"token comment\"># \u6a21\u62df\u7684\u6a21\u578b\u8f93\u51fa&#xff1a;\u6309\u7248\u672c\u8fd4\u56de\u56fa\u5b9a\u7ed3\u679c&#xff0c;\u53ea\u7528\u4e8e\u6f14\u793a\u5bf9\u7167\u6d41\u7a0b<\/span><br \/>\n_SIMULATED <span class=\"token operator\">&#061;<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;summarize&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;v1.0.0&#034;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#034;\u6458\u8981&#xff1a;\u5185\u5bb9\u8f83\u957f&#xff0c;\u672a\u5206\u70b9\u3002&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;summarize&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;v1.1.0&#034;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#034;\u6458\u8981&#xff1a;\u5206 3 \u70b9&#xff0c;\u4fdd\u7559\u4e86\u5173\u952e\u6570\u5b57\u3002&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;summarize&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;v2.0.0&#034;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#034;\u6458\u8981&#xff1a;\u5206 3 \u70b9&#xff0c;\u4fdd\u7559\u5173\u952e\u6570\u5b57&#xff0c;\u7ed3\u5c3e\u7ed9\u51fa\u7ed3\u8bba\u3002&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p><span class=\"token keyword\">def<\/span> <span class=\"token function\">run_model_simulated<\/span><span class=\"token punctuation\">(<\/span>name<span class=\"token punctuation\">,<\/span> version<span class=\"token punctuation\">,<\/span> input_text<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token keyword\">return<\/span> _SIMULATED<span class=\"token punctuation\">.<\/span>get<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">(<\/span>name<span class=\"token punctuation\">,<\/span> version<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;&#xff08;\u65e0\u6a21\u62df\u8f93\u51fa&#xff09;&#034;<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<p><span class=\"token keyword\">if<\/span> __name__ <span class=\"token operator\">&#061;&#061;<\/span> <span class=\"token string\">&#034;__main__&#034;<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    lib <span class=\"token operator\">&#061;<\/span> PromptTemplateLibrary<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><br \/>\n    lib<span class=\"token punctuation\">.<\/span>register<span class=\"token punctuation\">(<\/span><br \/>\n        <span class=\"token string\">&#034;summarize&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;v1.0.0&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n        <span class=\"token string\">&#034;\u8bf7\u603b\u7ed3\u4e0b\u9762\u8fd9\u6bb5\u6587\u5b57&#xff1a;{{text}}&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n        notes<span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;\u7b2c\u4e00\u7248&#xff1a;\u53ea\u63d0\u603b\u7ed3&#xff0c;\u6ca1\u63d0\u683c\u5f0f&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token punctuation\">)<\/span><br \/>\n    lib<span class=\"token punctuation\">.<\/span>register<span class=\"token punctuation\">(<\/span><br \/>\n        <span class=\"token string\">&#034;summarize&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;v1.1.0&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n        <span class=\"token string\">&#034;\u8bf7\u7528\u4e0d\u8d85\u8fc7 3 \u70b9\u603b\u7ed3\u4e0b\u9762\u8fd9\u6bb5\u6587\u5b57&#xff0c;\u4fdd\u7559\u5173\u952e\u6570\u5b57&#xff1a;{{text}}&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n        notes<span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;\u52a0\u4e86\u683c\u5f0f\u8981\u6c42&#xff1a;\u5206\u70b9 &#043; \u4fdd\u7559\u6570\u5b57&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token punctuation\">)<\/span><br \/>\n    lib<span class=\"token punctuation\">.<\/span>register<span class=\"token punctuation\">(<\/span><br \/>\n        <span class=\"token string\">&#034;summarize&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;v2.0.0&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n        <span class=\"token string\">&#034;\u8bf7\u7528\u4e0d\u8d85\u8fc7 3 \u70b9\u603b\u7ed3\u4e0b\u9762\u8fd9\u6bb5\u6587\u5b57&#xff0c;\u4fdd\u7559\u5173\u952e\u6570\u5b57&#xff0c;\u7ed3\u5c3e\u7528\u4e00\u53e5\u8bdd\u7ed9\u7ed3\u8bba&#xff1a;{{text}}&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n        notes<span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;\u52a0\u4e86\u7ed3\u8bba\u53e5&#xff0c;\u8001\u7248\u672c\u4fdd\u7559\u53ef\u56de\u6eda&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token punctuation\">)<\/span><\/p>\n<p>    <span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;\u5df2\u6ce8\u518c\u7248\u672c&#xff1a;&#034;<\/span><span class=\"token punctuation\">,<\/span> lib<span class=\"token punctuation\">.<\/span>versions<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;summarize&#034;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><br \/>\n    <span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;\u6e32\u67d3 v2.0.0&#xff1a;&#034;<\/span><span class=\"token punctuation\">,<\/span> lib<span class=\"token punctuation\">.<\/span>render<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;summarize&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;v2.0.0&#034;<\/span><span class=\"token punctuation\">,<\/span> text<span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;\u2026\u2026&#xff08;\u8f93\u5165\u7565&#xff09;&#034;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><br \/>\n    <span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;\u56de\u6eda\u5230&#xff1a;&#034;<\/span><span class=\"token punctuation\">,<\/span> lib<span class=\"token punctuation\">.<\/span>rollback<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;summarize&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;v1.1.0&#034;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<p>    inputs <span class=\"token operator\">&#061;<\/span> <span class=\"token punctuation\">[<\/span><span class=\"token string\">&#034;\u8f93\u5165 A&#xff1a;\u5b63\u5ea6\u590d\u76d8\u6750\u6599&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;\u8f93\u5165 B&#xff1a;\u7528\u6237\u53cd\u9988\u6c47\u603b&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;\u8f93\u5165 C&#xff1a;\u4f1a\u8bae\u7eaa\u8981&#034;<\/span><span class=\"token punctuation\">]<\/span><br \/>\n    rows <span class=\"token operator\">&#061;<\/span> lib<span class=\"token punctuation\">.<\/span>compare<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;summarize&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;v1.1.0&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;v2.0.0&#034;<\/span><span class=\"token punctuation\">,<\/span> inputs<span class=\"token punctuation\">)<\/span><br \/>\n    <span class=\"token keyword\">for<\/span> item<span class=\"token punctuation\">,<\/span> out_a<span class=\"token punctuation\">,<\/span> out_b <span class=\"token keyword\">in<\/span> rows<span class=\"token punctuation\">:<\/span><br \/>\n        <span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span>item<span class=\"token punctuation\">)<\/span><br \/>\n        <span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;  v1.1.0 -&gt;&#034;<\/span><span class=\"token punctuation\">,<\/span> out_a<span class=\"token punctuation\">)<\/span><br \/>\n        <span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;  v2.0.0 -&gt;&#034;<\/span><span class=\"token punctuation\">,<\/span> out_b<span class=\"token punctuation\">)<\/span><br \/>\n    <span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;\u5bf9\u7167\u8bb0\u5f55\u6761\u6570&#xff1a;&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token builtin\">len<\/span><span class=\"token punctuation\">(<\/span>lib<span class=\"token punctuation\">.<\/span>compare_log<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<p>\u5b9e\u8dd1\u8f93\u51fa&#xff08;\u6f14\u793a\u6570\u636e&#xff09;&#xff1a;\u5df2\u6ce8\u518c\u7248\u672c [&#039;v1.0.0&#039;, &#039;v1.1.0&#039;, &#039;v2.0.0&#039;]&#xff1b;\u56de\u6eda\u5230 v1.1.0&#xff1b;3 \u6761\u8f93\u5165\u7684\u5bf9\u7167\u91cc&#xff0c;v1.1.0 \u8f93\u51fa\u201c\u5206 3 \u70b9&#xff0c;\u4fdd\u7559\u4e86\u5173\u952e\u6570\u5b57\u201d&#xff0c;v2.0.0 \u8f93\u51fa\u201c\u5206 3 \u70b9&#xff0c;\u4fdd\u7559\u5173\u952e\u6570\u5b57&#xff0c;\u7ed3\u5c3e\u7ed9\u51fa\u7ed3\u8bba\u201d&#xff0c;\u5bf9\u7167\u8bb0\u5f55 1 \u6761\u3002<\/p>\n<p>\u6ce8\u610f&#xff1a;\u6a21\u677f\u5e93\u672c\u8eab\u4e0d\u8c03\u63a5\u53e3&#xff0c;\u6e32\u67d3\u51fa\u7684\u6587\u672c\u518d\u4ea4\u7ed9\u4f60\u7684\u8c03\u7528\u65b9&#xff1b;\u8c03\u7528\u65b9\u7684 Key \u522b\u5199\u6b7b\u5728\u4ee3\u7801\u91cc&#xff0c;\u7528\u73af\u5883\u53d8\u91cf\u8bfb\u3002<\/p>\n<p>\u5e38\u89c1\u5751&#xff1a;<\/p>\n<li>\u63d0\u793a\u8bcd\u5199\u6b7b\u5728\u8c03\u7528\u70b9&#xff1a;\u6539\u4e00\u5904\u6f0f\u4e00\u5904&#xff0c;\u65b0\u65e7\u7248\u672c\u6df7\u7740\u8dd1<\/li>\n<li>\u6539\u63d0\u793a\u8bcd\u4e0d\u7559\u8bb0\u5f55&#xff1a;\u6548\u679c\u53d8\u4e86\u4e0d\u77e5\u9053\u662f\u54ea\u4e00\u7248\u9020\u6210\u7684<\/li>\n<li>\u5bf9\u7167\u7528\u7684\u8f93\u5165\u4e0d\u4e00\u6837&#xff1a;\u65b0\u65e7\u7248\u672c\u8dd1\u7684\u4e0d\u662f\u540c\u4e00\u6279\u8f93\u5165&#xff0c;\u5bf9\u7167\u7ed3\u679c\u6ca1\u6cd5\u6bd4<\/li>\n<li>\u56de\u6eda\u5220\u4e86\u65e7\u7248&#xff1a;\u5220\u4e86\u5c31\u7b49\u4e8e\u4e22\u4e86\u9000\u8def&#xff0c;\u56de\u6eda\u53ea\u80fd\u9760\u91cd\u5199<\/li>\n<li>\u53d8\u91cf\u76f4\u63a5\u62fc\u7528\u6237\u8f93\u5165&#xff1a;\u4e0d\u505a\u6821\u9a8c\u548c\u8f6c\u4e49&#xff0c;\u6a21\u677f\u7ed3\u6784\u5bb9\u6613\u88ab\u8f93\u5165\u5e26\u504f<\/li>\n<p>\u4f60\u7684\u63d0\u793a\u8bcd\u73b0\u5728\u662f\u6563\u5728\u4ee3\u7801\u91cc&#xff0c;\u8fd8\u662f\u6536\u8fdb\u6a21\u677f\u5e93\u4e86&#xff1f;\u8bc4\u8bba\u533a\u8bf4\u8bf4\u4f60\u6539\u63d0\u793a\u8bcd\u65f6\u6700\u6015\u9047\u5230\u4ec0\u4e48&#xff0c;\u662f\u627e\u4e0d\u56de\u65e7\u7248&#xff0c;\u8fd8\u662f\u4e0d\u77e5\u9053\u54ea\u4e00\u7248\u6548\u679c\u6700\u597d\u3002<\/p>\n<p>      <span id=\"quality-guide-article-end\" aria-hidden=\"true\" style=\"display:block;height:1px;margin-bottom:-1px\"><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\/* MD \/ \u5bcc\u6587\u672c\u4e2d\u7684 .toc\uff08\u542b\u535a\u5ba2\u56ed\u642c\u5bb6\u7b49\u5d4c\u5957\u7ed3\u6784\uff09\uff1b.toc-box \u5728\u4fa7\u680f\uff0c\u4e0d\u53d7\u5f71\u54cd *\/#content_views .toc,\/* \u7f16\u8f91\u5668\u5e38\u5728\u76ee\u5f55\u524d\u540e\u63d2\u5165\u7a7a p\uff08:empty \u4ecd\u5360 20px\uff09\uff0c\u4e00\u5e76\u53bb\u6389\u907f\u514d\u9876\u7a7a\u9699 *\/#content_views.markdown_views &gt; p:empty:has(+ .toc),#content_views.markdown_views &gt; .toc + p:empty,\/* \u5bcc\u6587\u672c\u65e7\u7248\u76ee\u5f55\u6807\u8bb0 *\/#content<\/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":[52,81,50,190],"topic":[],"class_list":["post-124347","post","type-post","status-publish","format-standard","hentry","category-server","tag-aigc","tag-python","tag-50","tag-190"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u63d0\u793a\u8bcd\u6a21\u677f\u7248\u672c\u7ba1\u7406\u5de5\u4f5c\u6d41\uff1a\u62bd\u79bb\u3001\u7248\u672c\u3001\u7070\u5ea6\u4e0e\u56de\u6eda\u7684 5 \u6b65\u6e05\u5355\uff0c\u9644\u53ef\u8dd1\u4ee3\u7801 - \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\/124347.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u63d0\u793a\u8bcd\u6a21\u677f\u7248\u672c\u7ba1\u7406\u5de5\u4f5c\u6d41\uff1a\u62bd\u79bb\u3001\u7248\u672c\u3001\u7070\u5ea6\u4e0e\u56de\u6eda\u7684 5 \u6b65\u6e05\u5355\uff0c\u9644\u53ef\u8dd1\u4ee3\u7801 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\/* MD \/ \u5bcc\u6587\u672c\u4e2d\u7684 .toc\uff08\u542b\u535a\u5ba2\u56ed\u642c\u5bb6\u7b49\u5d4c\u5957\u7ed3\u6784\uff09\uff1b.toc-box \u5728\u4fa7\u680f\uff0c\u4e0d\u53d7\u5f71\u54cd *\/#content_views .toc,\/* \u7f16\u8f91\u5668\u5e38\u5728\u76ee\u5f55\u524d\u540e\u63d2\u5165\u7a7a p\uff08:empty \u4ecd\u5360 20px\uff09\uff0c\u4e00\u5e76\u53bb\u6389\u907f\u514d\u9876\u7a7a\u9699 *\/#content_views.markdown_views &gt; p:empty:has(+ .toc),#content_views.markdown_views &gt; .toc + p:empty,\/* \u5bcc\u6587\u672c\u65e7\u7248\u76ee\u5f55\u6807\u8bb0 *\/#content\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/124347.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-11-18T14:16:36+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=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/124347.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/124347.html\",\"name\":\"\u63d0\u793a\u8bcd\u6a21\u677f\u7248\u672c\u7ba1\u7406\u5de5\u4f5c\u6d41\uff1a\u62bd\u79bb\u3001\u7248\u672c\u3001\u7070\u5ea6\u4e0e\u56de\u6eda\u7684 5 \u6b65\u6e05\u5355\uff0c\u9644\u53ef\u8dd1\u4ee3\u7801 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-11-18T14:16:36+00:00\",\"dateModified\":\"2026-11-18T14:16:36+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/124347.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/124347.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/124347.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u63d0\u793a\u8bcd\u6a21\u677f\u7248\u672c\u7ba1\u7406\u5de5\u4f5c\u6d41\uff1a\u62bd\u79bb\u3001\u7248\u672c\u3001\u7070\u5ea6\u4e0e\u56de\u6eda\u7684 5 \u6b65\u6e05\u5355\uff0c\u9644\u53ef\u8dd1\u4ee3\u7801\"}]},{\"@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":"\u63d0\u793a\u8bcd\u6a21\u677f\u7248\u672c\u7ba1\u7406\u5de5\u4f5c\u6d41\uff1a\u62bd\u79bb\u3001\u7248\u672c\u3001\u7070\u5ea6\u4e0e\u56de\u6eda\u7684 5 \u6b65\u6e05\u5355\uff0c\u9644\u53ef\u8dd1\u4ee3\u7801 - \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\/124347.html","og_locale":"zh_CN","og_type":"article","og_title":"\u63d0\u793a\u8bcd\u6a21\u677f\u7248\u672c\u7ba1\u7406\u5de5\u4f5c\u6d41\uff1a\u62bd\u79bb\u3001\u7248\u672c\u3001\u7070\u5ea6\u4e0e\u56de\u6eda\u7684 5 \u6b65\u6e05\u5355\uff0c\u9644\u53ef\u8dd1\u4ee3\u7801 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\/* MD \/ \u5bcc\u6587\u672c\u4e2d\u7684 .toc\uff08\u542b\u535a\u5ba2\u56ed\u642c\u5bb6\u7b49\u5d4c\u5957\u7ed3\u6784\uff09\uff1b.toc-box \u5728\u4fa7\u680f\uff0c\u4e0d\u53d7\u5f71\u54cd *\/#content_views .toc,\/* \u7f16\u8f91\u5668\u5e38\u5728\u76ee\u5f55\u524d\u540e\u63d2\u5165\u7a7a p\uff08:empty \u4ecd\u5360 20px\uff09\uff0c\u4e00\u5e76\u53bb\u6389\u907f\u514d\u9876\u7a7a\u9699 *\/#content_views.markdown_views &gt; p:empty:has(+ .toc),#content_views.markdown_views &gt; .toc + p:empty,\/* \u5bcc\u6587\u672c\u65e7\u7248\u76ee\u5f55\u6807\u8bb0 *\/#content","og_url":"https:\/\/www.wsisp.com\/helps\/124347.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-11-18T14:16:36+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/124347.html","url":"https:\/\/www.wsisp.com\/helps\/124347.html","name":"\u63d0\u793a\u8bcd\u6a21\u677f\u7248\u672c\u7ba1\u7406\u5de5\u4f5c\u6d41\uff1a\u62bd\u79bb\u3001\u7248\u672c\u3001\u7070\u5ea6\u4e0e\u56de\u6eda\u7684 5 \u6b65\u6e05\u5355\uff0c\u9644\u53ef\u8dd1\u4ee3\u7801 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-11-18T14:16:36+00:00","dateModified":"2026-11-18T14:16:36+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/124347.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/124347.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/124347.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u63d0\u793a\u8bcd\u6a21\u677f\u7248\u672c\u7ba1\u7406\u5de5\u4f5c\u6d41\uff1a\u62bd\u79bb\u3001\u7248\u672c\u3001\u7070\u5ea6\u4e0e\u56de\u6eda\u7684 5 \u6b65\u6e05\u5355\uff0c\u9644\u53ef\u8dd1\u4ee3\u7801"}]},{"@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\/124347","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=124347"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/124347\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=124347"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=124347"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=124347"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=124347"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}