{"id":275227,"date":"2024-05-16T14:22:30","date_gmt":"2024-05-16T06:22:30","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/275227.html"},"modified":"2024-05-16T14:22:39","modified_gmt":"2024-05-16T06:22:39","slug":"java-%e7%bc%96%e7%a8%8b%e9%a1%b9%e7%9b%ae%e7%9a%84-split-%e6%96%b9%e6%b3%95%e6%80%8e%e4%b9%88%e7%94%a8","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/275227.html","title":{"rendered":"java \u7f16\u7a0b\u9879\u76ee\u7684 split \u65b9\u6cd5\u600e\u4e48\u7528"},"content":{"rendered":"<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24200255\/5f9bbc3e-a8ee-4ded-bfcf-0148331b104c.webp\" alt=\"java \u7f16\u7a0b\u9879\u76ee\u7684 split \u65b9\u6cd5\u600e\u4e48\u7528\" \/><\/p>\n<p><p>Java\u7f16\u7a0b\u8bed\u8a00\u4e2d\u7684<code>split<\/code>\u65b9\u6cd5\u662f\u7528\u4e8e\u5c06\u5b57\u7b26\u4e32\u5206\u5272\u6210\u5b57\u7b26\u4e32\u6570\u7ec4\u7684\u4e00\u4e2a\u975e\u5e38\u5b9e\u7528\u7684\u5de5\u5177\u3002<strong>\u4f7f\u7528\u8fd9\u4e2a\u65b9\u6cd5\uff0c\u4f60\u53ef\u4ee5\u6839\u636e\u4e00\u4e2a\u6b63\u5219\u8868\u8fbe\u5f0f\u6765\u51b3\u5b9a\u5982\u4f55\u5206\u5272\u5b57\u7b26\u4e32\u3001\u4f7f\u4ee3\u7801\u66f4\u6e05\u6670\u548c\u6613\u7ef4\u62a4<\/strong>\u3002\u5728\u5b9e\u9645\u7684Java\u9879\u76ee\u5f00\u53d1\u4e2d\uff0c\u5bf9\u6570\u636e\u7684\u5904\u7406\u7ecf\u5e38\u9700\u8981\u5bf9\u5b57\u7b26\u4e32\u8fdb\u884c\u5206\u5272\uff0c\u8fd9\u65f6<code>split<\/code>\u65b9\u6cd5\u7684\u4f5c\u7528\u5c31\u663e\u5f97\u5c24\u4e3a\u91cd\u8981\u3002\u4f8b\u5982\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7\u7a7a\u683c\u5c06\u4e00\u53e5\u8bdd\u5206\u5272\u6210\u5355\u8bcd\uff0c\u6216\u8005\u57fa\u4e8e\u9017\u53f7\u5206\u5272CSV\u6587\u4ef6\u4e2d\u7684\u6570\u636e\u3002<\/p>\n<\/p>\n<p><p>\u6700\u5178\u578b\u7684\u5e94\u7528\u573a\u666f\u662f\u5bf9\u7528\u6237\u8f93\u5165\u6216\u8005\u6587\u4ef6\u8bfb\u53d6\u5f97\u5230\u7684\u5b57\u7b26\u4e32\u8fdb\u884c\u89e3\u6790\u548c\u5904\u7406\u3002\u6bd4\u5982\uff0c\u5904\u7406\u4e00\u4efd\u7531\u9017\u53f7\u5206\u9694\u7684\u5458\u5de5\u540d\u5355\uff0c\u901a\u8fc7<code>split<\/code>\u65b9\u6cd5\u53ef\u4ee5\u5f88\u5bb9\u6613\u5730\u5c06\u6bcf\u4e2a\u5458\u5de5\u540d\u5206\u5f00\uff0c\u5b58\u5165\u5b57\u7b26\u4e32\u6570\u7ec4\uff0c\u8fdb\u800c\u8fdb\u884c\u76f8\u5e94\u7684\u903b\u8f91\u5904\u7406\u3002<\/p>\n<\/p>\n<p><h2>\u4e00\u3001SPLIT \u65b9\u6cd5\u7684\u57fa\u672c\u4f7f\u7528<\/h2>\n<\/p>\n<p><p><strong>Java\u4e2d<code>split<\/code>\u65b9\u6cd5\u7684\u57fa\u672c\u8bed\u6cd5\u5982\u4e0b\uff1a<\/strong><\/p>\n<\/p>\n<p><pre><code class=\"language-java\">public String[] split(String regex, int limit)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5176\u4e2d\uff0c<code>regex<\/code>\u662f\u6b63\u5219\u8868\u8fbe\u5f0f\uff0c\u7528\u4e8e\u6307\u5b9a\u5206\u5272\u7b26\uff1b<code>limit<\/code>\u662f\u4e00\u4e2a\u53ef\u9009\u53c2\u6570\uff0c\u7528\u6765\u63a7\u5236\u5206\u5272\u7684\u6b21\u6570\u6216\u7ed3\u679c\u6570\u7ec4\u7684\u957f\u5ea6\u3002<\/p>\n<\/p>\n<p><p><strong>\u521d\u5b66\u8005\u901a\u5e38\u5f00\u59cb\u4e8e\u6700\u7b80\u5355\u7684\u7528\u6cd5\uff0c\u9010\u6b65\u6df1\u5165\u63a2\u7d22<code>split<\/code>\u65b9\u6cd5\u7684\u9ad8\u7ea7\u7528\u6cd5\u3002<\/strong> <\/p>\n<\/p>\n<p><h3>\u7b80\u5355\u5b57\u7b26\u4e32\u5206\u5272<\/h3>\n<\/p>\n<p><p>\u4f8b\u5982\uff0c\u6309\u7a7a\u683c\u5206\u5272\u4e00\u4e2a\u5b57\u7b26\u4e32\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-java\">String sentence = &quot;Java is fun&quot;;<\/p>\n<p>String[] words = sentence.split(&quot; &quot;);<\/p>\n<p>for(String word : words) {<\/p>\n<p>    System.out.println(word);<\/p>\n<p>}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u6bb5\u4ee3\u7801\u4f1a\u5c06\u5b57\u7b26\u4e32\u201cJava is fun\u201d\u5206\u5272\u6210\u201cJava\u201d\u3001\u201cis\u201d\u548c\u201cfun\u201d\u4e09\u4e2a\u90e8\u5206\uff0c\u5e76\u6253\u5370\u8f93\u51fa\u3002<\/p>\n<\/p>\n<p><h3>\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f<\/h3>\n<\/p>\n<p><p>\u5f53\u4f60\u9700\u8981\u6309\u7167\u66f4\u590d\u6742\u7684\u89c4\u5219\u5206\u5272\u5b57\u7b26\u4e32\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-java\">String data = &quot;John:25,Susan:30,Bob:35&quot;;<\/p>\n<p>String[] entries = data.split(&quot;,&quot;);<\/p>\n<p>for(String entry : entries) {<\/p>\n<p>    String[] parts = entry.split(&quot;:&quot;);<\/p>\n<p>    System.out.println(&quot;Name: &quot; + parts[0] + &quot;, Age: &quot; + parts[1]);<\/p>\n<p>}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u91cc\uff0c\u6211\u4eec\u9996\u5148\u6309\u7167\u9017\u53f7\u5206\u5272\u5b57\u7b26\u4e32\uff0c\u7136\u540e\u518d\u5bf9\u6bcf\u4e00\u9879\u6309\u7167\u5192\u53f7\u8fdb\u4e00\u6b65\u5206\u5272\u3002\u8fd9\u79cd\u65b9\u6cd5\u975e\u5e38\u9002\u5408\u5904\u7406\u952e\u503c\u5bf9\u7c7b\u578b\u7684\u6570\u636e\u3002<\/p>\n<\/p>\n<p><h2>\u4e8c\u3001\u7406\u89e3\u9650\u5236\u53c2\u6570<\/h2>\n<\/p>\n<p><p>\u5728\u4f7f\u7528<code>split<\/code>\u65b9\u6cd5\u65f6\uff0c\u4e86\u89e3\u5982\u4f55\u5229\u7528<code>limit<\/code>\u53c2\u6570\u53ef\u4ee5\u63d0\u4f9b\u66f4\u5927\u7684\u7075\u6d3b\u6027\u3002<\/p>\n<\/p>\n<p><h3>\u63a7\u5236\u5206\u5272\u6570\u91cf<\/h3>\n<\/p>\n<p><p><code>limit<\/code>\u53c2\u6570\u7684\u4e00\u4e2a\u91cd\u8981\u7528\u9014\u662f\u9650\u5236\u7ed3\u679c\u6570\u7ec4\u7684\u5927\u5c0f\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-java\">String text = &quot;Java-is-very-much-fun&quot;;<\/p>\n<p>String[] parts = text.split(&quot;-&quot;, 3);<\/p>\n<p>for(String part : parts) {<\/p>\n<p>    System.out.println(part);<\/p>\n<p>}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u5b57\u7b26\u4e32\u5c06\u88ab\u9650\u5236\u53ea\u5206\u5272\u524d\u4e24\u6b21\uff0c\u56e0\u6b64\u7ed3\u679c\u6570\u7ec4\u4e2d\u5c06\u53ea\u5305\u542b\u4e09\u4e2a\u5143\u7d20\u3002<\/p>\n<\/p>\n<p><h3>\u9884\u9632\u7a7a\u5b57\u7b26\u4e32\u7ed3\u679c<\/h3>\n<\/p>\n<p><p>\u53e6\u4e00\u4e2a\u5e38\u89c1\u7684<code>limit<\/code>\u7528\u6cd5\u662f\u901a\u8fc7\u4f7f\u7528\u975e\u8d1f\u503c\u9632\u6b62\u7a7a\u5b57\u7b26\u4e32\u7ed3\u679c\u3002\u7279\u522b\u662f\u5728\u5904\u7406\u4ee5\u5206\u9694\u7b26\u7ed3\u5c3e\u7684\u5b57\u7b26\u4e32\u65f6\u7279\u522b\u6709\u7528\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-java\">String data = &quot;Java::is::fun&quot;;<\/p>\n<p>String[] elements = data.split(&quot;:&quot;, -1);<\/p>\n<p>System.out.println(&quot;Elements count: &quot; + elements.length);<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u91cc\uff0c\u4f20\u9012<code>-1<\/code>\u4f5c\u4e3a<code>limit<\/code>\u53c2\u6570\u786e\u4fdd\u4e86\u5206\u5272\u5668\u80fd\u591f\u8bc6\u522b\u5c3e\u90e8\u7684\u7a7a\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<p><h2>\u4e09\u3001\u9ad8\u7ea7\u7528\u6cd5\u548c\u6280\u5de7<\/h2>\n<\/p>\n<p><p>\u638c\u63e1<code>split<\/code>\u65b9\u6cd5\u7684\u57fa\u7840\u77e5\u8bc6\u540e\uff0c\u53ef\u4ee5\u8fdb\u4e00\u6b65\u63a2\u7d22\u4e00\u4e9b\u9ad8\u7ea7\u7528\u6cd5\u548c\u6280\u5de7\uff0c\u4ee5\u89e3\u51b3\u66f4\u590d\u6742\u7684\u95ee\u9898\u3002<\/p>\n<\/p>\n<p><h3>\u5904\u7406\u7279\u6b8a\u5b57\u7b26<\/h3>\n<\/p>\n<p><p>\u5728\u4f7f\u7528\u7279\u6b8a\u5b57\u7b26\u4f5c\u4e3a\u5206\u5272\u7b26\u65f6\uff0c\u9700\u8981\u5bf9\u5176\u8fdb\u884c\u8f6c\u4e49\uff0c\u56e0\u4e3a\u5b83\u4eec\u5728\u6b63\u5219\u8868\u8fbe\u5f0f\u4e2d\u6709\u7279\u6b8a\u542b\u4e49\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-java\">String data = &quot;Java|is|fun&quot;;<\/p>\n<p>String[] items = data.split(&quot;\\\\|&quot;);<\/p>\n<p>for(String item : items) {<\/p>\n<p>    System.out.println(item);<\/p>\n<p>}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u91cc\uff0c<code>|<\/code>\u662f\u6b63\u5219\u8868\u8fbe\u5f0f\u4e2d\u7684\u7279\u6b8a\u5b57\u7b26\uff0c\u7528\u4e8e\u8868\u793a\u903b\u8f91\u201c\u6216\u201d\uff0c\u56e0\u6b64\u5fc5\u987b\u4f7f\u7528<code>\\<\/code>\u8fdb\u884c\u8f6c\u4e49\u3002<\/p>\n<\/p>\n<p><h3>\u590d\u6742\u7684\u5206\u5272\u573a\u666f<\/h3>\n<\/p>\n<p><p>\u6709\u65f6\u5019\uff0c\u4f60\u53ef\u80fd\u9700\u8981\u6839\u636e\u591a\u4e2a\u6761\u4ef6\u6765\u5206\u5272\u5b57\u7b26\u4e32\uff0c\u8fd9\u65f6\u53ef\u4ee5\u901a\u8fc7\u201c|\u201d\u64cd\u4f5c\u7b26\u7ed3\u5408\u591a\u4e2a\u89c4\u5219\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-java\">String text = &quot;Java, Python. PHP;Perl&quot;;<\/p>\n<p>String[] languages = text.split(&quot;,|\\\\.|;| &quot;);<\/p>\n<p>for(String lang : languages) {<\/p>\n<p>    System.out.println(lang);<\/p>\n<p>}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528\u4e86\u9017\u53f7\u3001\u70b9\u3001\u5206\u53f7\u548c\u7a7a\u683c\u4f5c\u4e3a\u5206\u5272\u7b26\uff0c\u5c55\u793a\u4e86\u5982\u4f55\u5904\u7406\u66f4\u590d\u6742\u7684\u5206\u5272\u573a\u666f\u3002<\/p>\n<\/p>\n<p><h2>\u56db\u3001\u603b\u7ed3<\/h2>\n<\/p>\n<p><p><code>split<\/code>\u65b9\u6cd5\u662fJava\u7f16\u7a0b\u4e2d\u5904\u7406\u5b57\u7b26\u4e32\u65f6\u4e0d\u53ef\u6216\u7f3a\u7684\u5de5\u5177\u4e4b\u4e00\uff0c<strong>\u4e86\u89e3\u5e76\u638c\u63e1\u5176\u7528\u6cd5\u53ef\u4ee5\u5927\u5927\u63d0\u9ad8\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u548c\u7ef4\u62a4\u6027<\/strong>\u3002\u4ece\u6700\u57fa\u7840\u7684\u5b57\u7b26\u4e32\u5206\u5272\u5230\u5904\u7406\u590d\u6742\u7684\u6570\u636e\u7ed3\u6784\uff0c<code>split<\/code>\u65b9\u6cd5\u90fd\u80fd\u63d0\u4f9b\u5f3a\u5927\u7684\u652f\u6301\u3002\u968f\u7740\u4f60\u5bf9\u6b63\u5219\u8868\u8fbe\u5f0f\u548c\u5b57\u7b26\u4e32\u5904\u7406\u7684\u6df1\u5165\u4e86\u89e3\uff0c\u5c06\u80fd\u66f4\u52a0\u7075\u6d3b\u548c\u9ad8\u6548\u5730\u4f7f\u7528\u8fd9\u4e00\u65b9\u6cd5\u6765\u89e3\u51b3\u5b9e\u9645\u7f16\u7a0b\u95ee\u9898\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p><strong>1. <\/strong>\u5982\u4f55\u4f7f\u7528 Java \u7684 split \u65b9\u6cd5\u6765\u5c06\u5b57\u7b26\u4e32\u5206\u5272\u4e3a\u591a\u4e2a\u90e8\u5206\uff1f<br \/>\n split \u65b9\u6cd5\u662f\u7528\u4e8e\u5c06\u4e00\u4e2a\u5b57\u7b26\u4e32\u5206\u5272\u4e3a\u591a\u4e2a\u90e8\u5206\u7684\u5e38\u7528\u65b9\u6cd5\u3002\u5b83\u63a5\u53d7\u4e00\u4e2a\u6b63\u5219\u8868\u8fbe\u5f0f\u4f5c\u4e3a\u53c2\u6570\uff0c\u5e76\u8fd4\u56de\u4e00\u4e2a\u5b57\u7b26\u4e32\u6570\u7ec4\uff0c\u5176\u4e2d\u5305\u542b\u5206\u5272\u540e\u7684\u5404\u90e8\u5206\u3002\u4f8b\u5982\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u4ee3\u7801\u5c06\u4e00\u4e2a\u53e5\u5b50\u5206\u5272\u6210\u5355\u8bcd\uff1a<\/p>\n<pre><code>String sentence = &quot;Hello, how are you today?&quot;;\nString[] words = sentence.split(&quot; &quot;);\n<\/code><\/pre>\n<p>\u8fd9\u5c06\u8fd4\u56de\u4e00\u4e2a\u5305\u542b\u53e5\u5b50\u4e2d\u6bcf\u4e2a\u5355\u8bcd\u7684\u5b57\u7b26\u4e32\u6570\u7ec4\u3002\u4f60\u53ef\u4ee5\u901a\u8fc7\u5faa\u73af\u904d\u5386\u6570\u7ec4\u6765\u8bbf\u95ee\u6bcf\u4e2a\u5355\u8bcd\u3002<\/p>\n<p><strong>2. <\/strong>split \u65b9\u6cd5\u6709\u54ea\u4e9b\u5e38\u89c1\u7684\u7528\u6cd5\u548c\u6280\u5de7\uff1f<br \/>\n\u9664\u4e86\u7b80\u5355\u5730\u4f7f\u7528\u4e00\u4e2a\u7a7a\u683c\u6216\u5176\u4ed6\u5b57\u7b26\u5c06\u5b57\u7b26\u4e32\u5206\u5272\u4e3a\u5355\u8bcd\u6216\u5b50\u5b57\u7b26\u4e32\u4e4b\u5916\uff0c\u4f60\u8fd8\u53ef\u4ee5\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u8fdb\u884c\u66f4\u590d\u6742\u7684\u5206\u5272\u64cd\u4f5c\u3002\u4f8b\u5982\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u4ee3\u7801\u5c06\u4e00\u4e2a\u5305\u542b\u9017\u53f7\u5206\u9694\u7684\u5b57\u7b26\u4e32\u5206\u5272\u6210\u591a\u4e2a\u5b50\u5b57\u7b26\u4e32\uff1a<\/p>\n<pre><code>String data = &quot;John,Doe,30&quot;;\nString[] parts = data.split(&quot;,&quot;);\n<\/code><\/pre>\n<p>\u8fd9\u5c06\u8fd4\u56de\u4e00\u4e2a\u5305\u542b\u5b57\u7b26\u4e32 &quot;John&quot;, &quot;Doe&quot;, &quot;30&quot; \u7684\u6570\u7ec4\u3002\u8bf7\u6ce8\u610f\uff0c\u5728\u4f7f\u7528\u4e00\u4e9b\u7279\u6b8a\u5b57\u7b26\u4f5c\u4e3a\u5206\u9694\u7b26\u65f6\uff0c\u4f60\u53ef\u80fd\u9700\u8981\u4f7f\u7528\u8f6c\u4e49\u5b57\u7b26\u201c\\\u201d\u3002<\/p>\n<p><strong>3. <\/strong>split \u65b9\u6cd5\u6709\u6ca1\u6709\u4ec0\u4e48\u6027\u80fd\u4e0a\u7684\u6ce8\u610f\u4e8b\u9879\uff1f<br \/>\n\u5c3d\u7ba1 split \u65b9\u6cd5\u975e\u5e38\u65b9\u4fbf\uff0c\u4f46\u5b83\u53ef\u80fd\u4f1a\u5728\u5904\u7406\u5927\u91cf\u5b57\u7b26\u4e32\u65f6\u5bfc\u81f4\u6027\u80fd\u95ee\u9898\u3002\u8fd9\u662f\u56e0\u4e3a\u5b83\u4f7f\u7528\u4e86\u6b63\u5219\u8868\u8fbe\u5f0f\uff0c\u800c\u6b63\u5219\u8868\u8fbe\u5f0f\u7684\u5904\u7406\u662f\u76f8\u5bf9\u8f83\u6162\u7684\u3002\u5982\u679c\u4f60\u9700\u8981\u5904\u7406\u5927\u91cf\u7684\u5b57\u7b26\u4e32\u6216\u5728\u6027\u80fd\u654f\u611f\u7684\u73af\u5883\u4e2d\u4f7f\u7528 split \u65b9\u6cd5\uff0c\u4f60\u53ef\u4ee5\u8003\u8651\u4f7f\u7528\u66f4\u9ad8\u6548\u7684\u5b57\u7b26\u4e32\u5904\u7406\u65b9\u6cd5\uff0c\u5982 String.indexOf \u548c String.substring\uff0c\u6216\u4f7f\u7528\u4e13\u95e8\u9488\u5bf9\u5206\u5272\u64cd\u4f5c\u8fdb\u884c\u4f18\u5316\u7684\u7b2c\u4e09\u65b9\u5e93\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Java\u7f16\u7a0b\u8bed\u8a00\u4e2d\u7684split\u65b9\u6cd5\u662f\u7528\u4e8e\u5c06\u5b57\u7b26\u4e32\u5206\u5272\u6210\u5b57\u7b26\u4e32\u6570\u7ec4\u7684\u4e00\u4e2a\u975e\u5e38\u5b9e\u7528\u7684\u5de5\u5177\u3002\u4f7f\u7528\u8fd9\u4e2a\u65b9\u6cd5\uff0c\u4f60\u53ef\u4ee5\u6839\u636e [&hellip;]","protected":false},"author":3,"featured_media":275235,"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\/275227"}],"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=275227"}],"version-history":[{"count":0,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/275227\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/275235"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=275227"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=275227"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=275227"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}