{"id":1140348,"date":"2025-01-08T22:19:55","date_gmt":"2025-01-08T14:19:55","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1140348.html"},"modified":"2025-01-08T22:19:57","modified_gmt":"2025-01-08T14:19:57","slug":"python%e4%b8%ad%e5%a6%82%e4%bd%95%e5%9c%a8%e6%af%8f%e4%b8%80%e8%a1%8c%e5%89%8d%e9%9d%a2%e5%8a%a0","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1140348.html","title":{"rendered":"python\u4e2d\u5982\u4f55\u5728\u6bcf\u4e00\u884c\u524d\u9762\u52a0"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25103356\/8521c693-18b2-4588-952b-b55d74c31ced.webp\" alt=\"python\u4e2d\u5982\u4f55\u5728\u6bcf\u4e00\u884c\u524d\u9762\u52a0\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\uff0c\u6bcf\u4e00\u884c\u524d\u9762\u52a0\u5185\u5bb9\u7684\u65b9\u6cd5\u6709\u5f88\u591a\u79cd\uff0c\u5305\u62ec\u5b57\u7b26\u4e32\u64cd\u4f5c\u3001\u6587\u4ef6\u5904\u7406\u3001\u4ee5\u53ca\u4f7f\u7528\u5e93\u51fd\u6570\u7b49\u3002\u5e38\u89c1\u7684\u65b9\u6cd5\u6709\uff1a\u9010\u884c\u8bfb\u53d6\u6587\u4ef6\u5e76\u6dfb\u52a0\u5185\u5bb9\u3001\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u3001\u4ee5\u53ca\u5229\u7528Python\u7684\u5b57\u7b26\u4e32\u62fc\u63a5\u529f\u80fd\u7b49\u3002\u5176\u4e2d\uff0c\u9010\u884c\u8bfb\u53d6\u6587\u4ef6\u5e76\u6dfb\u52a0\u5185\u5bb9\u662f\u4e00\u79cd\u8f83\u4e3a\u76f4\u89c2\u4e14\u5e38\u7528\u7684\u65b9\u6cd5<\/strong>\u3002\u901a\u8fc7\u8fd9\u79cd\u65b9\u6cd5\uff0c\u4f60\u53ef\u4ee5\u65b9\u4fbf\u5730\u5bf9\u6bcf\u4e00\u884c\u8fdb\u884c\u5904\u7406\uff0c\u6dfb\u52a0\u6240\u9700\u7684\u5185\u5bb9\u3002<\/p>\n<\/p>\n<p><p>\u4f8b\u5982\uff0c\u5f53\u4f60\u9700\u8981\u5728\u6bcf\u4e00\u884c\u7684\u524d\u9762\u52a0\u4e0a\u884c\u53f7\u6216\u8005\u7279\u5b9a\u7684\u5b57\u7b26\u4e32\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7\u8bfb\u53d6\u6587\u4ef6\u5185\u5bb9\uff0c\u9010\u884c\u5904\u7406\u5e76\u5c06\u4fee\u6539\u540e\u7684\u5185\u5bb9\u91cd\u65b0\u5199\u56de\u6587\u4ef6\u3002\u4e0b\u9762\u6211\u4eec\u5c06\u8be6\u7ec6\u63a2\u8ba8\u5728Python\u4e2d\u5b9e\u73b0\u8fd9\u4e00\u76ee\u6807\u7684\u591a\u79cd\u65b9\u6cd5\u548c\u6ce8\u610f\u4e8b\u9879\u3002<\/p>\n<\/p>\n<hr>\n<p><h3>\u4e00\u3001\u9010\u884c\u8bfb\u53d6\u5e76\u6dfb\u52a0\u5185\u5bb9<\/h3>\n<\/p>\n<p><p>\u9010\u884c\u8bfb\u53d6\u6587\u4ef6\u5e76\u6dfb\u52a0\u5185\u5bb9\u662f\u6700\u5e38\u89c1\u7684\u65b9\u6cd5\u4e4b\u4e00\u3002\u8fd9\u79cd\u65b9\u6cd5\u7684\u4f18\u70b9\u662f\u76f4\u89c2\u3001\u5bb9\u6613\u7406\u89e3\uff0c\u5e76\u4e14\u9002\u5408\u5904\u7406\u5927\u591a\u6570\u6587\u672c\u6587\u4ef6\u3002<\/p>\n<\/p>\n<p><h4>1.1 \u8bfb\u53d6\u6587\u4ef6\u5e76\u6dfb\u52a0\u884c\u53f7<\/h4>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u6211\u4eec\u6765\u770b\u4e00\u4e2a\u7b80\u5355\u7684\u4f8b\u5b50\uff0c\u5982\u4f55\u5728\u6bcf\u4e00\u884c\u524d\u9762\u52a0\u4e0a\u884c\u53f7\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def add_line_numbers(input_file, output_file):<\/p>\n<p>    with open(input_file, &#39;r&#39;) as infile, open(output_file, &#39;w&#39;) as outfile:<\/p>\n<p>        for line_number, line in enumerate(infile, start=1):<\/p>\n<p>            outfile.write(f&#39;{line_number}: {line}&#39;)<\/p>\n<h2><strong>\u8c03\u7528\u51fd\u6570<\/strong><\/h2>\n<p>add_line_numbers(&#39;input.txt&#39;, &#39;output.txt&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528<code>with open<\/code>\u8bed\u53e5\u6253\u5f00\u6587\u4ef6\uff0c\u4fdd\u8bc1\u6587\u4ef6\u5728\u4f7f\u7528\u5b8c\u6bd5\u540e\u81ea\u52a8\u5173\u95ed\u3002<code>enumerate<\/code>\u51fd\u6570\u7528\u4e8e\u4e3a\u6bcf\u4e00\u884c\u751f\u6210\u884c\u53f7\uff0c\u5e76\u901a\u8fc7\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u5c06\u884c\u53f7\u6dfb\u52a0\u5230\u6bcf\u4e00\u884c\u7684\u524d\u9762\u3002<\/p>\n<\/p>\n<p><h4>1.2 \u6dfb\u52a0\u7279\u5b9a\u5b57\u7b26\u4e32<\/h4>\n<\/p>\n<p><p>\u5982\u679c\u4f60\u9700\u8981\u5728\u6bcf\u4e00\u884c\u524d\u9762\u52a0\u4e0a\u7279\u5b9a\u7684\u5b57\u7b26\u4e32\uff0c\u53ef\u4ee5\u7a0d\u5fae\u4fee\u6539\u4e00\u4e0b\u4e0a\u8ff0\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def add_prefix_to_lines(input_file, output_file, prefix):<\/p>\n<p>    with open(input_file, &#39;r&#39;) as infile, open(output_file, &#39;w&#39;) as outfile:<\/p>\n<p>        for line in infile:<\/p>\n<p>            outfile.write(f&#39;{prefix}{line}&#39;)<\/p>\n<h2><strong>\u8c03\u7528\u51fd\u6570<\/strong><\/h2>\n<p>add_prefix_to_lines(&#39;input.txt&#39;, &#39;output.txt&#39;, &#39;PREFIX: &#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u901a\u8fc7\u4f20\u9012\u4e00\u4e2a<code>prefix<\/code>\u53c2\u6570\uff0c\u53ef\u4ee5\u5728\u6bcf\u4e00\u884c\u524d\u9762\u52a0\u4e0a\u6307\u5b9a\u7684\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f<\/h3>\n<\/p>\n<p><p>\u6b63\u5219\u8868\u8fbe\u5f0f\u662f\u4e00\u79cd\u5f3a\u5927\u7684\u6587\u672c\u5904\u7406\u5de5\u5177\uff0c\u53ef\u4ee5\u7528\u4e8e\u590d\u6742\u7684\u5b57\u7b26\u4e32\u5339\u914d\u548c\u66ff\u6362\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<p><h4>2.1 \u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u6dfb\u52a0\u5185\u5bb9<\/h4>\n<\/p>\n<p><p>\u5047\u8bbe\u4f60\u8981\u5728\u6bcf\u4e00\u884c\u7684\u884c\u9996\u52a0\u4e0a\u7279\u5b9a\u7684\u5b57\u7b26\uff0c\u53ef\u4ee5\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u8fdb\u884c\u5339\u914d\u548c\u66ff\u6362\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import re<\/p>\n<p>def add_prefix_with_regex(input_file, output_file, prefix):<\/p>\n<p>    with open(input_file, &#39;r&#39;) as infile:<\/p>\n<p>        content = infile.read()<\/p>\n<p>    modified_content = re.sub(r&#39;(^|\\n)&#39;, r&#39;\\1&#39; + prefix, content)<\/p>\n<p>    with open(output_file, &#39;w&#39;) as outfile:<\/p>\n<p>        outfile.write(modified_content)<\/p>\n<h2><strong>\u8c03\u7528\u51fd\u6570<\/strong><\/h2>\n<p>add_prefix_with_regex(&#39;input.txt&#39;, &#39;output.txt&#39;, &#39;PREFIX: &#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>re.sub<\/code>\u51fd\u6570\u7528\u4e8e\u5c06\u6bcf\u4e00\u884c\u7684\u884c\u9996\u5339\u914d\u5e76\u66ff\u6362\u4e3a\u5e26\u6709\u524d\u7f00\u7684\u884c\u3002\u8fd9\u91cc\u7684\u6b63\u5219\u8868\u8fbe\u5f0f<code>(^|\\n)<\/code>\u5339\u914d\u884c\u9996\u6216\u8005\u6362\u884c\u7b26\uff0c<code>r&#39;\\1&#39;<\/code>\u7528\u4e8e\u4fdd\u7559\u539f\u6709\u7684\u884c\u9996\u6216\u6362\u884c\u7b26\uff0c\u5e76\u5728\u5176\u540e\u9762\u6dfb\u52a0\u524d\u7f00\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u4f7f\u7528Python\u5e93\u51fd\u6570<\/h3>\n<\/p>\n<p><p>Python\u6709\u8bb8\u591a\u5185\u7f6e\u5e93\u548c\u7b2c\u4e09\u65b9\u5e93\u53ef\u4ee5\u7b80\u5316\u6587\u672c\u5904\u7406\u64cd\u4f5c\u3002\u4f8b\u5982\uff0c<code>pandas<\/code>\u5e93\u5728\u5904\u7406\u8868\u683c\u6570\u636e\u65f6\u975e\u5e38\u65b9\u4fbf\u3002<\/p>\n<\/p>\n<p><h4>3.1 \u4f7f\u7528pandas\u5904\u7406\u6587\u672c\u6587\u4ef6<\/h4>\n<\/p>\n<p><p>\u5982\u679c\u4f60\u7684\u6587\u672c\u6587\u4ef6\u662f\u7ed3\u6784\u5316\u7684\uff0c\u4f8b\u5982CSV\u6587\u4ef6\uff0c\u53ef\u4ee5\u4f7f\u7528<code>pandas<\/code>\u5e93\u8fdb\u884c\u5904\u7406\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pandas as pd<\/p>\n<p>def add_prefix_with_pandas(input_file, output_file, prefix):<\/p>\n<p>    df = pd.read_csv(input_file, header=None)<\/p>\n<p>    df[0] = prefix + df[0].astype(str)<\/p>\n<p>    df.to_csv(output_file, index=False, header=False)<\/p>\n<h2><strong>\u8c03\u7528\u51fd\u6570<\/strong><\/h2>\n<p>add_prefix_with_pandas(&#39;input.csv&#39;, &#39;output.csv&#39;, &#39;PREFIX: &#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528<code>pandas<\/code>\u8bfb\u53d6CSV\u6587\u4ef6\uff0c\u5e76\u5728\u7b2c\u4e00\u5217\u7684\u6bcf\u4e00\u4e2a\u503c\u524d\u9762\u52a0\u4e0a\u524d\u7f00\u3002\u7136\u540e\u5c06\u4fee\u6539\u540e\u7684\u6570\u636e\u5199\u56de\u6587\u4ef6\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u5904\u7406\u5927\u6587\u4ef6\u7684\u6ce8\u610f\u4e8b\u9879<\/h3>\n<\/p>\n<p><p>\u5f53\u5904\u7406\u5927\u6587\u4ef6\u65f6\uff0c\u9010\u884c\u8bfb\u53d6\u548c\u5199\u5165\u53ef\u4ee5\u907f\u514d\u5360\u7528\u8fc7\u591a\u5185\u5b58\uff0c\u4f46\u4ecd\u9700\u6ce8\u610f\u6587\u4ef6\u64cd\u4f5c\u7684\u6548\u7387\u548c<a href=\"https:\/\/docs.pingcode.com\/blog\/project-management\/58557.html\" target=\"_blank\">\u8d44\u6e90\u7ba1\u7406<\/a>\u3002<\/p>\n<\/p>\n<p><h4>4.1 \u5206\u5757\u8bfb\u53d6\u548c\u5199\u5165<\/h4>\n<\/p>\n<p><p>\u5bf9\u4e8e\u975e\u5e38\u5927\u7684\u6587\u4ef6\uff0c\u53ef\u4ee5\u8003\u8651\u5206\u5757\u8bfb\u53d6\u548c\u5199\u5165\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def add_prefix_to_large_file(input_file, output_file, prefix, chunk_size=1024):<\/p>\n<p>    with open(input_file, &#39;r&#39;) as infile, open(output_file, &#39;w&#39;) as outfile:<\/p>\n<p>        while True:<\/p>\n<p>            lines = infile.readlines(chunk_size)<\/p>\n<p>            if not lines:<\/p>\n<p>                break<\/p>\n<p>            for line in lines:<\/p>\n<p>                outfile.write(f&#39;{prefix}{line}&#39;)<\/p>\n<h2><strong>\u8c03\u7528\u51fd\u6570<\/strong><\/h2>\n<p>add_prefix_to_large_file(&#39;large_input.txt&#39;, &#39;large_output.txt&#39;, &#39;PREFIX: &#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528<code>readlines<\/code>\u65b9\u6cd5\u6309\u5757\u8bfb\u53d6\u6587\u4ef6\u5185\u5bb9\uff0c\u4ece\u800c\u907f\u514d\u4e00\u6b21\u6027\u8bfb\u53d6\u6574\u4e2a\u6587\u4ef6\u9020\u6210\u7684\u5185\u5b58\u5360\u7528\u8fc7\u5927\u95ee\u9898\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u6709\u591a\u79cd\u65b9\u6cd5\u53ef\u4ee5\u5728\u6bcf\u4e00\u884c\u524d\u9762\u52a0\u4e0a\u5185\u5bb9\uff0c\u5305\u62ec\u9010\u884c\u8bfb\u53d6\u6587\u4ef6\u5e76\u6dfb\u52a0\u5185\u5bb9\u3001\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u3001\u4ee5\u53ca\u5229\u7528Python\u7684\u5e93\u51fd\u6570\u7b49\u3002\u6bcf\u79cd\u65b9\u6cd5\u90fd\u6709\u5176\u9002\u7528\u573a\u666f\u548c\u4f18\u70b9\uff0c\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u53ef\u4ee5\u6839\u636e\u5177\u4f53\u9700\u6c42\u548c\u6587\u4ef6\u5927\u5c0f\u6765\u51b3\u5b9a\u3002<\/p>\n<\/p>\n<p><p><strong>\u9010\u884c\u8bfb\u53d6\u5e76\u6dfb\u52a0\u5185\u5bb9<\/strong>\u7684\u65b9\u6cd5\u9002\u5408\u5904\u7406\u5927\u591a\u6570\u6587\u672c\u6587\u4ef6\uff0c\u64cd\u4f5c\u76f4\u89c2\u4e14\u5bb9\u6613\u7406\u89e3\uff1b<strong>\u6b63\u5219\u8868\u8fbe\u5f0f<\/strong>\u5219\u9002\u7528\u4e8e\u9700\u8981\u590d\u6742\u5339\u914d\u548c\u66ff\u6362\u7684\u573a\u666f\uff1b<strong>pandas<\/strong>\u5e93\u5728\u5904\u7406\u7ed3\u6784\u5316\u6570\u636e\u65f6\u975e\u5e38\u9ad8\u6548\uff1b\u800c<strong>\u5206\u5757\u8bfb\u53d6\u548c\u5199\u5165<\/strong>\u53ef\u4ee5\u6709\u6548\u7ba1\u7406\u8d44\u6e90\uff0c\u9002\u7528\u4e8e\u5904\u7406\u5927\u6587\u4ef6\u7684\u60c5\u51b5\u3002<\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u65b9\u6cd5\uff0c\u4f60\u53ef\u4ee5\u7075\u6d3b\u5730\u5728Python\u4e2d\u5b9e\u73b0\u5bf9\u6587\u672c\u6587\u4ef6\u7684\u5904\u7406\uff0c\u5728\u6bcf\u4e00\u884c\u524d\u9762\u52a0\u4e0a\u6240\u9700\u7684\u5185\u5bb9\uff0c\u4ece\u800c\u6ee1\u8db3\u4e0d\u540c\u7684\u5e94\u7528\u9700\u6c42\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u4e3a\u6bcf\u4e00\u884c\u6587\u672c\u6dfb\u52a0\u7279\u5b9a\u5b57\u7b26\u6216\u5b57\u7b26\u4e32\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u6587\u4ef6\u64cd\u4f5c\u6765\u8bfb\u53d6\u6587\u672c\u6587\u4ef6\u7684\u6bcf\u4e00\u884c\uff0c\u5e76\u4e3a\u6bcf\u4e00\u884c\u6dfb\u52a0\u7279\u5b9a\u7684\u5b57\u7b26\u6216\u5b57\u7b26\u4e32\u3002\u901a\u5e38\u7684\u65b9\u6cd5\u662f\u4f7f\u7528<code>with open<\/code>\u8bed\u53e5\u8bfb\u53d6\u6587\u4ef6\uff0c\u9010\u884c\u5904\u7406\u540e\uff0c\u518d\u5c06\u4fee\u6539\u540e\u7684\u5185\u5bb9\u5199\u5165\u53e6\u4e00\u4e2a\u6587\u4ef6\u3002\u4f8b\u5982\uff0c\u4f7f\u7528<code>&quot;\\t&quot;<\/code>\u53ef\u4ee5\u5728\u6bcf\u884c\u524d\u6dfb\u52a0\u4e00\u4e2a\u5236\u8868\u7b26\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\u5982\u4f55\u5904\u7406\u591a\u884c\u5b57\u7b26\u4e32\u5e76\u5728\u6bcf\u884c\u524d\u6dfb\u52a0\u5185\u5bb9\uff1f<\/strong><br \/>\u5982\u679c\u60a8\u60f3\u5728\u591a\u884c\u5b57\u7b26\u4e32\u4e2d\u6dfb\u52a0\u5185\u5bb9\uff0c\u53ef\u4ee5\u4f7f\u7528<code>splitlines()<\/code>\u65b9\u6cd5\u5c06\u5b57\u7b26\u4e32\u5206\u5272\u6210\u884c\uff0c\u7136\u540e\u4f7f\u7528\u5217\u8868\u63a8\u5bfc\u5f0f\u9010\u884c\u5904\u7406\u3002\u63a5\u7740\uff0c\u53ef\u4ee5\u4f7f\u7528<code>join()<\/code>\u65b9\u6cd5\u5c06\u4fee\u6539\u540e\u7684\u884c\u91cd\u65b0\u7ec4\u5408\u6210\u4e00\u4e2a\u5b57\u7b26\u4e32\u3002\u8fd9\u6837\u53ef\u4ee5\u8f7b\u677e\u5728\u6bcf\u4e00\u884c\u524d\u6dfb\u52a0\u6240\u9700\u7684\u5b57\u7b26\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\u662f\u5426\u53ef\u4ee5\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u4e3a\u6bcf\u884c\u6dfb\u52a0\u524d\u7f00\uff1f<\/strong><br \/>\u662f\u7684\uff0cPython\u7684<code>re<\/code>\u6a21\u5757\u53ef\u4ee5\u7528\u6765\u5904\u7406\u6b63\u5219\u8868\u8fbe\u5f0f\u3002\u5728\u8bfb\u53d6\u6587\u672c\u540e\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528<code>re.sub()<\/code>\u65b9\u6cd5\u4e3a\u6bcf\u4e00\u884c\u6dfb\u52a0\u524d\u7f00\u3002\u901a\u8fc7\u5339\u914d\u6bcf\u4e00\u884c\u7684\u5f00\u5934\u5e76\u66ff\u6362\u4e3a\u6240\u9700\u7684\u683c\u5f0f\uff0c\u60a8\u53ef\u4ee5\u7075\u6d3b\u5730\u5904\u7406\u6587\u672c\uff0c\u6ee1\u8db3\u7279\u5b9a\u9700\u6c42\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\uff0c\u6bcf\u4e00\u884c\u524d\u9762\u52a0\u5185\u5bb9\u7684\u65b9\u6cd5\u6709\u5f88\u591a\u79cd\uff0c\u5305\u62ec\u5b57\u7b26\u4e32\u64cd\u4f5c\u3001\u6587\u4ef6\u5904\u7406\u3001\u4ee5\u53ca\u4f7f\u7528\u5e93\u51fd\u6570\u7b49\u3002\u5e38\u89c1\u7684\u65b9\u6cd5\u6709\uff1a\u9010 [&hellip;]","protected":false},"author":3,"featured_media":1140353,"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\/1140348"}],"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=1140348"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1140348\/revisions"}],"predecessor-version":[{"id":1140358,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1140348\/revisions\/1140358"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1140353"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1140348"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1140348"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1140348"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}