{"id":55471,"date":"2025-08-13T23:14:19","date_gmt":"2025-08-13T15:14:19","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/55471.html"},"modified":"2025-08-13T23:14:19","modified_gmt":"2025-08-13T15:14:19","slug":"%e7%ae%97%e6%b3%95%e8%ae%ad%e7%bb%83%e8%90%a5day7%e5%ad%97%e7%ac%a6%e4%b8%b2","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/55471.html","title":{"rendered":"\u7b97\u6cd5\u8bad\u7ec3\u8425|Day7|\u5b57\u7b26\u4e32"},"content":{"rendered":"<h2>\u53cd\u8f6c\u5b57\u7b26\u4e32<\/h2>\n<hr \/>\n<h3>LeetCode 344.\u9898\u76ee&#xff1a;<\/h3>\n<p>\u7f16\u5199\u4e00\u4e2a\u51fd\u6570&#xff0c;\u5176\u4f5c\u7528\u662f\u5c06\u8f93\u5165\u7684\u5b57\u7b26\u4e32\u53cd\u8f6c\u8fc7\u6765\u3002\u8f93\u5165\u5b57\u7b26\u4e32\u4ee5\u5b57\u7b26\u6570\u7ec4\u00a0s\u00a0\u7684\u5f62\u5f0f\u7ed9\u51fa\u3002<\/p>\n<p>\u4e0d\u8981\u7ed9\u53e6\u5916\u7684\u6570\u7ec4\u5206\u914d\u989d\u5916\u7684\u7a7a\u95f4&#xff0c;\u4f60\u5fc5\u987b\u539f\u5730\u4fee\u6539\u8f93\u5165\u6570\u7ec4\u3001\u4f7f\u7528 O(1) \u7684\u989d\u5916\u7a7a\u95f4\u89e3\u51b3\u8fd9\u4e00\u95ee\u9898\u3002<\/p>\n<p>\u793a\u4f8b 1&#xff1a;<\/p>\n<p> \u8f93\u5165&#xff1a;s &#061; [&#034;h&#034;,&#034;e&#034;,&#034;l&#034;,&#034;l&#034;,&#034;o&#034;]<br \/>\n\u8f93\u51fa&#xff1a;[&#034;o&#034;,&#034;l&#034;,&#034;l&#034;,&#034;e&#034;,&#034;h&#034;]<\/p>\n<p>\u793a\u4f8b 2&#xff1a;<\/p>\n<p> \u8f93\u5165&#xff1a;s &#061; [&#034;H&#034;,&#034;a&#034;,&#034;n&#034;,&#034;n&#034;,&#034;a&#034;,&#034;h&#034;]<br \/>\n\u8f93\u51fa&#xff1a;[&#034;h&#034;,&#034;a&#034;,&#034;n&#034;,&#034;n&#034;,&#034;a&#034;,&#034;H&#034;] <\/p>\n<p>\u00a0\u63d0\u793a&#xff1a;<\/p>\n<ul>\n<li>1 &lt;&#061; s.length &lt;&#061; 105<\/li>\n<li>s[i]\u00a0\u90fd\u662f\u00a0ASCII\u00a0\u7801\u8868\u4e2d\u7684\u53ef\u6253\u5370\u5b57\u7b26<\/li>\n<\/ul>\n<h4>\u89e3\u9898\u601d\u8def&#xff1a;<\/h4>\n<p>\u53cc\u6307\u9488&#xff0c;left\u6307\u5411\u7b2c\u4e00\u4e2a\u5143\u7d20&#xff0c;right\u6307\u5411\u6700\u540e\u4e00\u4e2a\u5b57\u7b26&#xff0c;\u5c06left\u548cright\u6307\u5411\u7684\u5143\u7d20\u4e92\u6362<\/p>\n<h4>\u5199\u6cd5&#xff1a;<\/h4>\n<h5>\u53cc\u6307\u9488&#xff1a;<\/h5>\n<h6>C&#043;&#043;&#xff1a;<\/h6>\n<p>class Solution {<br \/>\npublic:<br \/>\n    void reverseString(vector&lt;char&gt;&amp; s) {<br \/>\n        for(int left&#061;0,right&#061;s.size()-1;left&lt;s.size()\/2;left&#043;&#043;,right&#8211;){<br \/>\n            swap(s[left],s[right]);<br \/>\n        }<br \/>\n    }<br \/>\n}; <\/p>\n<h6>Python&#xff1a;<\/h6>\n<p>class Solution:<br \/>\n    def reverseString(self, s: List[str]) -&gt; None:<br \/>\n        &#034;&#034;&#034;<br \/>\n        Do not return anything, modify s in-place instead.<br \/>\n        &#034;&#034;&#034;<br \/>\n        left,right &#061; 0,len(s)-1<br \/>\n        while left &lt; right:<br \/>\n            s[left],s[right] &#061; s[right],s[left]<br \/>\n            left &#043;&#061; 1<br \/>\n            right -&#061; 1 <\/p>\n<hr \/>\n<h2>\u53cd\u8f6c\u5b57\u7b26\u4e32II<\/h2>\n<hr \/>\n<h3>LeetCode 541.\u9898\u76ee&#xff1a;<\/h3>\n<p>\u7ed9\u5b9a\u4e00\u4e2a\u5b57\u7b26\u4e32\u00a0s\u00a0\u548c\u4e00\u4e2a\u6574\u6570\u00a0k&#xff0c;\u4ece\u5b57\u7b26\u4e32\u5f00\u5934\u7b97\u8d77&#xff0c;\u6bcf\u8ba1\u6570\u81f3\u00a02k\u00a0\u4e2a\u5b57\u7b26&#xff0c;\u5c31\u53cd\u8f6c\u8fd9\u00a02k\u00a0\u5b57\u7b26\u4e2d\u7684\u524d\u00a0k\u00a0\u4e2a\u5b57\u7b26\u3002<\/p>\n<ul>\n<li>\u5982\u679c\u5269\u4f59\u5b57\u7b26\u5c11\u4e8e\u00a0k\u00a0\u4e2a&#xff0c;\u5219\u5c06\u5269\u4f59\u5b57\u7b26\u5168\u90e8\u53cd\u8f6c\u3002<\/li>\n<li>\u5982\u679c\u5269\u4f59\u5b57\u7b26\u5c0f\u4e8e\u00a02k\u00a0\u4f46\u5927\u4e8e\u6216\u7b49\u4e8e\u00a0k\u00a0\u4e2a&#xff0c;\u5219\u53cd\u8f6c\u524d\u00a0k\u00a0\u4e2a\u5b57\u7b26&#xff0c;\u5176\u4f59\u5b57\u7b26\u4fdd\u6301\u539f\u6837\u3002<\/li>\n<\/ul>\n<p>\u00a0\u793a\u4f8b 1&#xff1a;<\/p>\n<p> \u8f93\u5165&#xff1a;s &#061; &#034;abcdefg&#034;, k &#061; 2<br \/>\n\u8f93\u51fa&#xff1a;&#034;bacdfeg&#034;<\/p>\n<p>\u793a\u4f8b 2&#xff1a;<\/p>\n<p> \u8f93\u5165&#xff1a;s &#061; &#034;abcd&#034;, k &#061; 2<br \/>\n\u8f93\u51fa&#xff1a;&#034;bacd&#034; <\/p>\n<p>\u63d0\u793a&#xff1a;<\/p>\n<ul>\n<li>1 &lt;&#061; s.length &lt;&#061; 104<\/li>\n<li>s\u00a0\u4ec5\u7531\u5c0f\u5199\u82f1\u6587\u7ec4\u6210<\/li>\n<li>1 &lt;&#061; k &lt;&#061; 104<\/li>\n<\/ul>\n<h4>\u89e3\u9898\u601d\u8def&#xff1a;<\/h4>\n<p>\u4ee52k\u4e3a\u4e00\u4e2a\u533a\u95f4&#xff0c;\u7136\u540e\u5224\u65ad\u533a\u95f4\u5185\u7b26\u5408\u6761\u4ef6\u7684\u53cd\u8f6c\u533a\u95f4<\/p>\n<h4>\u5199\u6cd5&#xff1a;<\/h4>\n<h6>C&#043;&#043;&#xff1a;<\/h6>\n<p>class Solution {<br \/>\npublic:<br \/>\n    string reverseStr(string s, int k) {<br \/>\n        for(int i&#061;0;i&lt;s.size();i&#043;&#061;2*k){<br \/>\n            if(i&#043;k &lt;&#061; s.size()){<br \/>\n                reverse(s.begin()&#043;i,s.begin()&#043;i&#043;k);<br \/>\n            }else{<br \/>\n                reverse(s.begin()&#043;i,s.end());<br \/>\n            }<br \/>\n        }<br \/>\n        return s;<br \/>\n    }<br \/>\n}; <\/p>\n<h6>Python&#xff1a;<\/h6>\n<p>class Solution:<br \/>\n    def reverseStr(self, s: str, k: int) -&gt; str:<br \/>\n        a &#061; list(s)<br \/>\n        for i in range(0,len(a),2*k):<br \/>\n            a[i:i&#043;k] &#061; a[i:i&#043;k][::-1]<br \/>\n        return &#039;&#039;.join(a) <\/p>\n<hr \/>\n<h2>\u66ff\u6362\u6570\u5b57<\/h2>\n<hr \/>\n<p>\u7ed9\u5b9a\u4e00\u4e2a\u5b57\u7b26\u4e32 s&#xff0c;\u5b83\u5305\u542b\u5c0f\u5199\u5b57\u6bcd\u548c\u6570\u5b57\u5b57\u7b26&#xff0c;\u8bf7\u7f16\u5199\u4e00\u4e2a\u51fd\u6570&#xff0c;\u5c06\u5b57\u7b26\u4e32\u4e2d\u7684\u5b57\u6bcd\u5b57\u7b26\u4fdd\u6301\u4e0d\u53d8&#xff0c;\u800c\u5c06\u6bcf\u4e2a\u6570\u5b57\u5b57\u7b26\u66ff\u6362\u4e3anumber\u3002 \u4f8b\u5982&#xff0c;\u5bf9\u4e8e\u8f93\u5165\u5b57\u7b26\u4e32 &#034;a1b2c3&#034;&#xff0c;\u51fd\u6570\u5e94\u8be5\u5c06\u5176\u8f6c\u6362\u4e3a &#034;anumberbnumbercnumber&#034;\u3002<\/p>\n<p>\u8f93\u5165\u63cf\u8ff0<\/p>\n<p>\u8f93\u5165\u4e00\u4e2a\u5b57\u7b26\u4e32 s,s \u4ec5\u5305\u542b\u5c0f\u5199\u5b57\u6bcd\u548c\u6570\u5b57\u5b57\u7b26\u3002<\/p>\n<p>\u8f93\u51fa\u63cf\u8ff0<\/p>\n<p>\u6253\u5370\u4e00\u4e2a\u65b0\u7684\u5b57\u7b26\u4e32&#xff0c;\u5176\u4e2d\u6bcf\u4e2a\u6570\u5b57\u5b57\u7b26\u90fd\u88ab\u66ff\u6362\u4e3a\u4e86number<\/p>\n<p>\u8f93\u5165\u793a\u4f8b<\/p>\n<p> a1b2c3 <\/p>\n<p>\u8f93\u51fa\u793a\u4f8b<\/p>\n<p> anumberbnumbercnumber <\/p>\n<p>\u63d0\u793a\u4fe1\u606f<\/p>\n<p>\u6570\u636e\u8303\u56f4&#xff1a; 1 &lt;&#061; s.length &lt; 10000\u3002<\/p>\n<h4>\u89e3\u9898\u601d\u8def&#xff1a;<\/h4>\n<p>\u53cc\u6307\u9488&#xff0c;\u5148\u8bb0\u5f55\u5b57\u7b26\u4e32\u4e2d\u6709\u51e0\u4e2a\u6570\u5b57&#xff0c;\u6269\u5145\u5927\u5c0f&#xff0c;\u51c6\u5907\u597d\u65b0\u5b57\u7b26\u7684\u4f4d\u7f6e&#xff0c;\u5c06new\u6307\u9488\u653e\u5728\u6269\u5927\u540e\u7684\u672b\u5c3e&#xff0c;\u5c06old\u6307\u9488\u653e\u5728\u539f\u5148\u5b57\u7b26\u4e32\u7684\u672b\u5c3e&#xff0c;\u5f53old\u6307\u9488\u6307\u5411\u6570\u5b57\u65f6&#xff0c;\u5c06\u65b0\u5b57\u7b26\u4ece\u540e\u5f80\u524d\u586b\u5145&#xff0c;\u5f53old\u6307\u9488\u6307\u5411\u975e\u6570\u5b57\u65f6&#xff0c;\u5c06\u6307\u5411\u5143\u7d20\u8d4b\u503c\u7ed9new\u6307\u9488&#xff0c;\u7136\u540eold\u6307\u9488\u524d\u79fb<\/p>\n<h4>\u5199\u6cd5&#xff1a;<\/h4>\n<h6>C&#043;&#043;&#xff1a;<\/h6>\n<p>#include&lt;iostream&gt;<br \/>\n#include&lt;string&gt;<br \/>\nusing namespace std;<br \/>\nint main(){<br \/>\n    string s;<br \/>\n    while(cin&gt;&gt;s){<br \/>\n        int old_index &#061; s.size()-1;<br \/>\n        int count &#061; 0;<br \/>\n        for(int i&#061;0;i&lt;s.size();i&#043;&#043;){<br \/>\n            if(s[i]&gt;&#061;&#039;0&#039; &amp;&amp; s[i]&lt;&#061;&#039;9&#039;){<br \/>\n                count&#043;&#043;;<br \/>\n            }<br \/>\n        }<br \/>\n        s.resize(s.size()&#043;count*5);<br \/>\n        int new_index &#061; s.size()-1;<br \/>\n        while(old_index &gt;&#061; 0){<br \/>\n            if(s[old_index]&gt;&#061;&#039;0&#039; &amp;&amp; s[new_index]&lt;&#061;&#039;0&#039;){<br \/>\n                s[new_index&#8211;] &#061; &#039;r&#039;;<br \/>\n                s[new_index&#8211;] &#061; &#039;e&#039;;<br \/>\n                s[new_index&#8211;] &#061; &#039;b&#039;;<br \/>\n                s[new_index&#8211;] &#061; &#039;m&#039;;<br \/>\n                s[new_index&#8211;] &#061; &#039;u&#039;;<br \/>\n                s[new_index&#8211;] &#061; &#039;n&#039;;<br \/>\n            }else{<br \/>\n                s[new_index&#8211;] &#061; s[old_index];<br \/>\n            }<br \/>\n            old_index&#8211;;<br \/>\n        }<br \/>\n        cout &lt;&lt; s &lt;&lt; endl;<br \/>\n    }<br \/>\n} <\/p>\n<h6>Python&#xff1a;<\/h6>\n<p>class Sloution(object):<br \/>\n    def sub_number(self,s):<br \/>\n        count &#061; sum(1 for char in s if char.isdigit())<br \/>\n        new_len &#061; len(s)&#043; (count*5)<br \/>\n        re_s &#061; [&#039;&#039;]*new_len<br \/>\n        new_index &#061; new_len-1<br \/>\n        old_index &#061; len(s)-1<br \/>\n        while old_index&gt;&#061;0:<br \/>\n            if s[old_index].isdigit() :<br \/>\n                re_s[new_index-5:new_index&#043;1]&#061;&#039;number&#039;<br \/>\n                new_index-&#061;6<br \/>\n            else:<br \/>\n                re_s[new_index] &#061; s[old_index]<br \/>\n                new_index -&#061; 1<br \/>\n            old_index -&#061; 1<br \/>\n        return &#039;&#039;.join(re_s)<br \/>\nif __name__ &#061;&#061; &#034;__main__&#034;:<br \/>\n    ss &#061; Sloution()<br \/>\n    while True:<br \/>\n        try:<br \/>\n            s &#061; input()<br \/>\n            result &#061; ss.sub_number(s)<br \/>\n            print(result)<br \/>\n        except EOFError:<br \/>\n            break <\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb165\u6b21\u3002\u7f16\u5199\u4e00\u4e2a\u51fd\u6570\uff0c\u5176\u4f5c\u7528\u662f\u5c06\u8f93\u5165\u7684\u5b57\u7b26\u4e32\u53cd\u8f6c\u8fc7\u6765\u3002\u8f93\u5165\u5b57\u7b26\u4e32\u4ee5\u5b57\u7b26\u6570\u7ec4s\u7684\u5f62\u5f0f\u7ed9\u51fa\u3002\u4e0d\u8981\u7ed9\u53e6\u5916\u7684\u6570\u7ec4\u5206\u914d\u989d\u5916\u7684\u7a7a\u95f4\uff0c\u4f60\u5fc5\u987b\u3001\u4f7f\u7528 O(1) \u7684\u989d\u5916\u7a7a\u95f4\u89e3\u51b3\u8fd9\u4e00\u95ee\u9898\u3002<\/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":[55,2692,81,1813,427],"topic":[],"class_list":["post-55471","post","type-post","status-publish","format-standard","hentry","category-server","tag-c","tag-leetcode","tag-python","tag-1813","tag-427"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u7b97\u6cd5\u8bad\u7ec3\u8425|Day7|\u5b57\u7b26\u4e32 - \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\/55471.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u7b97\u6cd5\u8bad\u7ec3\u8425|Day7|\u5b57\u7b26\u4e32 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb165\u6b21\u3002\u7f16\u5199\u4e00\u4e2a\u51fd\u6570\uff0c\u5176\u4f5c\u7528\u662f\u5c06\u8f93\u5165\u7684\u5b57\u7b26\u4e32\u53cd\u8f6c\u8fc7\u6765\u3002\u8f93\u5165\u5b57\u7b26\u4e32\u4ee5\u5b57\u7b26\u6570\u7ec4s\u7684\u5f62\u5f0f\u7ed9\u51fa\u3002\u4e0d\u8981\u7ed9\u53e6\u5916\u7684\u6570\u7ec4\u5206\u914d\u989d\u5916\u7684\u7a7a\u95f4\uff0c\u4f60\u5fc5\u987b\u3001\u4f7f\u7528 O(1) \u7684\u989d\u5916\u7a7a\u95f4\u89e3\u51b3\u8fd9\u4e00\u95ee\u9898\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/55471.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-08-13T15:14:19+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\/55471.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/55471.html\",\"name\":\"\u7b97\u6cd5\u8bad\u7ec3\u8425|Day7|\u5b57\u7b26\u4e32 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-08-13T15:14:19+00:00\",\"dateModified\":\"2025-08-13T15:14:19+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/55471.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/55471.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/55471.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u7b97\u6cd5\u8bad\u7ec3\u8425|Day7|\u5b57\u7b26\u4e32\"}]},{\"@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":"\u7b97\u6cd5\u8bad\u7ec3\u8425|Day7|\u5b57\u7b26\u4e32 - \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\/55471.html","og_locale":"zh_CN","og_type":"article","og_title":"\u7b97\u6cd5\u8bad\u7ec3\u8425|Day7|\u5b57\u7b26\u4e32 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb165\u6b21\u3002\u7f16\u5199\u4e00\u4e2a\u51fd\u6570\uff0c\u5176\u4f5c\u7528\u662f\u5c06\u8f93\u5165\u7684\u5b57\u7b26\u4e32\u53cd\u8f6c\u8fc7\u6765\u3002\u8f93\u5165\u5b57\u7b26\u4e32\u4ee5\u5b57\u7b26\u6570\u7ec4s\u7684\u5f62\u5f0f\u7ed9\u51fa\u3002\u4e0d\u8981\u7ed9\u53e6\u5916\u7684\u6570\u7ec4\u5206\u914d\u989d\u5916\u7684\u7a7a\u95f4\uff0c\u4f60\u5fc5\u987b\u3001\u4f7f\u7528 O(1) \u7684\u989d\u5916\u7a7a\u95f4\u89e3\u51b3\u8fd9\u4e00\u95ee\u9898\u3002","og_url":"https:\/\/www.wsisp.com\/helps\/55471.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-08-13T15:14:19+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\/55471.html","url":"https:\/\/www.wsisp.com\/helps\/55471.html","name":"\u7b97\u6cd5\u8bad\u7ec3\u8425|Day7|\u5b57\u7b26\u4e32 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-08-13T15:14:19+00:00","dateModified":"2025-08-13T15:14:19+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/55471.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/55471.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/55471.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u7b97\u6cd5\u8bad\u7ec3\u8425|Day7|\u5b57\u7b26\u4e32"}]},{"@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\/55471","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=55471"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/55471\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=55471"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=55471"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=55471"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=55471"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}