{"id":1102562,"date":"2025-01-08T16:01:15","date_gmt":"2025-01-08T08:01:15","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1102562.html"},"modified":"2025-01-08T16:01:21","modified_gmt":"2025-01-08T08:01:21","slug":"python%e5%a6%82%e4%bd%95%e6%88%aa%e5%8f%96%e4%b8%80%e6%ae%b5%e5%ad%97%e7%ac%a6%e4%b8%b2-2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1102562.html","title":{"rendered":"python\u5982\u4f55\u622a\u53d6\u4e00\u6bb5\u5b57\u7b26\u4e32"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25064812\/696f9ac8-cc45-47f0-9920-953ff422c70f.webp\" alt=\"python\u5982\u4f55\u622a\u53d6\u4e00\u6bb5\u5b57\u7b26\u4e32\" \/><\/p>\n<p><p> <strong>Python\u622a\u53d6\u5b57\u7b26\u4e32\u7684\u51e0\u79cd\u65b9\u6cd5\u6709\uff1a\u4f7f\u7528\u5207\u7247\u3001\u4f7f\u7528\u5b57\u7b26\u4e32\u65b9\u6cd5\u3001\u901a\u8fc7\u6b63\u5219\u8868\u8fbe\u5f0f\u3001\u4f7f\u7528\u5b57\u7b26\u4e32\u62fc\u63a5\u3002<\/strong>\u5176\u4e2d\uff0c\u6700\u5e38\u7528\u7684\u662f\u4f7f\u7528\u5207\u7247\u3002\u5207\u7247\u662f\u4e00\u79cd\u975e\u5e38\u5f3a\u5927\u4e14\u7075\u6d3b\u7684\u64cd\u4f5c\u65b9\u5f0f\uff0c\u5b83\u53ef\u4ee5\u901a\u8fc7\u7d22\u5f15\u6765\u83b7\u53d6\u5b57\u7b26\u4e32\u7684\u5b50\u5b57\u7b26\u4e32\u3002\u63a5\u4e0b\u6765\u8be6\u7ec6\u63cf\u8ff0\u5176\u4e2d\u4e00\u79cd\u65b9\u6cd5\uff1a\u4f7f\u7528\u5207\u7247\u3002<\/p>\n<\/p>\n<p><p>\u4f7f\u7528\u5207\u7247\u622a\u53d6\u5b57\u7b26\u4e32\u7684\u65b9\u6cd5\u975e\u5e38\u7b80\u5355\uff0c\u4f60\u53ea\u9700\u8981\u6307\u5b9a\u5f00\u59cb\u7d22\u5f15\u548c\u7ed3\u675f\u7d22\u5f15\uff0c\u5c31\u80fd\u8f7b\u677e\u83b7\u5f97\u6240\u9700\u7684\u5b50\u5b57\u7b26\u4e32\u3002\u4f8b\u5982\uff0c\u5047\u8bbe\u4f60\u6709\u4e00\u4e2a\u5b57\u7b26\u4e32 <code>s = &quot;Hello, World!&quot;<\/code>\uff0c\u4f60\u60f3\u8981\u622a\u53d6\u5176\u4e2d\u7684&quot;World&quot;\u90e8\u5206\uff0c\u53ef\u4ee5\u4f7f\u7528<code>s[7:12]<\/code>\u6765\u5b9e\u73b0\u3002\u5176\u4e2d\uff0c7\u662f\u8d77\u59cb\u7d22\u5f15\uff0c12\u662f\u7ed3\u675f\u7d22\u5f15\uff08\u4e0d\u5305\u62ec12\u5bf9\u5e94\u7684\u5b57\u7b26\uff09\u3002<\/p>\n<\/p>\n<p><p>\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecdPython\u4e2d\u622a\u53d6\u5b57\u7b26\u4e32\u7684\u51e0\u79cd\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528\u5207\u7247<\/h3>\n<\/p>\n<p><p>\u5207\u7247\uff08slice\uff09\u662f\u4e00\u79cd\u975e\u5e38\u5e38\u7528\u7684\u5b57\u7b26\u4e32\u64cd\u4f5c\u65b9\u5f0f\uff0c\u5b83\u53ef\u4ee5\u901a\u8fc7\u6307\u5b9a\u7d22\u5f15\u8303\u56f4\u6765\u83b7\u53d6\u5b57\u7b26\u4e32\u7684\u5b50\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<p><h4>1. \u57fa\u672c\u5207\u7247\u64cd\u4f5c<\/h4>\n<\/p>\n<p><p>\u57fa\u672c\u5207\u7247\u64cd\u4f5c\u5305\u62ec\u6307\u5b9a\u5f00\u59cb\u7d22\u5f15\u548c\u7ed3\u675f\u7d22\u5f15\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">s = &quot;Hello, World!&quot;<\/p>\n<p>substring = s[7:12]<\/p>\n<p>print(substring)  # \u8f93\u51fa\uff1aWorld<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>s[7:12]<\/code>\u8868\u793a\u4ece\u7d22\u5f157\u5f00\u59cb\uff08\u5305\u62ec7\uff09\uff0c\u5230\u7d22\u5f1512\u7ed3\u675f\uff08\u4e0d\u5305\u62ec12\uff09\u7684\u5b57\u7b26\u3002<\/p>\n<\/p>\n<p><h4>2. \u7701\u7565\u5f00\u59cb\u6216\u7ed3\u675f\u7d22\u5f15<\/h4>\n<\/p>\n<p><p>\u5982\u679c\u4f60\u7701\u7565\u5f00\u59cb\u7d22\u5f15\uff0c\u5207\u7247\u5c06\u4ece\u5b57\u7b26\u4e32\u7684\u5f00\u5934\u5f00\u59cb\uff1b\u5982\u679c\u4f60\u7701\u7565\u7ed3\u675f\u7d22\u5f15\uff0c\u5207\u7247\u5c06\u4e00\u76f4\u5230\u5b57\u7b26\u4e32\u7684\u672b\u5c3e\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">s = &quot;Hello, World!&quot;<\/p>\n<p>substring1 = s[:5]  # \u4ece\u5f00\u5934\u5230\u7d22\u5f155\uff08\u4e0d\u5305\u62ec5\uff09<\/p>\n<p>substring2 = s[7:]  # \u4ece\u7d22\u5f157\u5230\u672b\u5c3e<\/p>\n<p>print(substring1)  # \u8f93\u51fa\uff1aHello<\/p>\n<p>print(substring2)  # \u8f93\u51fa\uff1aWorld!<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3. \u6b65\u957f\u53c2\u6570<\/h4>\n<\/p>\n<p><p>\u5207\u7247\u64cd\u4f5c\u8fd8\u652f\u6301\u6b65\u957f\u53c2\u6570\uff0c\u5b83\u53ef\u4ee5\u6307\u5b9a\u6bcf\u9694\u591a\u5c11\u4e2a\u5b57\u7b26\u83b7\u53d6\u4e00\u6b21\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">s = &quot;Hello, World!&quot;<\/p>\n<p>substring = s[0:12:2]<\/p>\n<p>print(substring)  # \u8f93\u51fa\uff1aHlo ol<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>s[0:12:2]<\/code>\u8868\u793a\u4ece\u7d22\u5f150\u5f00\u59cb\uff0c\u6bcf\u96942\u4e2a\u5b57\u7b26\u83b7\u53d6\u4e00\u6b21\uff0c\u76f4\u5230\u7d22\u5f1512\u4e3a\u6b62\u3002<\/p>\n<\/p>\n<p><h4>4. \u8d1f\u7d22\u5f15<\/h4>\n<\/p>\n<p><p>\u8d1f\u7d22\u5f15\u7528\u4e8e\u4ece\u5b57\u7b26\u4e32\u7684\u672b\u5c3e\u5f00\u59cb\u8ba1\u6570\uff0c-1\u8868\u793a\u6700\u540e\u4e00\u4e2a\u5b57\u7b26\uff0c-2\u8868\u793a\u5012\u6570\u7b2c\u4e8c\u4e2a\u5b57\u7b26\uff0c\u4f9d\u6b64\u7c7b\u63a8\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">s = &quot;Hello, World!&quot;<\/p>\n<p>substring = s[-6:-1]<\/p>\n<p>print(substring)  # \u8f93\u51fa\uff1aWorld<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>s[-6:-1]<\/code>\u8868\u793a\u4ece\u5012\u6570\u7b2c6\u4e2a\u5b57\u7b26\u5f00\u59cb\uff0c\u5230\u5012\u6570\u7b2c1\u4e2a\u5b57\u7b26\uff08\u4e0d\u5305\u62ec\uff09\u4e3a\u6b62\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528\u5b57\u7b26\u4e32\u65b9\u6cd5<\/h3>\n<\/p>\n<p><p>Python\u63d0\u4f9b\u4e86\u4e00\u4e9b\u5185\u7f6e\u7684\u5b57\u7b26\u4e32\u65b9\u6cd5\uff0c\u53ef\u4ee5\u7528\u4e8e\u622a\u53d6\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<p><h4>1. split()\u65b9\u6cd5<\/h4>\n<\/p>\n<p><p><code>split()<\/code>\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\u5217\u8868\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">s = &quot;Hello, World!&quot;<\/p>\n<p>parts = s.split(&quot;, &quot;)<\/p>\n<p>print(parts)  # \u8f93\u51fa\uff1a[&#39;Hello&#39;, &#39;World!&#39;]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. partition()\u65b9\u6cd5<\/h4>\n<\/p>\n<p><p><code>partition()<\/code>\u65b9\u6cd5\u5c06\u5b57\u7b26\u4e32\u5206\u5272\u6210\u4e09\u4e2a\u90e8\u5206\uff1a\u5206\u9694\u7b26\u524d\u7684\u90e8\u5206\u3001\u5206\u9694\u7b26\u672c\u8eab\u3001\u5206\u9694\u7b26\u540e\u7684\u90e8\u5206\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">s = &quot;Hello, World!&quot;<\/p>\n<p>before, sep, after = s.partition(&quot;, &quot;)<\/p>\n<p>print(before)  # \u8f93\u51fa\uff1aHello<\/p>\n<p>print(sep)     # \u8f93\u51fa\uff1a,<\/p>\n<p>print(after)   # \u8f93\u51fa\uff1aWorld!<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001\u901a\u8fc7\u6b63\u5219\u8868\u8fbe\u5f0f<\/h3>\n<\/p>\n<p><p>\u6b63\u5219\u8868\u8fbe\u5f0f\u662f\u4e00\u79cd\u5f3a\u5927\u7684\u5b57\u7b26\u4e32\u5904\u7406\u5de5\u5177\uff0c\u53ef\u4ee5\u7528\u4e8e\u590d\u6742\u7684\u5b57\u7b26\u4e32\u5339\u914d\u548c\u622a\u53d6\u3002<\/p>\n<\/p>\n<p><h4>1. \u4f7f\u7528re\u6a21\u5757<\/h4>\n<\/p>\n<p><p>Python\u7684<code>re<\/code>\u6a21\u5757\u63d0\u4f9b\u4e86\u6b63\u5219\u8868\u8fbe\u5f0f\u76f8\u5173\u7684\u529f\u80fd\uff0c\u53ef\u4ee5\u7528\u4e8e\u622a\u53d6\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import re<\/p>\n<p>s = &quot;Hello, World!&quot;<\/p>\n<p>pattern = r&quot;World&quot;<\/p>\n<p>match = re.search(pattern, s)<\/p>\n<p>if match:<\/p>\n<p>    print(match.group())  # \u8f93\u51fa\uff1aWorld<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>re.search()<\/code>\u51fd\u6570\u7528\u4e8e\u5728\u5b57\u7b26\u4e32\u4e2d\u67e5\u627e\u5339\u914d\u7684\u5b50\u5b57\u7b26\u4e32\uff0c\u5e76\u8fd4\u56de\u4e00\u4e2a\u5339\u914d\u5bf9\u8c61\u3002\u5982\u679c\u5339\u914d\u6210\u529f\uff0c\u53ef\u4ee5\u4f7f\u7528<code>group()<\/code>\u65b9\u6cd5\u83b7\u53d6\u5339\u914d\u7684\u5b50\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<p><h4>2. \u4f7f\u7528re.findall()\u65b9\u6cd5<\/h4>\n<\/p>\n<p><p><code>re.findall()<\/code>\u65b9\u6cd5\u8fd4\u56de\u6240\u6709\u5339\u914d\u7684\u5b50\u5b57\u7b26\u4e32\uff0c\u4f5c\u4e3a\u4e00\u4e2a\u5217\u8868\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import re<\/p>\n<p>s = &quot;Hello, World! World is beautiful.&quot;<\/p>\n<p>pattern = r&quot;World&quot;<\/p>\n<p>matches = re.findall(pattern, s)<\/p>\n<p>print(matches)  # \u8f93\u51fa\uff1a[&#39;World&#39;, &#39;World&#39;]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u4f7f\u7528\u5b57\u7b26\u4e32\u62fc\u63a5<\/h3>\n<\/p>\n<p><p>\u6709\u65f6\u5019\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u5b57\u7b26\u4e32\u62fc\u63a5\u6765\u622a\u53d6\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<p><h4>1. \u4f7f\u7528\u5b57\u7b26\u4e32\u62fc\u63a5\u64cd\u4f5c<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">s = &quot;Hello, World!&quot;<\/p>\n<p>substring = s[:5] + s[7:]<\/p>\n<p>print(substring)  # \u8f93\u51fa\uff1aHelloWorld!<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u901a\u8fc7\u62fc\u63a5\u4e24\u4e2a\u5b50\u5b57\u7b26\u4e32<code>Hello<\/code>\u548c<code>World!<\/code>\u6765\u83b7\u5f97\u6240\u9700\u7684\u7ed3\u679c\u3002<\/p>\n<\/p>\n<p><h3>\u7ed3\u8bba<\/h3>\n<\/p>\n<p><p>\u7efc\u4e0a\u6240\u8ff0\uff0cPython\u63d0\u4f9b\u4e86\u591a\u79cd\u622a\u53d6\u5b57\u7b26\u4e32\u7684\u65b9\u6cd5\uff0c\u5176\u4e2d\u6700\u5e38\u7528\u7684\u662f\u5207\u7247\u64cd\u4f5c\u3002\u5207\u7247\u64cd\u4f5c\u4e0d\u4ec5\u7b80\u5355\u6613\u7528\uff0c\u800c\u4e14\u529f\u80fd\u5f3a\u5927\uff0c\u80fd\u591f\u6ee1\u8db3\u7edd\u5927\u591a\u6570\u7684\u5b57\u7b26\u4e32\u622a\u53d6\u9700\u6c42\u3002\u6b64\u5916\uff0cPython\u8fd8\u63d0\u4f9b\u4e86\u4e00\u4e9b\u5185\u7f6e\u7684\u5b57\u7b26\u4e32\u65b9\u6cd5\u548c\u6b63\u5219\u8868\u8fbe\u5f0f\u5de5\u5177\uff0c\u53ef\u4ee5\u7528\u4e8e\u66f4\u590d\u6742\u7684\u5b57\u7b26\u4e32\u5904\u7406\u4efb\u52a1\u3002\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\uff0c\u53ef\u4ee5\u5927\u5927\u63d0\u9ad8\u4ee3\u7801\u7684\u6548\u7387\u548c\u53ef\u8bfb\u6027\u3002\u5e0c\u671b\u8fd9\u7bc7\u6587\u7ae0\u80fd\u591f\u5e2e\u52a9\u4f60\u66f4\u597d\u5730\u7406\u89e3\u548c\u638c\u63e1Python\u4e2d\u7684\u5b57\u7b26\u4e32\u622a\u53d6\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>Python\u4e2d\u53ef\u4ee5\u4f7f\u7528\u54ea\u4e9b\u65b9\u6cd5\u6765\u622a\u53d6\u5b57\u7b26\u4e32\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u6709\u591a\u79cd\u65b9\u6cd5\u53ef\u4ee5\u622a\u53d6\u5b57\u7b26\u4e32\u3002\u6700\u5e38\u7528\u7684\u65b9\u6cd5\u662f\u4f7f\u7528\u5207\u7247\uff08slice\uff09\u529f\u80fd\u3002\u901a\u8fc7\u6307\u5b9a\u8d77\u59cb\u548c\u7ed3\u675f\u7d22\u5f15\uff0c\u53ef\u4ee5\u83b7\u53d6\u5b57\u7b26\u4e32\u7684\u5b50\u4e32\u3002\u4f8b\u5982\uff0c<code>string[start:end]<\/code>\u5c06\u8fd4\u56de\u4ece\u8d77\u59cb\u7d22\u5f15\u5230\u7ed3\u675f\u7d22\u5f15\uff08\u4e0d\u5305\u62ec\u7ed3\u675f\u7d22\u5f15\uff09\u7684\u5b57\u7b26\u3002\u6b64\u5916\uff0c\u8fd8\u53ef\u4ee5\u4f7f\u7528<code>str.split()<\/code>\u65b9\u6cd5\u5c06\u5b57\u7b26\u4e32\u5206\u5272\u6210\u5217\u8868\uff0c\u4ece\u800c\u5b9e\u73b0\u622a\u53d6\u3002<\/p>\n<p><strong>\u5982\u4f55\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u5728Python\u4e2d\u622a\u53d6\u7279\u5b9a\u6a21\u5f0f\u7684\u5b57\u7b26\u4e32\uff1f<\/strong><br \/>\u6b63\u5219\u8868\u8fbe\u5f0f\u662f\u5904\u7406\u5b57\u7b26\u4e32\u7684\u5f3a\u5927\u5de5\u5177\u3002\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528<code>re<\/code>\u6a21\u5757\u6765\u5e94\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u3002\u901a\u8fc7\u5b9a\u4e49\u4e00\u4e2a\u6a21\u5f0f\uff0c\u53ef\u4ee5\u63d0\u53d6\u7b26\u5408\u6761\u4ef6\u7684\u5b50\u5b57\u7b26\u4e32\u3002\u4f8b\u5982\uff0c\u4f7f\u7528<code>re.findall(pattern, string)<\/code>\u53ef\u4ee5\u83b7\u53d6\u6240\u6709\u5339\u914d\u7684\u90e8\u5206\uff0c\u9002\u5408\u4e8e\u590d\u6742\u7684\u5b57\u7b26\u4e32\u622a\u53d6\u9700\u6c42\u3002<\/p>\n<p><strong>\u5b57\u7b26\u4e32\u622a\u53d6\u65f6\u5982\u4f55\u5904\u7406\u7a7a\u683c\u548c\u7279\u6b8a\u5b57\u7b26\uff1f<\/strong><br \/>\u5728\u622a\u53d6\u5b57\u7b26\u4e32\u65f6\uff0c\u7a7a\u683c\u548c\u7279\u6b8a\u5b57\u7b26\u53ef\u80fd\u4f1a\u5f71\u54cd\u7ed3\u679c\u3002\u53ef\u4ee5\u4f7f\u7528<code>str.strip()<\/code>\u65b9\u6cd5\u53bb\u9664\u5b57\u7b26\u4e32\u4e24\u7aef\u7684\u7a7a\u683c\uff0c\u6216\u8005\u4f7f\u7528<code>str.replace(old, new)<\/code>\u66ff\u6362\u6389\u4e0d\u60f3\u8981\u7684\u5b57\u7b26\u3002\u6b64\u5916\uff0c\u7ed3\u5408\u5207\u7247\u548c\u6761\u4ef6\u5224\u65ad\uff0c\u53ef\u4ee5\u6839\u636e\u9700\u8981\u6765\u5904\u7406\u7279\u6b8a\u5b57\u7b26\uff0c\u4ece\u800c\u83b7\u5f97\u66f4\u5e72\u51c0\u7684\u7ed3\u679c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u622a\u53d6\u5b57\u7b26\u4e32\u7684\u51e0\u79cd\u65b9\u6cd5\u6709\uff1a\u4f7f\u7528\u5207\u7247\u3001\u4f7f\u7528\u5b57\u7b26\u4e32\u65b9\u6cd5\u3001\u901a\u8fc7\u6b63\u5219\u8868\u8fbe\u5f0f\u3001\u4f7f\u7528\u5b57\u7b26\u4e32\u62fc\u63a5\u3002\u5176\u4e2d\uff0c\u6700\u5e38\u7528\u7684\u662f [&hellip;]","protected":false},"author":3,"featured_media":1102573,"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\/1102562"}],"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=1102562"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1102562\/revisions"}],"predecessor-version":[{"id":1102576,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1102562\/revisions\/1102576"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1102573"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1102562"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1102562"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1102562"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}