{"id":175540,"date":"2024-05-08T18:53:15","date_gmt":"2024-05-08T10:53:15","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/175540.html"},"modified":"2024-05-08T18:53:19","modified_gmt":"2024-05-08T10:53:19","slug":"python-%e5%a6%82%e4%bd%95%e8%af%bb%e5%8f%96txt%e6%96%87%e4%bb%b6%e4%b8%ad%e7%9a%84%e6%95%b0%e5%ad%97%e5%b9%b6%e8%bd%ac%e6%8d%a2%e6%88%90list","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/175540.html","title":{"rendered":"python \u5982\u4f55\u8bfb\u53d6txt\u6587\u4ef6\u4e2d\u7684\u6570\u5b57\u5e76\u8f6c\u6362\u6210list"},"content":{"rendered":"<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/27053424\/bbe38914-051a-4a31-b5ad-f48702bb8694.webp\" alt=\"python \u5982\u4f55\u8bfb\u53d6txt\u6587\u4ef6\u4e2d\u7684\u6570\u5b57\u5e76\u8f6c\u6362\u6210list\" \/><\/p>\n<p><p>Python\u53ef\u4ee5\u901a\u8fc7\u51e0\u79cd\u7b80\u6d01\u7684\u65b9\u6cd5\u8bfb\u53d6TXT\u6587\u4ef6\u4e2d\u7684\u6570\u5b57\uff0c\u5e76\u5c06\u5176\u8f6c\u6362\u6210\u5217\u8868\u3002<strong>\u6838\u5fc3\u65b9\u6cd5\u5305\u62ec\u4f7f\u7528\u6807\u51c6\u6587\u4ef6\u8bfb\u53d6\u3001\u6b63\u5219\u8868\u8fbe\u5f0f\u5339\u914d\u6570\u5b57\u3001\u5229\u7528\u5b57\u7b26\u4e32\u7684\u5206\u5272\u529f\u80fd<\/strong>\u3002\u8fd9\u4e9b\u65b9\u6cd5\u65e2\u53ef\u4ee5\u8bfb\u53d6\u5e26\u6709\u7eaf\u6570\u5b57\u7684\u6587\u4ef6\uff0c\u4e5f\u53ef\u4ee5\u5904\u7406\u6df7\u5408\u6709\u6587\u5b57\u548c\u6570\u5b57\u7684\u6587\u6863\uff0c\u786e\u4fdd\u6700\u7ec8\u5f97\u5230\u7684\u662f\u6570\u5b57\u7684\u5217\u8868\u3002\u5176\u4e2d\uff0c<strong>\u5229\u7528\u5b57\u7b26\u4e32\u7684\u5206\u5272\u529f\u80fd<\/strong>\u76f8\u5bf9\u76f4\u89c2\u548c\u7b80\u5355\uff0c\u7279\u522b\u662f\u5f53\u6587\u4ef6\u683c\u5f0f\u76f8\u5bf9\u89c4\u6574\uff0c\u6570\u5b57\u4e4b\u95f4\u6709\u660e\u786e\u7684\u5206\u9694\u7b26\uff08\u5982\u7a7a\u683c\u3001\u9017\u53f7\u7b49\uff09\u65f6\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u5229\u7528\u5b57\u7b26\u4e32\u7684\u5206\u5272\u529f\u80fd<\/h3>\n<\/p>\n<p><p>\u5bf9\u4e8e\u683c\u5f0f\u76f8\u5bf9\u89c4\u5219\u7684TXT\u6587\u4ef6\uff0c\u5b57\u7b26\u4e32\u5206\u5272\u65b9\u6cd5\u662f\u975e\u5e38\u9ad8\u6548\u7684\u8bfb\u53d6\u65b9\u5f0f\u3002\u9996\u5148\uff0c\u4f60\u9700\u8981\u6253\u5f00\u5e76\u8bfb\u53d6TXT\u6587\u4ef6\u7684\u5185\u5bb9\uff0c\u7136\u540e\u4f7f\u7528\u5b57\u7b26\u4e32\u7684<code>split()<\/code>\u65b9\u6cd5\u6839\u636e\u5206\u9694\u7b26\uff08\u5982\u7a7a\u683c\u3001\u6362\u884c\u7b26&#039;\\n&#039;\u3001\u9017\u53f7\u7b49\uff09\u6765\u5206\u5272\u6587\u672c\uff0c\u6700\u540e\u5c06\u5206\u5272\u540e\u5f97\u5230\u7684\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u6574\u6570\u6216\u6d6e\u70b9\u6570\u683c\u5f0f\u3002<\/p>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u6253\u5f00\u6587\u4ef6\u5e76\u8bfb\u53d6\u5185\u5bb9\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">with open(&#039;numbers.txt&#039;, &#039;r&#039;) as file:<\/p>\n<p>    contents = file.read()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u63a5\u4e0b\u6765\uff0c\u5047\u8bbe\u6570\u5b57\u4e4b\u95f4\u4ee5\u7a7a\u683c\u4e3a\u5206\u9694\u7b26\uff0c\u53ef\u4ee5\u8fd9\u6837\u5206\u5272\u5e76\u8f6c\u6362\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">numbers_list = [int(number) for number in contents.split()]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u6bb5\u4ee3\u7801\u4f1a\u521b\u5efa\u4e00\u4e2a\u5217\u8868\uff0c\u5217\u8868\u4e2d\u5305\u542b\u8f6c\u6362\u540e\u7684\u6574\u6570\u3002\u5982\u679cTXT\u6587\u4ef6\u4e2d\u7684\u6570\u5b57\u6709\u53ef\u80fd\u662f\u6d6e\u70b9\u6570\uff0c\u53ef\u4ee5\u5c06<code>int(number)<\/code>\u66ff\u6362\u4e3a<code>float(number)<\/code>\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u5339\u914d\u6570\u5b57<\/h3>\n<\/p>\n<p><p>\u5f53TXT\u6587\u4ef6\u4e2d\u7684\u6570\u5b57\u4e0e\u6587\u5b57\u6df7\u5408\uff0c\u4e14\u683c\u5f0f\u4e0d\u89c4\u5219\u65f6\uff0c\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u662f\u4e00\u4e2a\u975e\u5e38\u5f3a\u5927\u7684\u5de5\u5177\u3002\u6b63\u5219\u8868\u8fbe\u5f0f\u53ef\u4ee5\u51c6\u786e\u5730\u8bc6\u522b\u5b57\u7b26\u4e32\u4e2d\u7684\u6570\u5b57\uff0c\u65e0\u8bba\u5b83\u4eec\u7684\u683c\u5f0f\u5982\u4f55\u3002<\/p>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u5bfc\u5165<code>re<\/code>\u6a21\u5757\uff0c\u5e76\u8bfb\u53d6\u6587\u4ef6\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import re<\/p>\n<p>with open(&#039;mixed_content.txt&#039;, &#039;r&#039;) as file:<\/p>\n<p>    contents = file.read()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u63a5\u4e0b\u6765\uff0c\u4f7f\u7528<code>re.findall()<\/code>\u65b9\u6cd5\u627e\u5230\u6240\u6709\u7684\u6570\u5b57\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">numbers_list = re.findall(r&#039;\\b\\d+\\b&#039;, contents)<\/p>\n<p>numbers_list = [int(number) for number in numbers_list]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u91cc\u4f7f\u7528<code>\\b\\d+\\b<\/code>\u6b63\u5219\u8868\u8fbe\u5f0f\u5339\u914d\u6574\u6570\u6570\u5b57\u3002<code>\\b<\/code>\u662f\u5355\u8bcd\u8fb9\u754c\uff0c<code>\\d+<\/code>\u5339\u914d\u4e00\u4e2a\u6216\u591a\u4e2a\u6570\u5b57\u3002\u8fd9\u4f1a\u5f97\u5230\u4e00\u4e2a\u5b57\u7b26\u4e32\u5217\u8868\uff0c\u5176\u4e2d\u6bcf\u4e2a\u5b57\u7b26\u4e32\u90fd\u662f\u4ece\u6587\u672c\u4e2d\u63d0\u53d6\u7684\u6570\u5b57\uff0c\u7136\u540e\u5217\u8868\u901a\u8fc7\u5217\u8868\u89e3\u6790\u8f6c\u6362\u4e3a\u6574\u6570\u5217\u8868\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u4f7f\u7528\u6807\u51c6\u6587\u4ef6\u8bfb\u53d6<\/h3>\n<\/p>\n<p><p>\u5982\u679cTXT\u6587\u4ef6\u4e2d\u6bcf\u884c\u53ea\u5305\u542b\u5355\u4e2a\u6570\u5b57\uff0c\u6216\u8005\u6bcf\u884c\u7684\u6570\u5b57\u4f7f\u7528\u7279\u5b9a\u5206\u9694\u7b26\uff08\u5982\u9017\u53f7\uff09\u5206\u9694\uff0c\u90a3\u4e48\u53ef\u4ee5\u901a\u8fc7\u9010\u884c\u8bfb\u53d6\u6587\u4ef6\u7684\u65b9\u5f0f\u83b7\u53d6\u6570\u5b57\u3002<\/p>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u6253\u5f00\u5e76\u9010\u884c\u8bfb\u53d6\u6587\u4ef6\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">numbers_list = []<\/p>\n<p>with open(&#039;line_numbers.txt&#039;, &#039;r&#039;) as file:<\/p>\n<p>    for line in file:<\/p>\n<p>        # \u5047\u8bbe\u6bcf\u884c\u7684\u6570\u5b57\u7531\u9017\u53f7\u5206\u9694<\/p>\n<p>        split_numbers = line.split(&#039;,&#039;)<\/p>\n<p>        for number in split_numbers:<\/p>\n<p>            numbers_list.append(int(number.strip()))  # strip()\u65b9\u6cd5\u79fb\u9664\u53ef\u80fd\u5b58\u5728\u7684\u7a7a\u767d\u5b57\u7b26<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u5f0f\u9002\u5408\u4e8e\u6bcf\u884c\u683c\u5f0f\u56fa\u5b9a\u7684\u6587\u4ef6\uff0c\u901a\u8fc7\u9010\u884c\u5904\u7406\u53ef\u4ee5\u6709\u6548\u5730\u8bfb\u53d6\u5e76\u8f6c\u6362\u6bcf\u884c\u4e2d\u7684\u6570\u5b57\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u7ed3\u5408Numpy\u8bfb\u53d6<\/h3>\n<\/p>\n<p><p>\u5bf9\u4e8e\u9700\u8981\u9ad8\u6548\u6570\u5b66\u8fd0\u7b97\u7684\u573a\u666f\uff0c\u4f7f\u7528Numpy\u5e93\u8bfb\u53d6\u6570\u5b57\u5e76\u8f6c\u6362\u6210\u6570\u7ec4\uff08\u53ef\u4ee5\u89c6\u4e3a\u9ad8\u6548\u7684\u6570\u5b57\u5217\u8868\uff09\u662f\u4e00\u4e2a\u5f88\u597d\u7684\u9009\u62e9\u3002<\/p>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u786e\u4fdd\u5b89\u88c5\u4e86Numpy\u5e93\uff0c\u7136\u540e\u53ef\u4ee5\u4f7f\u7528<code>numpy.loadtxt()<\/code>\u51fd\u6570\u8bfb\u53d6\u6570\u5b57\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import numpy as np<\/p>\n<p>numbers_array = np.loadtxt(&#039;numbers.txt&#039;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e00\u65b9\u6cd5\u76f4\u63a5\u8fd4\u56de\u4e00\u4e2aNumpy\u6570\u7ec4\uff0c\u8fd9\u662f\u4e00\u4e2a\u9ad8\u6548\u5b58\u50a8\u548c\u5904\u7406\u5927\u91cf\u6570\u5b57\u7684\u6570\u636e\u7ed3\u6784\u3002<code>loadtxt<\/code>\u51fd\u6570\u63d0\u4f9b\u4e86\u8bb8\u591a\u53c2\u6570\u6765\u5904\u7406\u4e0d\u540c\u683c\u5f0f\u7684\u6570\u5b57\u6587\u4ef6\uff0c\u5305\u62ec\u6307\u5b9a\u5206\u9694\u7b26\u3001\u8df3\u8fc7\u7279\u5b9a\u884c\u7b49\u3002<\/p>\n<\/p>\n<p><h3>\u7ed3\u8bba<\/h3>\n<\/p>\n<p><p>\u6839\u636eTXT\u6587\u4ef6\u4e2d\u6570\u5b57\u7684\u683c\u5f0f\u548c\u5468\u56f4\u7684\u6587\u672c\u5185\u5bb9\uff0c\u53ef\u4ee5\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u8bfb\u53d6\u6570\u5b57\u5e76\u5c06\u5b83\u4eec\u8f6c\u6362\u6210\u5217\u8868\u6216\u6570\u7ec4\u3002\u5b57\u7b26\u4e32\u7684\u5206\u5272\u529f\u80fd\u9002\u5408\u5904\u7406\u6709\u660e\u786e\u5206\u9694\u7b26\u7684\u7b80\u5355\u6570\u5b57\u6587\u4ef6\uff0c\u6b63\u5219\u8868\u8fbe\u5f0f\u80fd\u591f\u5e94\u5bf9\u6570\u5b57\u548c\u6587\u5b57\u6df7\u5408\u7684\u590d\u6742\u573a\u666f\uff0c\u6807\u51c6\u6587\u4ef6\u8bfb\u53d6\u9010\u884c\u5904\u7406\u5219\u9002\u5408\u6bcf\u884c\u683c\u5f0f\u56fa\u5b9a\u7684\u6587\u4ef6\uff0c\u800cNumpy\u63d0\u4f9b\u4e86\u4e00\u79cd\u9488\u5bf9\u6570\u5b66\u8fd0\u7b97\u4f18\u5316\u7684\u9ad8\u6548\u6570\u636e\u7ed3\u6784\u3002\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u53ef\u4ee5\u5927\u5927\u63d0\u9ad8\u5904\u7406\u6587\u4ef6\u7684\u6548\u7387\u548c\u51c6\u786e\u5ea6\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p><strong>1. \u5982\u4f55\u7528Python\u8bfb\u53d6TXT\u6587\u4ef6\u4e2d\u7684\u6570\u5b57\uff1f<\/strong><br \/>\n\u8981\u8bfb\u53d6TXT\u6587\u4ef6\u4e2d\u7684\u6570\u5b57\uff0c\u53ef\u4ee5\u4f7f\u7528Python\u5185\u5efa\u7684open\u51fd\u6570\u4ee5\u53careadlines\u65b9\u6cd5\u3002\u5047\u8bbe\u6211\u4eec\u6709\u4e00\u4e2a\u540d\u4e3adata.txt\u7684\u6587\u4ef6\uff0c\u5176\u4e2d\u5305\u542b\u4e86\u4e00\u7cfb\u5217\u7684\u6570\u5b57\uff0c\u6bcf\u884c\u4e00\u4e2a\u6570\u5b57\u3002\u6211\u4eec\u53ef\u4ee5\u8fd9\u6837\u8bfb\u53d6\u5e76\u8f93\u51fa\u6587\u4ef6\u4e2d\u7684\u6570\u5b57\uff1a<\/p>\n<pre><code class=\"language-python\"># \u6253\u5f00\u6587\u4ef6\nfile = open(&#039;data.txt&#039;, &#039;r&#039;)\n\n# \u8bfb\u53d6\u6587\u4ef6\u5185\u5bb9\nlines = file.readlines()\n\n# \u5173\u95ed\u6587\u4ef6\nfile.close()\n\n# \u904d\u5386\u6bcf\u4e00\u884c\uff0c\u5e76\u5c06\u6570\u5b57\u5b58\u5165\u4e00\u4e2a\u5217\u8868\u4e2d\nnumbers = []\nfor line in lines:\n    # \u5c06\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u6570\u5b57\n    number = int(line.strip())\n    numbers.append(number)\n\n# \u6253\u5370\u5217\u8868\u4e2d\u7684\u6570\u5b57\nprint(numbers)\n<\/code><\/pre>\n<p><strong>2. \u5982\u4f55\u5c06\u8bfb\u53d6\u7684\u6570\u5b57\u8f6c\u6362\u6210\u5217\u8868\uff1f<\/strong><br \/>\n\u5728\u8bfb\u53d6TXT\u6587\u4ef6\u4e2d\u7684\u6570\u5b57\u540e\uff0c\u6211\u4eec\u53ef\u4ee5\u5c06\u5b83\u4eec\u8f6c\u6362\u6210\u4e00\u4e2a\u5217\u8868\uff0c\u4ee5\u65b9\u4fbf\u540e\u7eed\u7684\u5904\u7406\u3002\u5728\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u5df2\u7ecf\u5c06\u6bcf\u4e2a\u6570\u5b57\u5b58\u5165\u4e86\u4e00\u4e2a\u540d\u4e3anumbers\u7684\u5217\u8868\u4e2d\u3002\u5982\u679c\u4f60\u9700\u8981\u5c06\u8bfb\u53d6\u7684\u6570\u5b57\u8f6c\u6362\u6210\u4e00\u4e2a\u5217\u8868\uff0c\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528\u8fd9\u4e2anumbers\u5217\u8868\u3002<\/p>\n<pre><code class=\"language-python\"># \u5c06\u8bfb\u53d6\u7684\u6570\u5b57\u8f6c\u6362\u6210\u5217\u8868\nnumbers_list = numbers\n\n# \u6253\u5370\u8f6c\u6362\u540e\u7684\u5217\u8868\nprint(numbers_list)\n<\/code><\/pre>\n<p><strong>3. \u5982\u4f55\u5904\u7406\u4e2d\u6587\u5b57\u7b26\u7684TXT\u6587\u4ef6\u4e2d\u7684\u6570\u5b57\uff1f<\/strong><br \/>\n\u5982\u679cTXT\u6587\u4ef6\u4e2d\u7684\u6570\u5b57\u662f\u4e2d\u6587\u5b57\u7b26\uff0c\u6211\u4eec\u9700\u8981\u5148\u5c06\u8fd9\u4e9b\u5b57\u7b26\u8f6c\u6362\u6210\u76f8\u5e94\u7684\u6570\u5b57\u3002\u53ef\u4ee5\u4f7f\u7528Python\u5185\u7f6e\u7684unicodedata\u6a21\u5757\uff0c\u8be5\u6a21\u5757\u63d0\u4f9b\u4e86\u5c06Unicode\u5b57\u7b26\u8f6c\u6362\u6210\u6570\u5b57\u7684\u51fd\u6570\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u5904\u7406\u4e2d\u6587\u5b57\u7b26\u7684\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<pre><code class=\"language-python\">import unicodedata\n\n# \u6253\u5f00\u5305\u542b\u4e2d\u6587\u5b57\u7b26\u7684TXT\u6587\u4ef6\nfile = open(&#039;data.txt&#039;, &#039;r&#039;, encoding=&#039;utf-8&#039;)\n\n# \u8bfb\u53d6\u6587\u4ef6\u5185\u5bb9\nlines = file.readlines()\n\n# \u5173\u95ed\u6587\u4ef6\nfile.close()\n\n# \u904d\u5386\u6bcf\u4e00\u884c\uff0c\u5e76\u5c06\u4e2d\u6587\u5b57\u7b26\u8f6c\u6362\u4e3a\u6570\u5b57\u5b58\u5165\u5217\u8868\u4e2d\nnumbers = []\nfor line in lines:\n    number = unicodedata.numeric(line.strip())\n    numbers.append(number)\n\n# \u5c06\u6570\u5b57\u8f6c\u6362\u6210\u5217\u8868\nnumbers_list = numbers\n\n# \u6253\u5370\u8f6c\u6362\u540e\u7684\u5217\u8868\nprint(numbers_list)\n<\/code><\/pre>\n<p>\u5728\u8fd9\u4e2a\u4ee3\u7801\u7247\u6bb5\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528\u4e86<code>encoding=&#039;utf-8&#039;<\/code>\u53c2\u6570\u6765\u6307\u5b9a\u6253\u5f00\u6587\u4ef6\u65f6\u6240\u4f7f\u7528\u7684\u7f16\u7801\uff0c\u4ee5\u4fdd\u8bc1\u80fd\u6b63\u786e\u5904\u7406\u4e2d\u6587\u5b57\u7b26\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u53ef\u4ee5\u901a\u8fc7\u51e0\u79cd\u7b80\u6d01\u7684\u65b9\u6cd5\u8bfb\u53d6TXT\u6587\u4ef6\u4e2d\u7684\u6570\u5b57\uff0c\u5e76\u5c06\u5176\u8f6c\u6362\u6210\u5217\u8868\u3002\u6838\u5fc3\u65b9\u6cd5\u5305\u62ec\u4f7f\u7528\u6807\u51c6\u6587\u4ef6\u8bfb\u53d6\u3001\u6b63\u5219 [&hellip;]","protected":false},"author":3,"featured_media":175546,"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\/175540"}],"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=175540"}],"version-history":[{"count":0,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/175540\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/175546"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=175540"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=175540"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=175540"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}