{"id":1105737,"date":"2025-01-08T16:33:47","date_gmt":"2025-01-08T08:33:47","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1105737.html"},"modified":"2025-01-08T16:33:50","modified_gmt":"2025-01-08T08:33:50","slug":"python%e5%a6%82%e4%bd%95%e6%a0%b9%e6%8d%ae%e6%9d%a1%e4%bb%b6%e6%8a%bd%e5%8f%96%e5%ad%97%e7%ac%a6%e4%b8%b2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1105737.html","title":{"rendered":"python\u5982\u4f55\u6839\u636e\u6761\u4ef6\u62bd\u53d6\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\/25070512\/6f185c59-dd7b-445c-baca-8446149ce6b4.webp\" alt=\"python\u5982\u4f55\u6839\u636e\u6761\u4ef6\u62bd\u53d6\u5b57\u7b26\u4e32\" \/><\/p>\n<p><p> <strong>\u6839\u636e\u6761\u4ef6\u62bd\u53d6\u5b57\u7b26\u4e32\u7684\u65b9\u6cd5\u6709\u5f88\u591a\u79cd\uff0c\u6bd4\u5982\u4f7f\u7528\u5207\u7247\u3001\u6b63\u5219\u8868\u8fbe\u5f0f\u3001\u5b57\u7b26\u4e32\u65b9\u6cd5\u7b49\u3002\u5177\u4f53\u65b9\u6cd5\u6709\uff1a\u4f7f\u7528\u5b57\u7b26\u4e32\u65b9\u6cd5\u3001\u6b63\u5219\u8868\u8fbe\u5f0f\u3001\u5217\u8868\u63a8\u5bfc\u5f0f\u3001\u5207\u7247\u7b49\u65b9\u6cd5\u3002<\/strong>\u5176\u4e2d\uff0c\u6b63\u5219\u8868\u8fbe\u5f0f\u662f\u4e00\u79cd\u529f\u80fd\u5f3a\u5927\u7684\u5de5\u5177\uff0c\u53ef\u4ee5\u6839\u636e\u590d\u6742\u7684\u6761\u4ef6\u63d0\u53d6\u5b57\u7b26\u4e32\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u8be6\u7ec6\u63a2\u8ba8\u8fd9\u4e9b\u65b9\u6cd5\u4ee5\u53ca\u5b83\u4eec\u7684\u5177\u4f53\u5b9e\u73b0\u65b9\u5f0f\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u5b57\u7b26\u4e32\u65b9\u6cd5<\/p>\n<\/p>\n<p><p>Python \u63d0\u4f9b\u4e86\u591a\u79cd\u5b57\u7b26\u4e32\u65b9\u6cd5\uff0c\u53ef\u4ee5\u7528\u6765\u6839\u636e\u6761\u4ef6\u62bd\u53d6\u5b57\u7b26\u4e32\u3002\u5e38\u89c1\u7684\u65b9\u6cd5\u6709 <code>find<\/code>\u3001<code>index<\/code>\u3001<code>split<\/code>\u3001<code>partition<\/code>\u3001<code>startswith<\/code>\u3001<code>endswith<\/code> \u7b49\u3002<\/p>\n<\/p>\n<p><p>1.1\u3001find \u548c index<\/p>\n<\/p>\n<p><p><code>find<\/code> \u65b9\u6cd5\u8fd4\u56de\u5b50\u5b57\u7b26\u4e32\u5728\u5b57\u7b26\u4e32\u4e2d\u9996\u6b21\u51fa\u73b0\u7684\u4f4d\u7f6e\uff0c\u5982\u679c\u627e\u4e0d\u5230\u5219\u8fd4\u56de -1\u3002<code>index<\/code> \u65b9\u6cd5\u4e0e <code>find<\/code> \u7c7b\u4f3c\uff0c\u4f46\u627e\u4e0d\u5230\u5b50\u5b57\u7b26\u4e32\u65f6\u4f1a\u629b\u51fa <code>ValueError<\/code> \u5f02\u5e38\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">s = &quot;Hello, world!&quot;<\/p>\n<p>substring = &quot;world&quot;<\/p>\n<p>position = s.find(substring)<\/p>\n<p>if position != -1:<\/p>\n<p>    extracted = s[position:position + len(substring)]<\/p>\n<p>    print(f&quot;Extracted substring: {extracted}&quot;)<\/p>\n<p>else:<\/p>\n<p>    print(&quot;Substring not found&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>1.2\u3001split \u548c partition<\/p>\n<\/p>\n<p><p><code>split<\/code> \u65b9\u6cd5\u6839\u636e\u6307\u5b9a\u7684\u5206\u9694\u7b26\u5c06\u5b57\u7b26\u4e32\u62c6\u5206\u6210\u591a\u4e2a\u5b50\u5b57\u7b26\u4e32\uff0c\u5e76\u8fd4\u56de\u4e00\u4e2a\u5217\u8868\u3002<code>partition<\/code> \u65b9\u6cd5\u5c06\u5b57\u7b26\u4e32\u62c6\u5206\u6210\u4e09\u4e2a\u90e8\u5206\uff1a\u5206\u9694\u7b26\u524d\u7684\u90e8\u5206\u3001\u5206\u9694\u7b26\u672c\u8eab\u548c\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>delimiter = &quot;,&quot;<\/p>\n<p>parts = s.split(delimiter)<\/p>\n<p>if len(parts) &gt; 1:<\/p>\n<p>    extracted = parts[1].strip()  # \u53bb\u9664\u7a7a\u683c<\/p>\n<p>    print(f&quot;Extracted substring: {extracted}&quot;)<\/p>\n<p>else:<\/p>\n<p>    print(&quot;Delimiter not found&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><pre><code class=\"language-python\">s = &quot;Hello, world!&quot;<\/p>\n<p>delimiter = &quot;,&quot;<\/p>\n<p>before, sep, after = s.partition(delimiter)<\/p>\n<p>if sep:<\/p>\n<p>    extracted = after.strip()  # \u53bb\u9664\u7a7a\u683c<\/p>\n<p>    print(f&quot;Extracted substring: {extracted}&quot;)<\/p>\n<p>else:<\/p>\n<p>    print(&quot;Delimiter not found&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>1.3\u3001startswith \u548c endswith<\/p>\n<\/p>\n<p><p><code>startswith<\/code> \u548c <code>endswith<\/code> \u65b9\u6cd5\u5206\u522b\u7528\u4e8e\u5224\u65ad\u5b57\u7b26\u4e32\u662f\u5426\u4ee5\u6307\u5b9a\u7684\u5b50\u5b57\u7b26\u4e32\u5f00\u5934\u6216\u7ed3\u5c3e\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">s = &quot;Hello, world!&quot;<\/p>\n<p>prefix = &quot;Hello&quot;<\/p>\n<p>if s.startswith(prefix):<\/p>\n<p>    extracted = s[len(prefix):].strip()<\/p>\n<p>    print(f&quot;Extracted substring: {extracted}&quot;)<\/p>\n<p>else:<\/p>\n<p>    print(&quot;Prefix not found&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><pre><code class=\"language-python\">s = &quot;Hello, world!&quot;<\/p>\n<p>suffix = &quot;world!&quot;<\/p>\n<p>if s.endswith(suffix):<\/p>\n<p>    extracted = s[:-len(suffix)].strip()<\/p>\n<p>    print(f&quot;Extracted substring: {extracted}&quot;)<\/p>\n<p>else:<\/p>\n<p>    print(&quot;Suffix not found&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e8c\u3001\u6b63\u5219\u8868\u8fbe\u5f0f<\/p>\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\u6839\u636e\u590d\u6742\u7684\u6761\u4ef6\u5339\u914d\u548c\u63d0\u53d6\u5b57\u7b26\u4e32\u3002Python \u7684 <code>re<\/code> \u6a21\u5757\u63d0\u4f9b\u4e86\u5bf9\u6b63\u5219\u8868\u8fbe\u5f0f\u7684\u652f\u6301\u3002<\/p>\n<\/p>\n<p><p>2.1\u3001\u57fa\u672c\u7528\u6cd5<\/p>\n<\/p>\n<p><p>\u4f7f\u7528 <code>re.search<\/code> \u6216 <code>re.findall<\/code> \u65b9\u6cd5\u6839\u636e\u6b63\u5219\u8868\u8fbe\u5f0f\u6a21\u5f0f\u5339\u914d\u5b57\u7b26\u4e32\u3002<code>re.search<\/code> \u8fd4\u56de\u7b2c\u4e00\u4e2a\u5339\u914d\u7684\u5bf9\u8c61\uff0c<code>re.findall<\/code> \u8fd4\u56de\u6240\u6709\u5339\u914d\u7684\u5b50\u5b57\u7b26\u4e32\u5217\u8868\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>    extracted = match.group()<\/p>\n<p>    print(f&quot;Extracted substring: {extracted}&quot;)<\/p>\n<p>else:<\/p>\n<p>    print(&quot;Pattern not found&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><pre><code class=\"language-python\">import re<\/p>\n<p>s = &quot;Hello, world! Welcome to the world of Python.&quot;<\/p>\n<p>pattern = r&quot;world&quot;<\/p>\n<p>matches = re.findall(pattern, s)<\/p>\n<p>if matches:<\/p>\n<p>    for match in matches:<\/p>\n<p>        print(f&quot;Extracted substring: {match}&quot;)<\/p>\n<p>else:<\/p>\n<p>    print(&quot;Pattern not found&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>2.2\u3001\u4f7f\u7528\u6355\u83b7\u7ec4<\/p>\n<\/p>\n<p><p>\u6355\u83b7\u7ec4\u53ef\u4ee5\u63d0\u53d6\u5339\u914d\u6a21\u5f0f\u4e2d\u7684\u7279\u5b9a\u90e8\u5206\u3002\u4f7f\u7528\u5706\u62ec\u53f7 <code>()<\/code> \u5b9a\u4e49\u6355\u83b7\u7ec4\uff0c\u5e76\u4f7f\u7528 <code>group<\/code> \u65b9\u6cd5\u8bbf\u95ee\u5339\u914d\u7684\u5185\u5bb9\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>    extracted = match.group(1)<\/p>\n<p>    print(f&quot;Extracted substring: {extracted}&quot;)<\/p>\n<p>else:<\/p>\n<p>    print(&quot;Pattern not found&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e09\u3001\u5217\u8868\u63a8\u5bfc\u5f0f<\/p>\n<\/p>\n<p><p>\u5217\u8868\u63a8\u5bfc\u5f0f\u662f\u4e00\u79cd\u7b80\u6d01\u7684\u65b9\u5f0f\uff0c\u7528\u4e8e\u6839\u636e\u6761\u4ef6\u751f\u6210\u5217\u8868\u3002\u53ef\u4ee5\u7ed3\u5408\u5b57\u7b26\u4e32\u65b9\u6cd5\u548c\u5217\u8868\u63a8\u5bfc\u5f0f\u6765\u63d0\u53d6\u6ee1\u8db3\u6761\u4ef6\u7684\u5b50\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">s = &quot;Hello, world! Welcome to the world of Python.&quot;<\/p>\n<p>words = s.split()<\/p>\n<p>extracted = [word for word in words if &quot;world&quot; in word]<\/p>\n<p>print(f&quot;Extracted substrings: {extracted}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u56db\u3001\u5207\u7247<\/p>\n<\/p>\n<p><p>\u5207\u7247\u662f\u4e00\u79cd\u5f3a\u5927\u7684\u5de5\u5177\uff0c\u53ef\u4ee5\u6839\u636e\u7d22\u5f15\u63d0\u53d6\u5b57\u7b26\u4e32\u7684\u7279\u5b9a\u90e8\u5206\u3002\u7ed3\u5408\u6761\u4ef6\u5224\u65ad\uff0c\u53ef\u4ee5\u5b9e\u73b0\u590d\u6742\u7684\u63d0\u53d6\u903b\u8f91\u3002<\/p>\n<\/p>\n<p><p>4.1\u3001\u6839\u636e\u56fa\u5b9a\u4f4d\u7f6e\u63d0\u53d6<\/p>\n<\/p>\n<p><p>\u5982\u679c\u77e5\u9053\u5b50\u5b57\u7b26\u4e32\u7684\u4f4d\u7f6e\uff0c\u53ef\u4ee5\u4f7f\u7528\u5207\u7247\u76f4\u63a5\u63d0\u53d6\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">s = &quot;Hello, world!&quot;<\/p>\n<p>start = 7<\/p>\n<p>end = 12<\/p>\n<p>extracted = s[start:end]<\/p>\n<p>print(f&quot;Extracted substring: {extracted}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>4.2\u3001\u7ed3\u5408\u6761\u4ef6\u5224\u65ad<\/p>\n<\/p>\n<p><p>\u53ef\u4ee5\u7ed3\u5408\u6761\u4ef6\u5224\u65ad\u548c\u5207\u7247\u5b9e\u73b0\u590d\u6742\u7684\u63d0\u53d6\u903b\u8f91\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">s = &quot;Hello, world!&quot;<\/p>\n<p>if &quot;world&quot; in s:<\/p>\n<p>    start = s.index(&quot;world&quot;)<\/p>\n<p>    end = start + len(&quot;world&quot;)<\/p>\n<p>    extracted = s[start:end]<\/p>\n<p>    print(f&quot;Extracted substring: {extracted}&quot;)<\/p>\n<p>else:<\/p>\n<p>    print(&quot;Substring not found&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u603b\u7ed3<\/p>\n<\/p>\n<p><p>\u6839\u636e\u6761\u4ef6\u62bd\u53d6\u5b57\u7b26\u4e32\u7684\u65b9\u6cd5\u6709\u5f88\u591a\uff0c\u5177\u4f53\u9009\u62e9\u54ea\u79cd\u65b9\u6cd5\u53d6\u51b3\u4e8e\u5177\u4f53\u9700\u6c42\u548c\u5b57\u7b26\u4e32\u7684\u590d\u6742\u5ea6\u3002\u5b57\u7b26\u4e32\u65b9\u6cd5\u9002\u5408\u5904\u7406\u7b80\u5355\u7684\u6761\u4ef6\uff0c\u6b63\u5219\u8868\u8fbe\u5f0f\u9002\u5408\u5904\u7406\u590d\u6742\u7684\u6a21\u5f0f\u5339\u914d\uff0c\u5217\u8868\u63a8\u5bfc\u5f0f\u548c\u5207\u7247\u5219\u63d0\u4f9b\u4e86\u7075\u6d3b\u7684\u65b9\u5f0f\u6765\u5b9e\u73b0\u81ea\u5b9a\u4e49\u7684\u63d0\u53d6\u903b\u8f91\u3002\u901a\u8fc7\u7ed3\u5408\u4e0d\u540c\u7684\u65b9\u6cd5\uff0c\u53ef\u4ee5\u9ad8\u6548\u5730\u4ece\u5b57\u7b26\u4e32\u4e2d\u63d0\u53d6\u6240\u9700\u7684\u5b50\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u6839\u636e\u7279\u5b9a\u6761\u4ef6\u8fc7\u6ee4\u5b57\u7b26\u4e32\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u5217\u8868\u63a8\u5bfc\u5f0f\u3001filter\u51fd\u6570\u6216\u8005\u6b63\u5219\u8868\u8fbe\u5f0f\u7b49\u65b9\u6cd5\u6839\u636e\u7279\u5b9a\u6761\u4ef6\u63d0\u53d6\u5b57\u7b26\u4e32\u3002\u4f8b\u5982\uff0c\u4f7f\u7528\u5217\u8868\u63a8\u5bfc\u5f0f\u53ef\u4ee5\u8f7b\u677e\u5730\u4ece\u5b57\u7b26\u4e32\u5217\u8868\u4e2d\u7b5b\u9009\u51fa\u7b26\u5408\u6761\u4ef6\u7684\u9879\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b\uff0c\u5c55\u793a\u5982\u4f55\u7b5b\u9009\u51fa\u957f\u5ea6\u5927\u4e8e3\u7684\u5b57\u7b26\u4e32\uff1a  <\/p>\n<pre><code class=\"language-python\">strings = [&quot;apple&quot;, &quot;is&quot;, &quot;banana&quot;, &quot;cat&quot;]\nfiltered_strings = [s for s in strings if len(s) &gt; 3]\nprint(filtered_strings)  # \u8f93\u51fa: [&#39;apple&#39;, &#39;banana&#39;]\n<\/code><\/pre>\n<p><strong>\u5728Python\u4e2d\u5982\u4f55\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u63d0\u53d6\u7b26\u5408\u6761\u4ef6\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\u4f7f\u7528<code>re<\/code>\u6a21\u5757\u53ef\u4ee5\u8f7b\u677e\u63d0\u53d6\u7b26\u5408\u7279\u5b9a\u6a21\u5f0f\u7684\u5b57\u7b26\u4e32\u3002\u4f8b\u5982\uff0c\u4ee5\u4e0b\u4ee3\u7801\u63d0\u53d6\u6240\u6709\u5305\u542b\u6570\u5b57\u7684\u5b57\u7b26\u4e32\uff1a  <\/p>\n<pre><code class=\"language-python\">import re\n\ntext = &quot;abc123, def456, ghi&quot;\nmatches = re.findall(r&#39;\\b\\w*\\d+\\w*\\b&#39;, text)\nprint(matches)  # \u8f93\u51fa: [&#39;abc123&#39;, &#39;def456&#39;]\n<\/code><\/pre>\n<p><strong>\u6709\u54ea\u4e9b\u5e38\u7528\u7684\u5b57\u7b26\u4e32\u65b9\u6cd5\u53ef\u4ee5\u5e2e\u52a9\u6211\u62bd\u53d6\u7b26\u5408\u6761\u4ef6\u7684\u5b57\u7b26\u4e32\uff1f<\/strong><br \/>Python\u63d0\u4f9b\u4e86\u591a\u79cd\u5b57\u7b26\u4e32\u65b9\u6cd5\uff0c\u5982<code>startswith()<\/code>\u3001<code>endswith()<\/code>\u3001<code>find()<\/code>\u548c<code>split()<\/code>\u7b49\uff0c\u80fd\u591f\u5e2e\u52a9\u7528\u6237\u6839\u636e\u4e0d\u540c\u6761\u4ef6\u63d0\u53d6\u5b57\u7b26\u4e32\u3002\u4f8b\u5982\uff0c\u4f7f\u7528<code>startswith()<\/code>\u53ef\u4ee5\u7b5b\u9009\u51fa\u4ee5\u7279\u5b9a\u5b57\u7b26\u5f00\u5934\u7684\u5b57\u7b26\u4e32\uff1a  <\/p>\n<pre><code class=\"language-python\">strings = [&quot;apple&quot;, &quot;banana&quot;, &quot;avocado&quot;, &quot;berry&quot;]\nfiltered_strings = [s for s in strings if s.startswith(&#39;a&#39;)]\nprint(filtered_strings)  # \u8f93\u51fa: [&#39;apple&#39;, &#39;avocado&#39;]\n<\/code><\/pre>\n<p>\u8fd9\u4e9b\u65b9\u6cd5\u53ef\u4ee5\u7ed3\u5408\u4f7f\u7528\uff0c\u6ee1\u8db3\u66f4\u590d\u6742\u7684\u5b57\u7b26\u4e32\u7b5b\u9009\u9700\u6c42\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u6839\u636e\u6761\u4ef6\u62bd\u53d6\u5b57\u7b26\u4e32\u7684\u65b9\u6cd5\u6709\u5f88\u591a\u79cd\uff0c\u6bd4\u5982\u4f7f\u7528\u5207\u7247\u3001\u6b63\u5219\u8868\u8fbe\u5f0f\u3001\u5b57\u7b26\u4e32\u65b9\u6cd5\u7b49\u3002\u5177\u4f53\u65b9\u6cd5\u6709\uff1a\u4f7f\u7528\u5b57\u7b26\u4e32\u65b9\u6cd5\u3001\u6b63\u5219\u8868\u8fbe [&hellip;]","protected":false},"author":3,"featured_media":1105747,"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\/1105737"}],"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=1105737"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1105737\/revisions"}],"predecessor-version":[{"id":1105751,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1105737\/revisions\/1105751"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1105747"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1105737"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1105737"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1105737"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}