{"id":1005524,"date":"2024-12-27T10:36:33","date_gmt":"2024-12-27T02:36:33","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1005524.html"},"modified":"2024-12-27T10:36:35","modified_gmt":"2024-12-27T02:36:35","slug":"python%e5%a6%82%e4%bd%95%e6%9b%bf%e6%8d%a2%e6%95%8f%e6%84%9f%e5%ad%97","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1005524.html","title":{"rendered":"python\u5982\u4f55\u66ff\u6362\u654f\u611f\u5b57"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25082024\/0473664a-2595-4d43-8fa2-eb15d4770bf4.webp\" alt=\"python\u5982\u4f55\u66ff\u6362\u654f\u611f\u5b57\" \/><\/p>\n<p><p> <strong>Python \u66ff\u6362\u654f\u611f\u5b57\u7684\u65b9\u6cd5\u6709\uff1a\u4f7f\u7528\u5b57\u7b26\u4e32\u66ff\u6362\u3001\u6b63\u5219\u8868\u8fbe\u5f0f\u3001\u7b2c\u4e09\u65b9\u5e93\uff08\u5982 FlashText\uff09\u7b49\u3002<\/strong>\u5728\u5904\u7406\u654f\u611f\u5b57\u65f6\uff0c\u6b63\u5219\u8868\u8fbe\u5f0f\u662f\u4e00\u4e2a\u5f3a\u5927\u4e14\u7075\u6d3b\u7684\u5de5\u5177\uff0c\u53ef\u4ee5\u7528\u6765\u5339\u914d\u548c\u66ff\u6362\u590d\u6742\u7684\u6a21\u5f0f\u3002\u4e0b\u9762\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u6765\u66ff\u6362\u654f\u611f\u5b57\u3002<\/p>\n<\/p>\n<p><p>\u6b63\u5219\u8868\u8fbe\u5f0f\u662f\u4e00\u4e2a\u7528\u4e8e\u63cf\u8ff0\u641c\u7d22\u6a21\u5f0f\u7684\u5b57\u7b26\u4e32\uff0cPython \u7684 <code>re<\/code> \u6a21\u5757\u63d0\u4f9b\u4e86\u5bf9\u6b63\u5219\u8868\u8fbe\u5f0f\u7684\u652f\u6301\u3002\u901a\u8fc7\u6b63\u5219\u8868\u8fbe\u5f0f\uff0c\u4f60\u53ef\u4ee5\u8f7b\u677e\u5730\u67e5\u627e\u3001\u5339\u914d\u548c\u66ff\u6362\u654f\u611f\u5b57\u3002\u9996\u5148\uff0c\u5bfc\u5165 <code>re<\/code> \u6a21\u5757\uff0c\u7136\u540e\u4f7f\u7528 <code>re.sub()<\/code> \u65b9\u6cd5\u8fdb\u884c\u66ff\u6362\u3002<code>re.sub()<\/code> \u65b9\u6cd5\u63a5\u53d7\u4e09\u4e2a\u4e3b\u8981\u53c2\u6570\uff1a\u6a21\u5f0f\u3001\u66ff\u6362\u5185\u5bb9\u548c\u76ee\u6807\u5b57\u7b26\u4e32\u3002\u4f60\u53ef\u4ee5\u5b9a\u4e49\u4e00\u4e2a\u5305\u542b\u654f\u611f\u5b57\u7684\u5217\u8868\uff0c\u7136\u540e\u901a\u8fc7\u5faa\u73af\u6216\u5176\u4ed6\u65b9\u5f0f\u5c06\u8fd9\u4e9b\u654f\u611f\u5b57\u66ff\u6362\u4e3a\u4f60\u6307\u5b9a\u7684\u5b57\u7b26\u6216\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<hr>\n<p><h3>\u4e00\u3001\u5b57\u7b26\u4e32\u66ff\u6362<\/h3>\n<\/p>\n<p><p>\u5b57\u7b26\u4e32\u66ff\u6362\u662f\u6700\u7b80\u5355\u7684\u65b9\u5f0f\u4e4b\u4e00\uff0c\u9002\u7528\u4e8e\u654f\u611f\u5b57\u5217\u8868\u8f83\u77ed\u7684\u573a\u666f\u3002Python \u63d0\u4f9b\u4e86\u5185\u7f6e\u7684 <code>str.replace()<\/code> \u65b9\u6cd5\uff0c\u53ef\u4ee5\u7528\u6765\u66ff\u6362\u5b57\u7b26\u4e32\u4e2d\u7684\u6307\u5b9a\u5b50\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<p><h4>1. \u4f7f\u7528 <code>str.replace()<\/code> \u65b9\u6cd5<\/h4>\n<\/p>\n<p><p><code>str.replace()<\/code> \u65b9\u6cd5\u7528\u4e8e\u66ff\u6362\u5b57\u7b26\u4e32\u4e2d\u7684\u5b50\u5b57\u7b26\u4e32\u3002\u5b83\u6709\u4e24\u4e2a\u53c2\u6570\uff1a\u8981\u66ff\u6362\u7684\u65e7\u5b57\u7b26\u4e32\u548c\u65b0\u7684\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">text = &quot;This is a bad word example.&quot;<\/p>\n<p>sensitive_words = [&quot;bad&quot;, &quot;word&quot;]<\/p>\n<p>for word in sensitive_words:<\/p>\n<p>    text = text.replace(word, &quot;*&quot; * len(word))<\/p>\n<p>print(text)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528 <code>str.replace()<\/code> \u65b9\u6cd5\u5c06\u654f\u611f\u8bcd\u66ff\u6362\u4e3a\u661f\u53f7\u3002\u8fd9\u4e2a\u65b9\u6cd5\u7b80\u5355\u4e14\u6613\u4e8e\u7406\u89e3\uff0c\u4f46\u5f53\u9700\u8981\u5339\u914d\u590d\u6742\u6a21\u5f0f\u6216\u5927\u5c0f\u5199\u4e0d\u654f\u611f\u65f6\uff0c\u53ef\u80fd\u4e0d\u591f\u7075\u6d3b\u3002<\/p>\n<\/p>\n<p><h4>2. \u4f7f\u7528\u5b57\u5178\u8fdb\u884c\u66ff\u6362<\/h4>\n<\/p>\n<p><p>\u5982\u679c\u9700\u8981\u66ff\u6362\u591a\u4e2a\u4e0d\u540c\u7684\u654f\u611f\u8bcd\uff0c\u53ef\u4ee5\u4f7f\u7528\u5b57\u5178\u6765\u5b58\u50a8\u654f\u611f\u8bcd\u548c\u5176\u66ff\u6362\u8bcd\uff0c\u5e76\u901a\u8fc7\u5faa\u73af\u8fdb\u884c\u66ff\u6362\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">text = &quot;This is a bad word example.&quot;<\/p>\n<p>sensitive_dict = {&quot;bad&quot;: &quot;b*d&quot;, &quot;word&quot;: &quot;w*d&quot;}<\/p>\n<p>for key, value in sensitive_dict.items():<\/p>\n<p>    text = text.replace(key, value)<\/p>\n<p>print(text)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u9002\u7528\u4e8e\u66ff\u6362\u8f83\u591a\u654f\u611f\u8bcd\u7684\u573a\u666f\uff0c\u4f46\u5728\u5904\u7406\u590d\u6742\u5339\u914d\u65f6\uff0c\u4ecd\u7136\u53ef\u80fd\u4e0d\u5982\u6b63\u5219\u8868\u8fbe\u5f0f\u7075\u6d3b\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u6b63\u5219\u8868\u8fbe\u5f0f\u66ff\u6362<\/h3>\n<\/p>\n<p><p>\u6b63\u5219\u8868\u8fbe\u5f0f\u63d0\u4f9b\u4e86\u5f3a\u5927\u7684\u5b57\u7b26\u4e32\u64cd\u4f5c\u80fd\u529b\uff0c\u5c24\u5176\u9002\u7528\u4e8e\u5339\u914d\u590d\u6742\u6a21\u5f0f\u548c\u5927\u89c4\u6a21\u6587\u672c\u5904\u7406\u3002<\/p>\n<\/p>\n<p><h4>1. \u4f7f\u7528 <code>re.sub()<\/code> \u65b9\u6cd5<\/h4>\n<\/p>\n<p><p><code>re.sub()<\/code> \u65b9\u6cd5\u7528\u4e8e\u66ff\u6362\u5b57\u7b26\u4e32\u4e2d\u7b26\u5408\u6b63\u5219\u8868\u8fbe\u5f0f\u6a21\u5f0f\u7684\u5b50\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import re<\/p>\n<p>text = &quot;This is a bad word example.&quot;<\/p>\n<p>pattern = r&quot;\\bbad\\b|\\bword\\b&quot;<\/p>\n<p>replaced_text = re.sub(pattern, lambda x: &quot;*&quot; * len(x.group()), text)<\/p>\n<p>print(replaced_text)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c<code>\\b<\/code> \u662f\u4e00\u4e2a\u6b63\u5219\u8868\u8fbe\u5f0f\u5143\u5b57\u7b26\uff0c\u8868\u793a\u5355\u8bcd\u8fb9\u754c\uff0c\u786e\u4fdd\u53ea\u5339\u914d\u6574\u4e2a\u5355\u8bcd\u800c\u4e0d\u662f\u90e8\u5206\u5355\u8bcd\u3002<code>lambda x: &quot;*&quot; * len(x.group())<\/code> \u662f\u4e00\u4e2a\u533f\u540d\u51fd\u6570\uff0c\u7528\u4e8e\u751f\u6210\u4e0e\u5339\u914d\u5b50\u4e32\u7b49\u957f\u7684\u661f\u53f7\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<p><h4>2. \u5ffd\u7565\u5927\u5c0f\u5199\u5339\u914d<\/h4>\n<\/p>\n<p><p>\u901a\u8fc7\u8bbe\u7f6e <code>re.IGNORECASE<\/code> \u6807\u5fd7\uff0c\u53ef\u4ee5\u5728\u66ff\u6362\u65f6\u5ffd\u7565\u5927\u5c0f\u5199\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import re<\/p>\n<p>text = &quot;This is a Bad Word example.&quot;<\/p>\n<p>pattern = r&quot;\\bbad\\b|\\bword\\b&quot;<\/p>\n<p>replaced_text = re.sub(pattern, lambda x: &quot;*&quot; * len(x.group()), text, flags=re.IGNORECASE)<\/p>\n<p>print(replaced_text)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u786e\u4fdd\u4e86\u5373\u4f7f\u654f\u611f\u8bcd\u5728\u6587\u672c\u4e2d\u4ee5\u4e0d\u540c\u7684\u5927\u5c0f\u5199\u5f62\u5f0f\u51fa\u73b0\uff0c\u4e5f\u80fd\u88ab\u6b63\u786e\u66ff\u6362\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u4f7f\u7528\u7b2c\u4e09\u65b9\u5e93<\/h3>\n<\/p>\n<p><p>\u9664\u4e86\u5185\u7f6e\u7684\u5b57\u7b26\u4e32\u548c\u6b63\u5219\u8868\u8fbe\u5f0f\u65b9\u6cd5\u5916\uff0c\u8fd8\u53ef\u4ee5\u4f7f\u7528\u7b2c\u4e09\u65b9\u5e93\u6765\u5b9e\u73b0\u654f\u611f\u5b57\u66ff\u6362\u3002\u4f8b\u5982\uff0cFlashText \u662f\u4e00\u4e2a\u5feb\u901f\u7684\u5b57\u7b26\u4e32\u5339\u914d\u548c\u66ff\u6362\u5e93\uff0c\u9002\u7528\u4e8e\u5927\u89c4\u6a21\u6587\u672c\u5904\u7406\u3002<\/p>\n<\/p>\n<p><h4>1. \u5b89\u88c5 FlashText<\/h4>\n<\/p>\n<p><p>\u5728\u5f00\u59cb\u4f7f\u7528 FlashText \u4e4b\u524d\uff0c\u9700\u8981\u5148\u5b89\u88c5\u5b83\u3002\u53ef\u4ee5\u4f7f\u7528 pip \u8fdb\u884c\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install flashtext<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u4f7f\u7528 FlashText \u66ff\u6362\u654f\u611f\u5b57<\/h4>\n<\/p>\n<p><p>FlashText \u63d0\u4f9b\u4e86 <code>KeywordProcessor<\/code> \u7c7b\uff0c\u53ef\u4ee5\u5feb\u901f\u5339\u914d\u548c\u66ff\u6362\u5173\u952e\u8bcd\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from flashtext import KeywordProcessor<\/p>\n<p>text = &quot;This is a bad word example.&quot;<\/p>\n<p>keyword_processor = KeywordProcessor()<\/p>\n<p>keyword_processor.add_keywords_from_dict({&quot;bad&quot;: &quot;b*d&quot;, &quot;word&quot;: &quot;w*d&quot;})<\/p>\n<p>replaced_text = keyword_processor.replace_keywords(text)<\/p>\n<p>print(replaced_text)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>FlashText \u7684\u4f18\u52bf\u5728\u4e8e\u5176\u9ad8\u6548\u6027\uff0c\u9002\u5408\u5904\u7406\u5927\u91cf\u6587\u672c\u548c\u5173\u952e\u8bcd\u7684\u573a\u666f\u3002\u5b83\u7684\u5b9e\u73b0\u57fa\u4e8e Trie \u6570\u636e\u7ed3\u6784\uff0c\u5177\u6709\u8f83\u9ad8\u7684\u6027\u80fd\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u654f\u611f\u5b57\u66ff\u6362\u7684\u6ce8\u610f\u4e8b\u9879<\/h3>\n<\/p>\n<p><p>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u654f\u611f\u5b57\u66ff\u6362\u9700\u8981\u8003\u8651\u4ee5\u4e0b\u51e0\u70b9\uff1a<\/p>\n<\/p>\n<p><h4>1. \u7075\u6d3b\u6027\u4e0e\u7cbe\u786e\u6027<\/h4>\n<\/p>\n<p><p>\u654f\u611f\u5b57\u66ff\u6362\u5e94\u5c3d\u53ef\u80fd\u7cbe\u786e\uff0c\u4ee5\u907f\u514d\u8bef\u4f24\u6b63\u5e38\u6587\u672c\u3002\u8fd9\u9700\u8981\u5bf9\u654f\u611f\u5b57\u8fdb\u884c\u5408\u7406\u7684\u6a21\u5f0f\u8bbe\u8ba1\uff0c\u786e\u4fdd\u66ff\u6362\u4ec5\u53d1\u751f\u5728\u9700\u8981\u7684\u5730\u65b9\u3002<\/p>\n<\/p>\n<p><h4>2. \u6027\u80fd\u4f18\u5316<\/h4>\n<\/p>\n<p><p>\u5728\u5904\u7406\u5927\u89c4\u6a21\u6587\u672c\u65f6\uff0c\u6027\u80fd\u662f\u4e00\u4e2a\u91cd\u8981\u7684\u8003\u8651\u56e0\u7d20\u3002\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u6216\u5de5\u5177\u53ef\u4ee5\u663e\u8457\u63d0\u9ad8\u5904\u7406\u6548\u7387\u3002<\/p>\n<\/p>\n<p><h4>3. \u654f\u611f\u4fe1\u606f\u7684\u5b89\u5168\u6027<\/h4>\n<\/p>\n<p><p>\u5728\u5904\u7406\u654f\u611f\u4fe1\u606f\u65f6\uff0c\u5e94\u6ce8\u610f\u4fe1\u606f\u7684\u5b89\u5168\u6027\u3002\u66ff\u6362\u540e\u7684\u6587\u672c\u4ecd\u9700\u6ee1\u8db3\u4e1a\u52a1\u548c\u6cd5\u5f8b\u7684\u5408\u89c4\u8981\u6c42\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>Python \u63d0\u4f9b\u4e86\u591a\u79cd\u65b9\u6cd5\u6765\u66ff\u6362\u654f\u611f\u5b57\uff0c\u5305\u62ec\u5185\u7f6e\u7684\u5b57\u7b26\u4e32\u65b9\u6cd5\u3001\u6b63\u5219\u8868\u8fbe\u5f0f\u548c\u7b2c\u4e09\u65b9\u5e93\u3002\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u53d6\u51b3\u4e8e\u5177\u4f53\u7684\u9700\u6c42\u548c\u573a\u666f\u3002\u5728\u7b80\u5355\u573a\u666f\u4e0b\uff0c\u5b57\u7b26\u4e32\u66ff\u6362\u65b9\u6cd5\u8db3\u591f\u4f7f\u7528\uff1b\u5728\u590d\u6742\u5339\u914d\u548c\u5927\u89c4\u6a21\u6587\u672c\u5904\u7406\u573a\u666f\u4e0b\uff0c\u6b63\u5219\u8868\u8fbe\u5f0f\u548c\u7b2c\u4e09\u65b9\u5e93\uff08\u5982 FlashText\uff09\u63d0\u4f9b\u4e86\u66f4\u5f3a\u5927\u7684\u529f\u80fd\u548c\u66f4\u9ad8\u7684\u6027\u80fd\u3002\u65e0\u8bba\u9009\u62e9\u54ea\u79cd\u65b9\u6cd5\uff0c\u90fd\u5e94\u786e\u4fdd\u66ff\u6362\u7684\u51c6\u786e\u6027\u548c\u4fe1\u606f\u7684\u5b89\u5168\u6027\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u8bc6\u522b\u654f\u611f\u5b57\u5e76\u8fdb\u884c\u66ff\u6362\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u5b57\u7b26\u4e32\u7684<code>replace()<\/code>\u65b9\u6cd5\u6216\u6b63\u5219\u8868\u8fbe\u5f0f\u5e93<code>re<\/code>\u6765\u8bc6\u522b\u548c\u66ff\u6362\u654f\u611f\u5b57\u3002\u9996\u5148\uff0c\u521b\u5efa\u4e00\u4e2a\u654f\u611f\u5b57\u5217\u8868\uff0c\u7136\u540e\u901a\u8fc7\u5faa\u73af\u904d\u5386\u6bcf\u4e2a\u654f\u611f\u5b57\uff0c\u4f7f\u7528<code>replace()<\/code>\u65b9\u6cd5\u5c06\u5176\u66ff\u6362\u4e3a\u6307\u5b9a\u7684\u5b57\u7b26\uff08\u5982\u661f\u53f7\u201c*\u201d\uff09\u3002\u5982\u679c\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\uff0c\u5219\u53ef\u4ee5\u4f7f\u7528<code>re.sub()<\/code>\u51fd\u6570\u6765\u5b9e\u73b0\u66f4\u590d\u6742\u7684\u5339\u914d\u548c\u66ff\u6362\u64cd\u4f5c\u3002<\/p>\n<p><strong>\u662f\u5426\u53ef\u4ee5\u81ea\u5b9a\u4e49\u654f\u611f\u5b57\u5217\u8868\uff1f<\/strong><br \/>\u7edd\u5bf9\u53ef\u4ee5\u3002\u60a8\u53ef\u4ee5\u6839\u636e\u9700\u6c42\u521b\u5efa\u81ea\u5df1\u7684\u654f\u611f\u5b57\u5217\u8868\uff0c\u5e76\u5728\u7a0b\u5e8f\u4e2d\u52a8\u6001\u52a0\u8f7d\u6216\u4fee\u6539\u5b83\u3002\u8fd9\u6837\uff0c\u60a8\u53ef\u4ee5\u786e\u4fdd\u7a0b\u5e8f\u59cb\u7ec8\u80fd\u591f\u8bc6\u522b\u548c\u66ff\u6362\u60a8\u6240\u5b9a\u4e49\u7684\u654f\u611f\u5b57\u3002\u53ef\u4ee5\u5c06\u654f\u611f\u5b57\u5b58\u50a8\u5728\u6587\u672c\u6587\u4ef6\u4e2d\uff0c\u7a0b\u5e8f\u542f\u52a8\u65f6\u8bfb\u53d6\u6587\u4ef6\u5185\u5bb9\uff0c\u4ee5\u4fbf\u4e8e\u66f4\u65b0\u548c\u7ba1\u7406\u3002<\/p>\n<p><strong>\u5728\u66ff\u6362\u654f\u611f\u5b57\u65f6\uff0c\u5982\u4f55\u4fdd\u6301\u6587\u672c\u7684\u53ef\u8bfb\u6027\uff1f<\/strong><br \/>\u4e3a\u4e86\u4fdd\u6301\u6587\u672c\u7684\u53ef\u8bfb\u6027\uff0c\u60a8\u53ef\u4ee5\u9009\u62e9\u90e8\u5206\u66ff\u6362\u654f\u611f\u5b57\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u4ec5\u5c06\u654f\u611f\u5b57\u7684\u90e8\u5206\u5b57\u7b26\u66ff\u6362\u4e3a\u661f\u53f7\uff0c\u4fdd\u7559\u9996\u5c3e\u5b57\u7b26\uff0c\u8fd9\u6837\u8bfb\u8005\u4ecd\u7136\u80fd\u591f\u63a8\u6d4b\u51fa\u539f\u6587\u7684\u542b\u4e49\u3002\u53e6\u4e00\u79cd\u65b9\u6cd5\u662f\u4f7f\u7528\u540c\u4e49\u8bcd\u66ff\u6362\u654f\u611f\u5b57\uff0c\u786e\u4fdd\u5728\u4f20\u8fbe\u4fe1\u606f\u65f6\u4e0d\u4f1a\u5931\u53bb\u539f\u6709\u7684\u610f\u601d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python \u66ff\u6362\u654f\u611f\u5b57\u7684\u65b9\u6cd5\u6709\uff1a\u4f7f\u7528\u5b57\u7b26\u4e32\u66ff\u6362\u3001\u6b63\u5219\u8868\u8fbe\u5f0f\u3001\u7b2c\u4e09\u65b9\u5e93\uff08\u5982 FlashText\uff09\u7b49\u3002\u5728\u5904\u7406\u654f\u611f [&hellip;]","protected":false},"author":3,"featured_media":1005537,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1005524"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=1005524"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1005524\/revisions"}],"predecessor-version":[{"id":1005539,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1005524\/revisions\/1005539"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1005537"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1005524"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1005524"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1005524"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}