{"id":1142203,"date":"2025-01-08T22:37:47","date_gmt":"2025-01-08T14:37:47","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1142203.html"},"modified":"2025-01-08T22:37:49","modified_gmt":"2025-01-08T14:37:49","slug":"python%e5%a6%82%e4%bd%95%e5%b0%86%e5%ad%97%e7%ac%a6%e4%b8%b2%e8%bd%ac%e6%8d%a2%e6%88%90%e6%95%b0%e7%bb%84","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1142203.html","title":{"rendered":"python\u5982\u4f55\u5c06\u5b57\u7b26\u4e32\u8f6c\u6362\u6210\u6570\u7ec4"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24180452\/ead3cbed-16f0-40c3-b843-e6ff0012dda1.webp\" alt=\"python\u5982\u4f55\u5c06\u5b57\u7b26\u4e32\u8f6c\u6362\u6210\u6570\u7ec4\" \/><\/p>\n<p><p> <strong>Python\u4e2d\u5c06\u5b57\u7b26\u4e32\u8f6c\u6362\u6210\u6570\u7ec4\u7684\u65b9\u6cd5<\/strong>\u6709\u591a\u79cd\uff0c<strong>\u5e38\u89c1\u7684\u65b9\u6cd5\u5305\u62ec\u4f7f\u7528split()\u65b9\u6cd5\u3001list()\u51fd\u6570\u3001\u6b63\u5219\u8868\u8fbe\u5f0f\u7b49<\/strong>\u3002\u5176\u4e2d\uff0c\u6700\u5e38\u7528\u7684\u65b9\u6cd5\u662f\u4f7f\u7528split()\u65b9\u6cd5\u3002\u8fd9\u4e2a\u65b9\u6cd5\u80fd\u6839\u636e\u6307\u5b9a\u7684\u5206\u9694\u7b26\u5c06\u5b57\u7b26\u4e32\u5206\u5272\u6210\u591a\u4e2a\u5b50\u5b57\u7b26\u4e32\uff0c\u5e76\u8fd4\u56de\u4e00\u4e2a\u5305\u542b\u8fd9\u4e9b\u5b50\u5b57\u7b26\u4e32\u7684\u5217\u8868\u3002\u5047\u8bbe\u4f60\u6709\u4e00\u4e2a\u7528\u9017\u53f7\u5206\u9694\u7684\u5b57\u7b26\u4e32\uff0c\u901a\u8fc7\u8c03\u7528split(&#39;,&#39;)\u65b9\u6cd5\uff0c\u4f60\u5c31\u80fd\u8f7b\u677e\u5730\u5c06\u5176\u8f6c\u6362\u6210\u6570\u7ec4\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528split()\u65b9\u6cd5<\/h3>\n<\/p>\n<p><h4>1. \u57fa\u672c\u7528\u6cd5<\/h4>\n<\/p>\n<p><p>\u4f7f\u7528split()\u65b9\u6cd5\u662f\u5c06\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u6570\u7ec4\u6700\u7b80\u5355\u3001\u6700\u5e38\u89c1\u7684\u65b9\u6cd5\u4e4b\u4e00\u3002split()\u65b9\u6cd5\u6839\u636e\u6307\u5b9a\u7684\u5206\u9694\u7b26\u5c06\u5b57\u7b26\u4e32\u5206\u5272\u6210\u591a\u4e2a\u5b50\u5b57\u7b26\u4e32\uff0c\u5e76\u8fd4\u56de\u4e00\u4e2a\u5305\u542b\u8fd9\u4e9b\u5b50\u5b57\u7b26\u4e32\u7684\u5217\u8868\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">string = &quot;apple,banana,orange&quot;<\/p>\n<p>array = string.split(&#39;,&#39;)<\/p>\n<p>print(array)  # \u8f93\u51fa [&#39;apple&#39;, &#39;banana&#39;, &#39;orange&#39;]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u5b57\u7b26\u4e32\u88ab\u9017\u53f7\u5206\u9694\u6210\u4e09\u4e2a\u90e8\u5206\uff0c\u6700\u7ec8\u5f62\u6210\u4e00\u4e2a\u5305\u542b\u8fd9\u4e09\u90e8\u5206\u7684\u5217\u8868\u3002<\/p>\n<\/p>\n<p><h4>2. \u5206\u9694\u7b26\u7684\u9009\u62e9<\/h4>\n<\/p>\n<p><p>split()\u65b9\u6cd5\u7684\u5206\u9694\u7b26\u53ef\u4ee5\u662f\u4efb\u4f55\u5b57\u7b26\u6216\u8005\u5b57\u7b26\u4e32\uff0c\u751a\u81f3\u53ef\u4ee5\u662f\u7a7a\u683c\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">string = &quot;apple banana orange&quot;<\/p>\n<p>array = string.split(&#39; &#39;)<\/p>\n<p>print(array)  # \u8f93\u51fa [&#39;apple&#39;, &#39;banana&#39;, &#39;orange&#39;]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528list()\u51fd\u6570<\/h3>\n<\/p>\n<p><h4>1. \u57fa\u672c\u7528\u6cd5<\/h4>\n<\/p>\n<p><p>\u5982\u679c\u4f60\u60f3\u5c06\u4e00\u4e2a\u5b57\u7b26\u4e32\u7684\u6bcf\u4e2a\u5b57\u7b26\u4f5c\u4e3a\u6570\u7ec4\u7684\u4e00\u4e2a\u5143\u7d20\uff0c\u53ef\u4ee5\u4f7f\u7528list()\u51fd\u6570\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">string = &quot;hello&quot;<\/p>\n<p>array = list(string)<\/p>\n<p>print(array)  # \u8f93\u51fa [&#39;h&#39;, &#39;e&#39;, &#39;l&#39;, &#39;l&#39;, &#39;o&#39;]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u6ce8\u610f\u4e8b\u9879<\/h4>\n<\/p>\n<p><p>\u4f7f\u7528list()\u51fd\u6570\u65f6\uff0c\u8981\u6ce8\u610f\u5b83\u4f1a\u5c06\u5b57\u7b26\u4e32\u4e2d\u7684\u6bcf\u4e2a\u5b57\u7b26\u4f5c\u4e3a\u5355\u72ec\u7684\u5143\u7d20\u5206\u5272\u5230\u6570\u7ec4\u4e2d\uff0c\u56e0\u6b64\u5bf9\u4e8e\u8f83\u957f\u7684\u5b57\u7b26\u4e32\uff0c\u751f\u6210\u7684\u6570\u7ec4\u4f1a\u5f88\u5927\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f<\/h3>\n<\/p>\n<p><h4>1. \u57fa\u672c\u7528\u6cd5<\/h4>\n<\/p>\n<p><p>\u5728\u4e00\u4e9b\u590d\u6742\u7684\u5206\u5272\u9700\u6c42\u4e2d\uff0csplit()\u65b9\u6cd5\u53ef\u80fd\u65e0\u6cd5\u6ee1\u8db3\u9700\u6c42\uff0c\u8fd9\u65f6\u53ef\u4ee5\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import re<\/p>\n<p>string = &quot;apple, banana; orange|grape&quot;<\/p>\n<p>array = re.split(r&#39;[;,\\s|]+&#39;, string)<\/p>\n<p>print(array)  # \u8f93\u51fa [&#39;apple&#39;, &#39;banana&#39;, &#39;orange&#39;, &#39;grape&#39;]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u5b57\u7b26\u4e32\u88ab\u9017\u53f7\u3001\u5206\u53f7\u3001\u7a7a\u683c\u548c\u7ad6\u7ebf\u5206\u5272\u6210\u591a\u4e2a\u5b50\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<p><h4>2. \u9ad8\u7ea7\u7528\u6cd5<\/h4>\n<\/p>\n<p><p>\u6b63\u5219\u8868\u8fbe\u5f0f\u63d0\u4f9b\u4e86\u5f3a\u5927\u7684\u5b57\u7b26\u4e32\u5904\u7406\u80fd\u529b\uff0c\u53ef\u4ee5\u6839\u636e\u590d\u6742\u7684\u6a21\u5f0f\u8fdb\u884c\u5b57\u7b26\u4e32\u5206\u5272\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">string = &quot;word1, word2; word3|word4&quot;<\/p>\n<p>pattern = r&#39;[;,|]+&#39;<\/p>\n<p>array = re.split(pattern, string)<\/p>\n<p>print(array)  # \u8f93\u51fa [&#39;word1&#39;, &#39;word2&#39;, &#39;word3&#39;, &#39;word4&#39;]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u4f7f\u7528json.loads()\u65b9\u6cd5<\/h3>\n<\/p>\n<p><h4>1. \u57fa\u672c\u7528\u6cd5<\/h4>\n<\/p>\n<p><p>\u5bf9\u4e8e\u4e00\u4e9b\u5305\u542bJSON\u683c\u5f0f\u7684\u5b57\u7b26\u4e32\uff0c\u53ef\u4ee5\u4f7f\u7528json\u6a21\u5757\u5c06\u5176\u8f6c\u6362\u4e3a\u6570\u7ec4\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import json<\/p>\n<p>string = &#39;[&quot;apple&quot;, &quot;banana&quot;, &quot;orange&quot;]&#39;<\/p>\n<p>array = json.loads(string)<\/p>\n<p>print(array)  # \u8f93\u51fa [&#39;apple&#39;, &#39;banana&#39;, &#39;orange&#39;]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u6ce8\u610f\u4e8b\u9879<\/h4>\n<\/p>\n<p><p>\u4f7f\u7528json.loads()\u65b9\u6cd5\u65f6\uff0c\u8981\u786e\u4fdd\u5b57\u7b26\u4e32\u7684\u683c\u5f0f\u662f\u5408\u6cd5\u7684JSON\u683c\u5f0f\uff0c\u5426\u5219\u4f1a\u629b\u51fa\u5f02\u5e38\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u4f7f\u7528ast.literal_eval()\u65b9\u6cd5<\/h3>\n<\/p>\n<p><h4>1. \u57fa\u672c\u7528\u6cd5<\/h4>\n<\/p>\n<p><p>ast\u6a21\u5757\u4e2d\u7684literal_eval()\u65b9\u6cd5\u4e5f\u53ef\u4ee5\u5c06\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u6570\u7ec4\uff0c\u7279\u522b\u9002\u7528\u4e8e\u5305\u542bPython\u5b57\u9762\u91cf\u8bed\u6cd5\u7684\u5b57\u7b26\u4e32\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import ast<\/p>\n<p>string = &quot;[&#39;apple&#39;, &#39;banana&#39;, &#39;orange&#39;]&quot;<\/p>\n<p>array = ast.literal_eval(string)<\/p>\n<p>print(array)  # \u8f93\u51fa [&#39;apple&#39;, &#39;banana&#39;, &#39;orange&#39;]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u5b89\u5168\u6027<\/h4>\n<\/p>\n<p><p>literal_eval()\u65b9\u6cd5\u6bd4eval()\u65b9\u6cd5\u66f4\u5b89\u5168\uff0c\u56e0\u4e3a\u5b83\u53ea\u4f1a\u89e3\u6790\u5408\u6cd5\u7684Python\u5b57\u9762\u91cf\u8bed\u6cd5\uff0c\u4e0d\u4f1a\u6267\u884c\u4efb\u610f\u4ee3\u7801\u3002<\/p>\n<\/p>\n<p><h3>\u516d\u3001\u4f7f\u7528\u5176\u4ed6\u5185\u7f6e\u65b9\u6cd5<\/h3>\n<\/p>\n<p><h4>1. map()\u51fd\u6570<\/h4>\n<\/p>\n<p><p>map()\u51fd\u6570\u53ef\u4ee5\u5c06\u5b57\u7b26\u4e32\u4e2d\u7684\u6bcf\u4e2a\u5143\u7d20\u8fdb\u884c\u5904\u7406\uff0c\u7136\u540e\u8fd4\u56de\u5904\u7406\u540e\u7684\u6570\u7ec4\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">string = &quot;1,2,3,4,5&quot;<\/p>\n<p>array = list(map(int, string.split(&#39;,&#39;)))<\/p>\n<p>print(array)  # \u8f93\u51fa [1, 2, 3, 4, 5]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. list comprehensions<\/h4>\n<\/p>\n<p><p>\u5217\u8868\u63a8\u5bfc\u5f0f\u4e5f\u53ef\u4ee5\u7528\u4e8e\u5c06\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u6570\u7ec4\uff0c\u5e76\u5bf9\u6bcf\u4e2a\u5143\u7d20\u8fdb\u884c\u5904\u7406\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">string = &quot;1,2,3,4,5&quot;<\/p>\n<p>array = [int(x) for x in string.split(&#39;,&#39;)]<\/p>\n<p>print(array)  # \u8f93\u51fa [1, 2, 3, 4, 5]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e03\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u5c06\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u6570\u7ec4\u5728Python\u4e2d\u6709\u591a\u79cd\u65b9\u6cd5\uff0c<strong>\u5e38\u89c1\u7684\u65b9\u6cd5\u5305\u62ec\u4f7f\u7528split()\u65b9\u6cd5\u3001list()\u51fd\u6570\u3001\u6b63\u5219\u8868\u8fbe\u5f0f\u3001json.loads()\u65b9\u6cd5\u3001ast.literal_eval()\u65b9\u6cd5\u7b49<\/strong>\u3002\u6bcf\u79cd\u65b9\u6cd5\u90fd\u6709\u5176\u9002\u7528\u7684\u573a\u666f\u548c\u7279\u70b9\u3002<strong>\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u53ef\u4ee5\u63d0\u9ad8\u4ee3\u7801\u7684\u6548\u7387\u548c\u53ef\u8bfb\u6027<\/strong>\u3002\u4f8b\u5982\uff0c\u5bf9\u4e8e\u7b80\u5355\u7684\u5206\u5272\u4efb\u52a1\uff0c\u4f7f\u7528split()\u65b9\u6cd5\u662f\u6700\u5e38\u89c1\u548c\u7b80\u4fbf\u7684\uff1b\u800c\u5bf9\u4e8e\u590d\u6742\u7684\u5206\u5272\u9700\u6c42\uff0c\u53ef\u4ee5\u8003\u8651\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\uff1b\u5bf9\u4e8e\u5305\u542bJSON\u683c\u5f0f\u7684\u5b57\u7b26\u4e32\uff0c\u53ef\u4ee5\u4f7f\u7528json.loads()\u65b9\u6cd5\uff1b\u5bf9\u4e8e\u5305\u542bPython\u5b57\u9762\u91cf\u8bed\u6cd5\u7684\u5b57\u7b26\u4e32\uff0c\u53ef\u4ee5\u4f7f\u7528ast.literal_eval()\u65b9\u6cd5\u3002\u5e0c\u671b\u8fd9\u7bc7\u6587\u7ae0\u80fd\u591f\u5e2e\u52a9\u4f60\u66f4\u597d\u5730\u7406\u89e3\u548c\u5e94\u7528\u8fd9\u4e9b\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u5c06\u5b57\u7b26\u4e32\u5206\u5272\u6210\u6570\u7ec4\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u5185\u7f6e\u7684<code>split()<\/code>\u65b9\u6cd5\u5c06\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u6570\u7ec4\u3002\u8be5\u65b9\u6cd5\u4f1a\u6839\u636e\u6307\u5b9a\u7684\u5206\u9694\u7b26\u5c06\u5b57\u7b26\u4e32\u5206\u5272\u6210\u591a\u4e2a\u90e8\u5206\uff0c\u8fd4\u56de\u4e00\u4e2a\u5305\u542b\u8fd9\u4e9b\u90e8\u5206\u7684\u5217\u8868\u3002\u4f8b\u5982\uff0c<code>&quot;hello world&quot;.split()<\/code>\u4f1a\u8fd4\u56de<code>[&#39;hello&#39;, &#39;world&#39;]<\/code>\u3002\u5982\u679c\u9700\u8981\u6839\u636e\u7279\u5b9a\u7684\u5b57\u7b26\u8fdb\u884c\u5206\u5272\uff0c\u53ef\u4ee5\u4f20\u5165\u8be5\u5b57\u7b26\u4f5c\u4e3a\u53c2\u6570\uff0c\u4f8b\u5982<code>&quot;apple,banana,cherry&quot;.split(&#39;,&#39;)<\/code>\u5c06\u8fd4\u56de<code>[&#39;apple&#39;, &#39;banana&#39;, &#39;cherry&#39;]<\/code>\u3002<\/p>\n<p><strong>\u662f\u5426\u53ef\u4ee5\u5c06\u5b57\u7b26\u4e32\u4e2d\u7684\u6bcf\u4e2a\u5b57\u7b26\u8f6c\u6362\u4e3a\u6570\u7ec4\uff1f<\/strong><br \/>\u53ef\u4ee5\u4f7f\u7528<code>list()<\/code>\u51fd\u6570\u5c06\u5b57\u7b26\u4e32\u4e2d\u7684\u6bcf\u4e2a\u5b57\u7b26\u8f6c\u6362\u4e3a\u6570\u7ec4\u3002\u4f8b\u5982\uff0c<code>list(&quot;hello&quot;)<\/code>\u5c06\u8fd4\u56de<code>[&#39;h&#39;, &#39;e&#39;, &#39;l&#39;, &#39;l&#39;, &#39;o&#39;]<\/code>\u3002\u8fd9\u79cd\u65b9\u6cd5\u9002\u7528\u4e8e\u9700\u8981\u5bf9\u5b57\u7b26\u4e32\u4e2d\u7684\u5355\u4e2a\u5b57\u7b26\u8fdb\u884c\u5904\u7406\u7684\u60c5\u51b5\u3002<\/p>\n<p><strong>\u5982\u4f55\u5904\u7406\u5305\u542b\u7a7a\u683c\u6216\u7279\u5b9a\u5b57\u7b26\u7684\u5b57\u7b26\u4e32\u4ee5\u8f6c\u6362\u4e3a\u6570\u7ec4\uff1f<\/strong><br \/>\u5728\u5904\u7406\u5305\u542b\u7a7a\u683c\u6216\u7279\u5b9a\u5b57\u7b26\u7684\u5b57\u7b26\u4e32\u65f6\uff0c\u53ef\u4ee5\u5728\u4f7f\u7528<code>split()<\/code>\u65b9\u6cd5\u65f6\u6307\u5b9a\u53c2\u6570\u6765\u53bb\u9664\u7a7a\u767d\u6216\u7279\u5b9a\u5b57\u7b26\u3002\u4f8b\u5982\uff0c\u4f7f\u7528<code>strip()<\/code>\u65b9\u6cd5\u53bb\u9664\u5b57\u7b26\u4e32\u4e24\u7aef\u7684\u7a7a\u767d\u540e\u518d\u8fdb\u884c\u5206\u5272\uff0c\u53ef\u4ee5\u786e\u4fdd\u8fd4\u56de\u7684\u6570\u7ec4\u4e2d\u6ca1\u6709\u591a\u4f59\u7684\u7a7a\u5b57\u7b26\u4e32\u3002\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a  <\/p>\n<pre><code class=\"language-python\">string = &quot;  apple, banana , cherry  &quot;\narray = [item.strip() for item in string.split(&#39;,&#39;)]\n<\/code><\/pre>\n<p>\u8fd9\u5c06\u8fd4\u56de<code>[&#39;apple&#39;, &#39;banana&#39;, &#39;cherry&#39;]<\/code>\uff0c\u786e\u4fdd\u6bcf\u4e2a\u5143\u7d20\u90fd\u6ca1\u6709\u524d\u540e\u7a7a\u683c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u4e2d\u5c06\u5b57\u7b26\u4e32\u8f6c\u6362\u6210\u6570\u7ec4\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u5e38\u89c1\u7684\u65b9\u6cd5\u5305\u62ec\u4f7f\u7528split()\u65b9\u6cd5\u3001list()\u51fd\u6570\u3001\u6b63\u5219\u8868\u8fbe [&hellip;]","protected":false},"author":3,"featured_media":1142205,"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\/1142203"}],"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=1142203"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1142203\/revisions"}],"predecessor-version":[{"id":1142206,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1142203\/revisions\/1142206"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1142205"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1142203"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1142203"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1142203"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}