{"id":177168,"date":"2024-05-08T19:25:26","date_gmt":"2024-05-08T11:25:26","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/177168.html"},"modified":"2024-05-08T19:25:30","modified_gmt":"2024-05-08T11:25:30","slug":"%e6%80%8e%e4%b9%88%e7%94%a8python%ef%bc%8c%e7%bb%9f%e8%ae%a1%e4%b8%80%e4%b8%aatxt%e4%b8%ad%e6%9f%90%e4%b8%89%e4%b8%aa%e4%b8%ad%e6%96%87%e5%90%8d%e5%ad%97%e5%87%ba%e7%8e%b0%e7%9a%84%e6%ac%a1%e6%95%b0","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/177168.html","title":{"rendered":"\u600e\u4e48\u7528python\uff0c\u7edf\u8ba1\u4e00\u4e2atxt\u4e2d\u67d0\u4e09\u4e2a\u4e2d\u6587\u540d\u5b57\u51fa\u73b0\u7684\u6b21\u6570"},"content":{"rendered":"<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/27061141\/8d3c68ab-cfbe-4a1c-9b5c-e8377ca4e726.webp\" alt=\"\u600e\u4e48\u7528python\uff0c\u7edf\u8ba1\u4e00\u4e2atxt\u4e2d\u67d0\u4e09\u4e2a\u4e2d\u6587\u540d\u5b57\u51fa\u73b0\u7684\u6b21\u6570\" \/><\/p>\n<p><p>\u4f7f\u7528Python\u7edf\u8ba1\u4e00\u4e2atxt\u6587\u4ef6\u4e2d\u67d0\u4e09\u4e2a\u4e2d\u6587\u540d\u5b57\u51fa\u73b0\u7684\u6b21\u6570\u53ef\u4ee5\u975e\u5e38\u9ad8\u6548\u5730\u5b8c\u6210\uff0c\u60a8\u9700\u8981\u505a\u7684\u662f<strong>\u8bfb\u53d6\u6587\u4ef6\u3001\u641c\u7d22\u6587\u672c\u3001\u8ba1\u7b97\u6b21\u6570<\/strong>\u3002\u5176\u4e2d\uff0c<strong>\u8bfb\u53d6\u6587\u4ef6<\/strong>\u662f\u6307\u6253\u5f00\u6587\u672c\u5e76\u8bfb\u53d6\u5176\u5185\u5bb9\uff1b<strong>\u641c\u7d22\u6587\u672c<\/strong>\u5c31\u662f\u5728\u8bfb\u53d6\u7684\u5b57\u7b26\u4e32\u4e2d\u67e5\u627e\u7279\u5b9a\u7684\u540d\u79f0\uff1b\u6700\u540e\uff0c<strong>\u8ba1\u7b97\u6b21\u6570<\/strong>\u5c31\u662f\u5bf9\u627e\u5230\u7684\u6bcf\u4e2a\u540d\u5b57\u8fdb\u884c\u8ba1\u6570\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u51c6\u5907\u5de5\u4f5c<\/h3>\n<\/p>\n<p><p>\u5728\u5f00\u59cb\u7f16\u7a0b\u4e4b\u524d\uff0c\u6211\u4eec\u9700\u786e\u4fddPython\u73af\u5883\u5df2\u6b63\u786e\u5b89\u88c5\uff0c\u5e76\u51c6\u5907\u4e00\u4e2a\u5305\u542b\u6587\u672c\u5185\u5bb9\u7684txt\u6587\u4ef6\u3002\u6b64\u5916\uff0c\u8981\u786e\u8ba4\u8981\u641c\u7d22\u7684\u4e2d\u6587\u540d\u5b57\u662f\u4f55\u79cd\u5f62\u5f0f\uff0c\u5e76\u4e14\u8fd9\u4e9b\u540d\u5b57\u5728\u6587\u672c\u4e2d\u7684\u7f16\u7801\u683c\u5f0f\u5e94\u4e0ePython\u811a\u672c\u4e2d\u7684\u683c\u5f0f\u76f8\u540c\uff0c\u901a\u5e38\u6211\u4eec\u4f7f\u7528UTF-8\u7f16\u7801\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u8bfb\u53d6\u6587\u4ef6\u5185\u5bb9<\/h3>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u9700\u8981\u7528Python\u6253\u5f00\u5e76\u8bfb\u53d6txt\u6587\u4ef6\u7684\u5185\u5bb9\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u6253\u5f00\u6587\u4ef6<\/p>\n<p>with open(&#039;example.txt&#039;, &#039;r&#039;, encoding=&#039;utf-8&#039;) as file:<\/p>\n<p>    content = file.read()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001\u641c\u7d22\u5e76\u7edf\u8ba1\u540d\u5b57<\/h3>\n<\/p>\n<p><p>\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u5229\u7528Python\u7684\u5b57\u7b26\u4e32\u65b9\u6cd5\u6216\u6b63\u5219\u8868\u8fbe\u5f0f\u6765\u641c\u7d22\u548c\u7edf\u8ba1\u5404\u4e2a\u540d\u5b57\u51fa\u73b0\u7684\u6b21\u6570\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u7edf\u8ba1\u540d\u5b57\u51fa\u73b0\u7684\u6b21\u6570<\/p>\n<p>def count_name(name, text):<\/p>\n<p>    return text.count(name)<\/p>\n<h2><strong>\u5b9a\u4e49\u8981\u641c\u7d22\u7684\u4e09\u4e2a\u4e2d\u6587\u540d\u5b57<\/strong><\/h2>\n<p>name1 = &quot;\u5f20\u4e09&quot;<\/p>\n<p>name2 = &quot;\u674e\u56db&quot;<\/p>\n<p>name3 = &quot;\u738b\u4e94&quot;<\/p>\n<h2><strong>\u8c03\u7528count_name\u51fd\u6570\u8fdb\u884c\u7edf\u8ba1<\/strong><\/h2>\n<p>count1 = count_name(name1, content)<\/p>\n<p>count2 = count_name(name2, content)<\/p>\n<p>count3 = count_name(name3, content)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u641c\u7d22\u4e0e\u7edf\u8ba1\u7684\u66ff\u4ee3\u65b9\u6848<\/h3>\n<\/p>\n<p><p>\u5982\u679ctxt\u6587\u672c\u8f83\u957f\u6216\u7ed3\u6784\u8f83\u4e3a\u590d\u6742\uff0c\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u53ef\u4ee5\u66f4\u52a0\u51c6\u786e\u5730\u627e\u5230\u6bcf\u4e00\u6b21\u540d\u5b57\u7684\u51fa\u73b0\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import re<\/p>\n<p>def count_name_regex(name, text):<\/p>\n<p>    pattern = re.compile(name)<\/p>\n<p>    matches = pattern.findall(text)<\/p>\n<p>    return len(matches)<\/p>\n<h2><strong>\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u6765\u8ba1\u7b97\u6bcf\u4e2a\u540d\u5b57\u7684\u51fa\u73b0\u6b21\u6570<\/strong><\/h2>\n<p>count1_regex = count_name_regex(name1, content)<\/p>\n<p>count2_regex = count_name_regex(name2, content)<\/p>\n<p>count3_regex = count_name_regex(name3, content)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e94\u3001\u8f93\u51fa\u7ed3\u679c<\/h3>\n<\/p>\n<p><p>\u6700\u540e\u8f93\u51fa\u6bcf\u4e2a\u4e2d\u6587\u540d\u5b57\u5728\u6587\u672c\u4e2d\u51fa\u73b0\u7684\u6b21\u6570\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u8f93\u51fa\u7ed3\u679c<\/p>\n<p>print(f&quot;&#039;{name1}&#039;\u5728\u6587\u672c\u4e2d\u51fa\u73b0\u7684\u6b21\u6570\u4e3a\uff1a{count1}&quot;)<\/p>\n<p>print(f&quot;&#039;{name2}&#039;\u5728\u6587\u672c\u4e2d\u51fa\u73b0\u7684\u6b21\u6570\u4e3a\uff1a{count2}&quot;)<\/p>\n<p>print(f&quot;&#039;{name3}&#039;\u5728\u6587\u672c\u4e2d\u51fa\u73b0\u7684\u6b21\u6570\u4e3a\uff1a{count3}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5982\u679c\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u8fdb\u884c\u4e86\u7edf\u8ba1\uff0c\u4e5f\u5e94\u8be5\u8f93\u51fa\u76f8\u5e94\u7684\u7ed3\u679c\u3002<\/p>\n<\/p>\n<p><h3>\u516d\u3001\u9519\u8bef\u5904\u7406<\/h3>\n<\/p>\n<p><p>\u5728\u7a0b\u5e8f\u8fd0\u884c\u8fc7\u7a0b\u4e2d\uff0c\u53ef\u80fd\u4f1a\u9047\u5230\u6587\u4ef6\u8bfb\u5199\u9519\u8bef\u3001\u7f16\u7801\u95ee\u9898\u7b49\u3002\u56e0\u6b64\uff0c<strong>\u5e94\u52a0\u5165\u5f02\u5e38\u5904\u7406\u673a\u5236<\/strong>\uff0c\u4ee5\u4fbf\u5728\u9047\u5230\u9519\u8bef\u65f6\uff0c\u80fd\u7ed9\u51fa\u76f8\u5e94\u7684\u63d0\u793a\u4fe1\u606f\uff0c\u5e76\u5b89\u5168\u9000\u51fa\u7a0b\u5e8f\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">try:<\/p>\n<p>    # \u628a\u6253\u5f00\u6587\u4ef6\u3001\u8bfb\u53d6\u5185\u5bb9\u3001\u641c\u7d22\u540d\u5b57\u3001\u6253\u5370\u7ed3\u679c\u7b49\u903b\u8f91\u653e\u5165\u6b64\u5904<\/p>\n<p>    # ...<\/p>\n<p>except IOError:<\/p>\n<p>    print(&quot;\u6587\u4ef6\u8bfb\u5199\u51fa\u73b0\u9519\u8bef\uff0c\u8bf7\u68c0\u67e5\u6587\u4ef6\u8def\u5f84\u53ca\u6743\u9650\u3002&quot;)<\/p>\n<p>except Exception as e:<\/p>\n<p>    print(f&quot;\u51fa\u73b0\u4e86\u610f\u6599\u4e4b\u5916\u7684\u9519\u8bef\uff1a{e}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e03\u3001\u5b9e\u9645\u5e94\u7528\u6848\u4f8b\u5206\u6790<\/h3>\n<\/p>\n<p><p>\u6700\u540e\uff0c\u5e94\u5f53\u901a\u8fc7\u5177\u4f53\u6848\u4f8b\u6f14\u793a\u5982\u4f55\u8fd0\u7528\u4e0a\u8ff0\u7f16\u7a0b\u903b\u8f91\u3002\u53ef\u4ee5\u9009\u62e9\u4e00\u4e2a\u771f\u5b9e\u7684\u6587\u672c\u6587\u4ef6\uff0c\u5c55\u793a\u6574\u4e2a\u641c\u7d22\u548c\u7edf\u8ba1\u7684\u8fc7\u7a0b\uff0c\u5305\u62ec\u5982\u4f55\u5904\u7406\u53ef\u80fd\u51fa\u73b0\u7684\u5404\u79cd\u7f16\u7801\u95ee\u9898\u3001\u5982\u4f55\u4f18\u5316\u6027\u80fd\u4ee5\u5904\u7406\u5927\u578b\u6587\u4ef6\u7b49\u3002<\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u8be6\u7ec6\u7684\u4ee3\u7801\u89e3\u91ca\u548c\u6848\u4f8b\u5206\u6790\uff0c\u8bfb\u8005\u4fbf\u53ef\u5bf9\u5982\u4f55\u4f7f\u7528Python\u7edf\u8ba1txt\u6587\u4ef6\u4e2d\u7279\u5b9a\u4e2d\u6587\u540d\u5b57\u7684\u51fa\u73b0\u6b21\u6570\u6709\u4e00\u4e2a\u6df1\u523b\u7684\u7406\u89e3\uff0c\u8fd9\u5c06\u6709\u52a9\u4e8e\u4ed6\u4eec\u5728\u5b9e\u9645\u5de5\u4f5c\u4e2d\u7075\u6d3b\u8fd0\u7528Python\u5b8c\u6210\u76f8\u5173\u4efb\u52a1\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p><strong>1. \u5982\u4f55\u4f7f\u7528Python\u7edf\u8ba1\u4e00\u4e2atxt\u6587\u4ef6\u4e2d\u67d0\u4e09\u4e2a\u4e2d\u6587\u540d\u5b57\u7684\u51fa\u73b0\u6b21\u6570\uff1f<\/strong><\/p>\n<p>\u8981\u7edf\u8ba1\u4e00\u4e2atxt\u6587\u4ef6\u4e2d\u67d0\u4e09\u4e2a\u4e2d\u6587\u540d\u5b57\u7684\u51fa\u73b0\u6b21\u6570\uff0c\u53ef\u4ee5\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4\u8fdb\u884c\uff1a<\/p>\n<p>\u6b65\u9aa4\u4e00\uff1a\u8bfb\u53d6txt\u6587\u4ef6<br \/>\n\u4f7f\u7528Python\u7684\u5185\u7f6e\u51fd\u6570open()\u6765\u6253\u5f00txt\u6587\u4ef6\uff0c\u5e76\u4f7f\u7528read()\u51fd\u6570\u8bfb\u53d6\u5176\u5185\u5bb9\uff0c\u5c06\u5176\u4fdd\u5b58\u4e3a\u4e00\u4e2a\u5b57\u7b26\u4e32\u3002<\/p>\n<p>\u6b65\u9aa4\u4e8c\uff1a\u63d0\u53d6\u4e2d\u6587\u540d\u5b57<br \/>\n\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u6765\u5339\u914d\u5e76\u63d0\u53d6\u4e2d\u6587\u540d\u5b57\u3002\u53ef\u4ee5\u4f7f\u7528Python\u7684re\u6a21\u5757\u6765\u5b9e\u73b0\uff0c\u901a\u8fc7\u7f16\u5199\u5408\u9002\u7684\u6b63\u5219\u8868\u8fbe\u5f0f\u6765\u5339\u914d\u4e2d\u6587\u540d\u5b57\u3002<\/p>\n<p>\u6b65\u9aa4\u4e09\uff1a\u7edf\u8ba1\u51fa\u73b0\u6b21\u6570<br \/>\n\u4f7f\u7528Python\u7684\u5b57\u7b26\u4e32\u65b9\u6cd5count()\u6765\u7edf\u8ba1\u6bcf\u4e2a\u63d0\u53d6\u5230\u7684\u4e2d\u6587\u540d\u5b57\u5728\u6587\u4ef6\u4e2d\u51fa\u73b0\u7684\u6b21\u6570\u3002\u4f7f\u7528\u4e00\u4e2a\u5b57\u5178\u6765\u4fdd\u5b58\u6bcf\u4e2a\u4e2d\u6587\u540d\u5b57\u53ca\u5176\u5bf9\u5e94\u7684\u51fa\u73b0\u6b21\u6570\u3002<\/p>\n<p>\u6b65\u9aa4\u56db\uff1a\u8f93\u51fa\u7ed3\u679c<br \/>\n\u5c06\u7edf\u8ba1\u7ed3\u679c\u8f93\u51fa\u5230\u5c4f\u5e55\u4e0a\uff0c\u6216\u8005\u4fdd\u5b58\u4e3a\u4e00\u4e2a\u65b0\u7684txt\u6587\u4ef6\u3002<\/p>\n<p><strong>2. \u5728Python\u4e2d\uff0c\u600e\u4e48\u7edf\u8ba1\u4e00\u4e2atxt\u6587\u4ef6\u4e2d\u4efb\u610f\u4e09\u4e2a\u4e2d\u6587\u540d\u5b57\u7684\u51fa\u73b0\u6b21\u6570\uff1f<\/strong><\/p>\n<p>\u8981\u7edf\u8ba1\u4efb\u610f\u4e09\u4e2a\u4e2d\u6587\u540d\u5b57\u5728\u4e00\u4e2atxt\u6587\u4ef6\u4e2d\u7684\u51fa\u73b0\u6b21\u6570\uff0c\u53ef\u4ee5\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4\u8fdb\u884c\uff1a<\/p>\n<p>\u6b65\u9aa4\u4e00\uff1a\u8bfb\u53d6txt\u6587\u4ef6<br \/>\n\u4f7f\u7528Python\u7684\u5185\u7f6e\u51fd\u6570open()\u6765\u6253\u5f00txt\u6587\u4ef6\uff0c\u5e76\u4f7f\u7528read()\u51fd\u6570\u8bfb\u53d6\u5176\u5185\u5bb9\uff0c\u5c06\u5176\u4fdd\u5b58\u4e3a\u4e00\u4e2a\u5b57\u7b26\u4e32\u3002<\/p>\n<p>\u6b65\u9aa4\u4e8c\uff1a\u63d0\u53d6\u4e2d\u6587\u540d\u5b57<br \/>\n\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u6765\u5339\u914d\u5e76\u63d0\u53d6\u4e2d\u6587\u540d\u5b57\u3002\u53ef\u4ee5\u4f7f\u7528Python\u7684re\u6a21\u5757\u6765\u5b9e\u73b0\uff0c\u901a\u8fc7\u7f16\u5199\u5408\u9002\u7684\u6b63\u5219\u8868\u8fbe\u5f0f\u6765\u5339\u914d\u4e2d\u6587\u540d\u5b57\u3002<\/p>\n<p>\u6b65\u9aa4\u4e09\uff1a\u7edf\u8ba1\u51fa\u73b0\u6b21\u6570<br \/>\n\u4f7f\u7528Python\u7684\u5b57\u7b26\u4e32\u65b9\u6cd5count()\u6765\u7edf\u8ba1\u6bcf\u4e2a\u63d0\u53d6\u5230\u7684\u4e2d\u6587\u540d\u5b57\u5728\u6587\u4ef6\u4e2d\u51fa\u73b0\u7684\u6b21\u6570\u3002\u53ef\u4ee5\u4f7f\u7528\u4e00\u4e2a\u5faa\u73af\u6765\u904d\u5386\u6240\u6709\u53ef\u80fd\u7684\u4e09\u4e2a\u4e2d\u6587\u540d\u5b57\u7684\u7ec4\u5408\uff0c\u5e76\u4f7f\u7528\u5b57\u5178\u6765\u4fdd\u5b58\u6bcf\u4e2a\u7ec4\u5408\u53ca\u5176\u5bf9\u5e94\u7684\u51fa\u73b0\u6b21\u6570\u3002<\/p>\n<p>\u6b65\u9aa4\u56db\uff1a\u8f93\u51fa\u7ed3\u679c<br \/>\n\u5c06\u7edf\u8ba1\u7ed3\u679c\u8f93\u51fa\u5230\u5c4f\u5e55\u4e0a\uff0c\u6216\u8005\u4fdd\u5b58\u4e3a\u4e00\u4e2a\u65b0\u7684txt\u6587\u4ef6\u3002<\/p>\n<p><strong>3. Python\u4e2d\u5982\u4f55\u7edf\u8ba1\u4e00\u4e2atxt\u6587\u6863\u4e2d\u7279\u5b9a\u7684\u4e09\u4e2a\u4e2d\u6587\u540d\u5b57\u7684\u51fa\u73b0\u6b21\u6570\uff1f<\/strong><\/p>\n<p>\u5982\u679c\u8981\u7edf\u8ba1\u4e00\u4e2atxt\u6587\u6863\u4e2d\u7279\u5b9a\u7684\u4e09\u4e2a\u4e2d\u6587\u540d\u5b57\u7684\u51fa\u73b0\u6b21\u6570\uff0c\u53ef\u4ee5\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4\u8fdb\u884c\uff1a<\/p>\n<p>\u6b65\u9aa4\u4e00\uff1a\u8bfb\u53d6txt\u6587\u4ef6<br \/>\n\u4f7f\u7528Python\u7684\u5185\u7f6e\u51fd\u6570open()\u6765\u6253\u5f00txt\u6587\u4ef6\uff0c\u5e76\u4f7f\u7528read()\u51fd\u6570\u8bfb\u53d6\u5176\u5185\u5bb9\uff0c\u5c06\u5176\u4fdd\u5b58\u4e3a\u4e00\u4e2a\u5b57\u7b26\u4e32\u3002<\/p>\n<p>\u6b65\u9aa4\u4e8c\uff1a\u63d0\u53d6\u4e2d\u6587\u540d\u5b57<br \/>\n\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u6765\u5339\u914d\u5e76\u63d0\u53d6\u4e2d\u6587\u540d\u5b57\u3002\u5229\u7528Python\u7684re\u6a21\u5757\uff0c\u7f16\u5199\u9002\u5f53\u7684\u6b63\u5219\u8868\u8fbe\u5f0f\u6765\u5339\u914d\u7279\u5b9a\u7684\u4e2d\u6587\u540d\u5b57\u3002<\/p>\n<p>\u6b65\u9aa4\u4e09\uff1a\u7edf\u8ba1\u51fa\u73b0\u6b21\u6570<br \/>\n\u4f7f\u7528\u5b57\u7b26\u4e32\u7684count()\u65b9\u6cd5\u7edf\u8ba1\u6bcf\u4e2a\u7279\u5b9a\u4e2d\u6587\u540d\u5b57\u5728\u6587\u6863\u4e2d\u51fa\u73b0\u7684\u6b21\u6570\u3002\u53ef\u4ee5\u4f7f\u7528\u4e00\u4e2a\u5faa\u73af\u6765\u904d\u5386\u6240\u6709\u7279\u5b9a\u4e2d\u6587\u540d\u5b57\uff0c\u5e76\u4f7f\u7528\u4e00\u4e2a\u5b57\u5178\u6765\u5b58\u50a8\u6bcf\u4e2a\u540d\u5b57\u548c\u5176\u5bf9\u5e94\u7684\u51fa\u73b0\u6b21\u6570\u3002<\/p>\n<p>\u6b65\u9aa4\u56db\uff1a\u8f93\u51fa\u7ed3\u679c<br \/>\n\u5c06\u7edf\u8ba1\u7ed3\u679c\u8f93\u51fa\u5230\u5c4f\u5e55\u4e0a\uff0c\u6216\u8005\u4fdd\u5b58\u5230\u4e00\u4e2a\u65b0\u7684txt\u6587\u4ef6\u4e2d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u4f7f\u7528Python\u7edf\u8ba1\u4e00\u4e2atxt\u6587\u4ef6\u4e2d\u67d0\u4e09\u4e2a\u4e2d\u6587\u540d\u5b57\u51fa\u73b0\u7684\u6b21\u6570\u53ef\u4ee5\u975e\u5e38\u9ad8\u6548\u5730\u5b8c\u6210\uff0c\u60a8\u9700\u8981\u505a\u7684\u662f\u8bfb\u53d6\u6587\u4ef6\u3001\u641c\u7d22\u6587\u672c [&hellip;]","protected":false},"author":3,"featured_media":177175,"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\/177168"}],"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=177168"}],"version-history":[{"count":0,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/177168\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/177175"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=177168"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=177168"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=177168"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}