{"id":1082161,"date":"2025-01-08T12:46:14","date_gmt":"2025-01-08T04:46:14","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1082161.html"},"modified":"2025-01-08T12:46:17","modified_gmt":"2025-01-08T04:46:17","slug":"python-%e5%a6%82%e4%bd%95%e6%98%be%e7%a4%ba%e6%96%87%e4%bb%b6%e5%90%8d%e5%90%8e%e7%bc%80-2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1082161.html","title":{"rendered":"python \u5982\u4f55\u663e\u793a\u6587\u4ef6\u540d\u540e\u7f00"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24183822\/16413939-611f-49a0-9e22-515389d668fd.webp\" alt=\"python \u5982\u4f55\u663e\u793a\u6587\u4ef6\u540d\u540e\u7f00\" \/><\/p>\n<p><p> <strong>Python\u663e\u793a\u6587\u4ef6\u540d\u540e\u7f00\u7684\u65b9\u6cd5\u6709\u4f7f\u7528os.path\u3001pathlib\u6a21\u5757\u3001\u548csplit\u65b9\u6cd5\u7b49\u3002<\/strong> \u5176\u4e2d\uff0c\u6700\u5e38\u7528\u7684\u65b9\u6cd5\u662f\u4f7f\u7528os.path.splitext()\u51fd\u6570\uff0c\u5b83\u53ef\u4ee5\u5c06\u6587\u4ef6\u540d\u548c\u6269\u5c55\u540d\u5206\u5f00\uff0c\u8fd4\u56de\u4e00\u4e2a\u5305\u542b\u6587\u4ef6\u540d\u548c\u6269\u5c55\u540d\u7684\u5143\u7ec4\u3002pathlib\u6a21\u5757\u5728Python 3.4\u53ca\u4ee5\u4e0a\u7248\u672c\u4e2d\u5f15\u5165\uff0c\u63d0\u4f9b\u4e86\u4e00\u79cd\u9762\u5411\u5bf9\u8c61\u7684\u6587\u4ef6\u7cfb\u7edf\u8def\u5f84\u64cd\u4f5c\u65b9\u5f0f\u3002split\u65b9\u6cd5\u5219\u662f\u901a\u8fc7\u5b57\u7b26\u4e32\u64cd\u4f5c\u6765\u83b7\u53d6\u6587\u4ef6\u540e\u7f00\u3002\u4ee5\u4e0b\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u5e76\u901a\u8fc7\u793a\u4f8b\u4ee3\u7801\u6765\u8bf4\u660e\u5b83\u4eec\u7684\u4f7f\u7528\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u4f7f\u7528os.path\u6a21\u5757<\/p>\n<\/p>\n<p><p>os.path\u6a21\u5757\u63d0\u4f9b\u4e86\u8bb8\u591a\u6709\u7528\u7684\u6587\u4ef6\u8def\u5f84\u64cd\u4f5c\u51fd\u6570\uff0c\u5176\u4e2dos.path.splitext()\u51fd\u6570\u53ef\u4ee5\u65b9\u4fbf\u5730\u83b7\u53d6\u6587\u4ef6\u540d\u548c\u6269\u5c55\u540d\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import os<\/p>\n<p>def get_file_extension(filepath):<\/p>\n<p>    _, file_extension = os.path.splitext(filepath)<\/p>\n<p>    return file_extension<\/p>\n<h2><strong>\u793a\u4f8b<\/strong><\/h2>\n<p>filepath = &#39;example.txt&#39;<\/p>\n<p>print(get_file_extension(filepath))  # \u8f93\u51fa: .txt<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>os.path.splitext()\u51fd\u6570\u4f1a\u8fd4\u56de\u4e00\u4e2a\u5305\u542b\u4e24\u4e2a\u5143\u7d20\u7684\u5143\u7ec4\uff0c\u7b2c\u4e00\u4e2a\u5143\u7d20\u662f\u6587\u4ef6\u540d\uff08\u4e0d\u5305\u62ec\u6269\u5c55\u540d\uff09\uff0c\u7b2c\u4e8c\u4e2a\u5143\u7d20\u662f\u6587\u4ef6\u7684\u6269\u5c55\u540d\uff08\u5305\u62ec\u70b9\u53f7\uff09\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u4f7f\u7528pathlib\u6a21\u5757<\/p>\n<\/p>\n<p><p>pathlib\u6a21\u5757\u63d0\u4f9b\u4e86\u4e00\u79cd\u9762\u5411\u5bf9\u8c61\u7684\u6587\u4ef6\u7cfb\u7edf\u8def\u5f84\u64cd\u4f5c\u65b9\u5f0f\u3002\u901a\u8fc7Path\u5bf9\u8c61\u7684suffix\u5c5e\u6027\uff0c\u53ef\u4ee5\u65b9\u4fbf\u5730\u83b7\u53d6\u6587\u4ef6\u7684\u6269\u5c55\u540d\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from pathlib import Path<\/p>\n<p>def get_file_extension(filepath):<\/p>\n<p>    path = Path(filepath)<\/p>\n<p>    return path.suffix<\/p>\n<h2><strong>\u793a\u4f8b<\/strong><\/h2>\n<p>filepath = &#39;example.txt&#39;<\/p>\n<p>print(get_file_extension(filepath))  # \u8f93\u51fa: .txt<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>pathlib\u6a21\u5757\u5728Python 3.4\u53ca\u4ee5\u4e0a\u7248\u672c\u4e2d\u5f15\u5165\uff0c\u63d0\u4f9b\u4e86\u66f4\u52a0\u76f4\u89c2\u548c\u6613\u4e8e\u4f7f\u7528\u7684\u6587\u4ef6\u8def\u5f84\u64cd\u4f5c\u65b9\u5f0f\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u4f7f\u7528split\u65b9\u6cd5<\/p>\n<\/p>\n<p><p>split\u65b9\u6cd5\u901a\u8fc7\u5b57\u7b26\u4e32\u64cd\u4f5c\u6765\u83b7\u53d6\u6587\u4ef6\u540e\u7f00\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def get_file_extension(filepath):<\/p>\n<p>    return &#39;.&#39; + filepath.split(&#39;.&#39;)[-1]<\/p>\n<h2><strong>\u793a\u4f8b<\/strong><\/h2>\n<p>filepath = &#39;example.txt&#39;<\/p>\n<p>print(get_file_extension(filepath))  # \u8f93\u51fa: .txt<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8be5\u65b9\u6cd5\u9996\u5148\u901a\u8fc7split(&#39;.&#39;)\u5c06\u6587\u4ef6\u540d\u6309\u70b9\u53f7\u5206\u5272\u6210\u591a\u4e2a\u90e8\u5206\uff0c\u6700\u540e\u4e00\u4e2a\u90e8\u5206\u5373\u4e3a\u6587\u4ef6\u7684\u6269\u5c55\u540d\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u7ed3\u5408\u591a\u79cd\u65b9\u6cd5\u5904\u7406\u7279\u6b8a\u60c5\u51b5<\/p>\n<\/p>\n<p><p>\u6709\u65f6\u6587\u4ef6\u540d\u53ef\u80fd\u5305\u542b\u591a\u4e2a\u70b9\u53f7\uff0c\u6216\u8005\u6269\u5c55\u540d\u4e3a\u7a7a\uff0c\u56e0\u6b64\u5728\u5b9e\u9645\u4f7f\u7528\u4e2d\u9700\u8981\u7ed3\u5408\u591a\u79cd\u65b9\u6cd5\u5904\u7406\u8fd9\u4e9b\u7279\u6b8a\u60c5\u51b5\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import os<\/p>\n<p>from pathlib import Path<\/p>\n<p>def get_file_extension(filepath):<\/p>\n<p>    # \u4f7f\u7528os.path.splitext()<\/p>\n<p>    _, ext1 = os.path.splitext(filepath)<\/p>\n<p>    # \u4f7f\u7528pathlib\u6a21\u5757<\/p>\n<p>    path = Path(filepath)<\/p>\n<p>    ext2 = path.suffix<\/p>\n<p>    # \u4f7f\u7528split\u65b9\u6cd5<\/p>\n<p>    ext3 = &#39;.&#39; + filepath.split(&#39;.&#39;)[-1]<\/p>\n<p>    # \u5904\u7406\u7279\u6b8a\u60c5\u51b5<\/p>\n<p>    extensions = {ext1, ext2, ext3}<\/p>\n<p>    extensions.discard(&#39;&#39;)<\/p>\n<p>    return list(extensions)<\/p>\n<h2><strong>\u793a\u4f8b<\/strong><\/h2>\n<p>filepath1 = &#39;example.tar.gz&#39;<\/p>\n<p>filepath2 = &#39;example.&#39;<\/p>\n<p>filepath3 = &#39;example&#39;<\/p>\n<p>print(get_file_extension(filepath1))  # \u8f93\u51fa: [&#39;.gz&#39;]<\/p>\n<p>print(get_file_extension(filepath2))  # \u8f93\u51fa: [&#39;.&#39;]<\/p>\n<p>print(get_file_extension(filepath3))  # \u8f93\u51fa: []<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u8ff0\u793a\u4f8b\u4e2d\uff0c\u901a\u8fc7\u7ed3\u5408os.path.splitext()\u3001pathlib\u6a21\u5757\u548csplit\u65b9\u6cd5\uff0c\u5904\u7406\u4e86\u6587\u4ef6\u540d\u5305\u542b\u591a\u4e2a\u70b9\u53f7\u3001\u6269\u5c55\u540d\u4e3a\u7a7a\u7b49\u7279\u6b8a\u60c5\u51b5\u3002<\/p>\n<\/p>\n<p><p>\u4e94\u3001\u5b9e\u9645\u5e94\u7528\u4e2d\u7684\u6ce8\u610f\u4e8b\u9879<\/p>\n<\/p>\n<p><p>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u83b7\u53d6\u6587\u4ef6\u6269\u5c55\u540d\u540e\u53ef\u80fd\u9700\u8981\u8fdb\u4e00\u6b65\u5904\u7406\uff0c\u4f8b\u5982\u6839\u636e\u6269\u5c55\u540d\u51b3\u5b9a\u6587\u4ef6\u7684\u5904\u7406\u65b9\u5f0f\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5b9e\u9645\u5e94\u7528\u4e2d\u7684\u6ce8\u610f\u4e8b\u9879\uff1a<\/p>\n<\/p>\n<ol>\n<li>\u6587\u4ef6\u6269\u5c55\u540d\u5927\u5c0f\u5199\u654f\u611f<\/li>\n<\/ol>\n<p><p>\u6709\u4e9b\u6587\u4ef6\u6269\u5c55\u540d\u53ef\u80fd\u5b58\u5728\u5927\u5c0f\u5199\u5dee\u5f02\uff0c\u4f8b\u5982&#39;.jpg&#39;\u548c&#39;.JPG&#39;\u3002\u5728\u5904\u7406\u6587\u4ef6\u6269\u5c55\u540d\u65f6\uff0c\u53ef\u4ee5\u5c06\u6269\u5c55\u540d\u8f6c\u6362\u4e3a\u5c0f\u5199\u6216\u5927\u5199\uff0c\u4ee5\u4fbf\u8fdb\u884c\u7edf\u4e00\u5904\u7406\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def get_file_extension(filepath):<\/p>\n<p>    path = Path(filepath)<\/p>\n<p>    return path.suffix.lower()<\/p>\n<h2><strong>\u793a\u4f8b<\/strong><\/h2>\n<p>filepath = &#39;example.JPG&#39;<\/p>\n<p>print(get_file_extension(filepath))  # \u8f93\u51fa: .jpg<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li>\u591a\u91cd\u6269\u5c55\u540d\u5904\u7406<\/li>\n<\/ol>\n<p><p>\u6709\u4e9b\u6587\u4ef6\u53ef\u80fd\u5305\u542b\u591a\u91cd\u6269\u5c55\u540d\uff0c\u4f8b\u5982&#39;tar.gz&#39;\u6216&#39;.tar.bz2&#39;\u3002\u5728\u5904\u7406\u8fd9\u7c7b\u6587\u4ef6\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7\u591a\u6b21\u4f7f\u7528os.path.splitext()\u6216pathlib\u6a21\u5757\u7684stem\u5c5e\u6027\u6765\u83b7\u53d6\u591a\u91cd\u6269\u5c55\u540d\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def get_multiple_extensions(filepath):<\/p>\n<p>    path = Path(filepath)<\/p>\n<p>    extensions = []<\/p>\n<p>    while path.suffix:<\/p>\n<p>        extensions.append(path.suffix)<\/p>\n<p>        path = Path(path.stem)<\/p>\n<p>    return &#39;&#39;.join(reversed(extensions))<\/p>\n<h2><strong>\u793a\u4f8b<\/strong><\/h2>\n<p>filepath = &#39;example.tar.gz&#39;<\/p>\n<p>print(get_multiple_extensions(filepath))  # \u8f93\u51fa: .tar.gz<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"3\">\n<li>\u6587\u4ef6\u8def\u5f84\u4e2d\u7684\u70b9\u53f7\u5904\u7406<\/li>\n<\/ol>\n<p><p>\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u6587\u4ef6\u8def\u5f84\u4e2d\u7684\u76ee\u5f55\u540d\u6216\u6587\u4ef6\u540d\u53ef\u80fd\u5305\u542b\u70b9\u53f7\uff0c\u9700\u8981\u6ce8\u610f\u4e0d\u8981\u5c06\u8fd9\u4e9b\u70b9\u53f7\u8bef\u8ba4\u4e3a\u662f\u6269\u5c55\u540d\u7684\u5206\u9694\u7b26\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def get_file_extension(filepath):<\/p>\n<p>    path = Path(filepath)<\/p>\n<p>    if path.is_dir():<\/p>\n<p>        return &#39;&#39;<\/p>\n<p>    return path.suffix<\/p>\n<h2><strong>\u793a\u4f8b<\/strong><\/h2>\n<p>filepath = &#39;example.folder\/example.txt&#39;<\/p>\n<p>print(get_file_extension(filepath))  # \u8f93\u51fa: .txt<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7is_dir()\u65b9\u6cd5\u53ef\u4ee5\u5224\u65ad\u8def\u5f84\u662f\u5426\u4e3a\u76ee\u5f55\uff0c\u4ece\u800c\u907f\u514d\u8bef\u5c06\u76ee\u5f55\u540d\u4e2d\u7684\u70b9\u53f7\u5f53\u4f5c\u6269\u5c55\u540d\u7684\u5206\u9694\u7b26\u3002<\/p>\n<\/p>\n<p><p>\u516d\u3001\u603b\u7ed3<\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u672c\u6587\u7684\u4ecb\u7ecd\uff0c\u6211\u4eec\u4e86\u89e3\u4e86Python\u663e\u793a\u6587\u4ef6\u540d\u540e\u7f00\u7684\u591a\u79cd\u65b9\u6cd5\uff0c\u5305\u62ec\u4f7f\u7528os.path\u6a21\u5757\u3001pathlib\u6a21\u5757\u3001split\u65b9\u6cd5\u7b49\u3002\u6bcf\u79cd\u65b9\u6cd5\u90fd\u6709\u5176\u4f18\u7f3a\u70b9\uff0c\u5177\u4f53\u9009\u62e9\u54ea\u79cd\u65b9\u6cd5\u53ef\u4ee5\u6839\u636e\u5b9e\u9645\u9700\u6c42\u548c\u7f16\u7a0b\u4e60\u60ef\u6765\u51b3\u5b9a\u3002\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u8fd8\u9700\u8981\u6ce8\u610f\u5904\u7406\u6587\u4ef6\u6269\u5c55\u540d\u5927\u5c0f\u5199\u3001\u591a\u91cd\u6269\u5c55\u540d\u3001\u6587\u4ef6\u8def\u5f84\u4e2d\u7684\u70b9\u53f7\u7b49\u7279\u6b8a\u60c5\u51b5\u3002\u5e0c\u671b\u672c\u6587\u80fd\u5e2e\u52a9\u4f60\u66f4\u597d\u5730\u638c\u63e1Python\u6587\u4ef6\u540d\u540e\u7f00\u7684\u83b7\u53d6\u65b9\u6cd5\uff0c\u63d0\u9ad8\u7f16\u7a0b\u6548\u7387\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u83b7\u53d6\u6587\u4ef6\u540d\u7684\u540e\u7f00\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528<code>os.path<\/code>\u6a21\u5757\u6216<code>pathlib<\/code>\u6a21\u5757\u6765\u83b7\u53d6\u6587\u4ef6\u540d\u7684\u540e\u7f00\u3002\u4f8b\u5982\uff0c\u4f7f\u7528<code>os.path.splitext()<\/code>\u65b9\u6cd5\u53ef\u4ee5\u8f7b\u677e\u5206\u79bb\u6587\u4ef6\u540d\u548c\u540e\u7f00\u3002\u4ee3\u7801\u793a\u4f8b\u5982\u4e0b\uff1a<\/p>\n<pre><code class=\"language-python\">import os\n\nfilename = &quot;example.txt&quot;\nname, extension = os.path.splitext(filename)\nprint(extension)  # \u8f93\u51fa: .txt\n<\/code><\/pre>\n<p>\u53e6\u5916\uff0c\u4f7f\u7528<code>pathlib<\/code>\u6a21\u5757\u7684<code>Path<\/code>\u7c7b\u4e5f\u5f88\u65b9\u4fbf\uff1a<\/p>\n<pre><code class=\"language-python\">from pathlib import Path\n\nfilename = Path(&quot;example.txt&quot;)\nprint(filename.suffix)  # \u8f93\u51fa: .txt\n<\/code><\/pre>\n<p><strong>\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u53ef\u4ee5\u83b7\u53d6\u6587\u4ef6\u540e\u7f00\u5417\uff1f<\/strong><br \/>\u662f\u7684\uff0c\u6b63\u5219\u8868\u8fbe\u5f0f\u53ef\u4ee5\u7528\u4e8e\u63d0\u53d6\u6587\u4ef6\u540d\u540e\u7f00\u3002\u901a\u8fc7<code>re<\/code>\u6a21\u5757\uff0c\u53ef\u4ee5\u5339\u914d\u6587\u4ef6\u540d\u4e2d\u7684\u540e\u7f00\u90e8\u5206\u3002\u4f8b\u5982\uff1a<\/p>\n<pre><code class=\"language-python\">import re\n\nfilename = &quot;example.txt&quot;\nmatch = re.search(r&#39;\\.[^.]+$&#39;, filename)\nif match:\n    print(match.group())  # \u8f93\u51fa: .txt\n<\/code><\/pre>\n<p>\u8fd9\u79cd\u65b9\u6cd5\u63d0\u4f9b\u4e86\u7075\u6d3b\u6027\uff0c\u53ef\u4ee5\u7528\u4e8e\u66f4\u590d\u6742\u7684\u6587\u4ef6\u540d\u6a21\u5f0f\u3002<\/p>\n<p><strong>\u5728\u5904\u7406\u591a\u4e2a\u6587\u4ef6\u65f6\uff0c\u5982\u4f55\u6279\u91cf\u83b7\u53d6\u540e\u7f00\uff1f<\/strong><br \/>\u53ef\u4ee5\u4f7f\u7528\u5faa\u73af\u7ed3\u5408\u4e0a\u8ff0\u65b9\u6cd5\u6765\u6279\u91cf\u83b7\u53d6\u591a\u4e2a\u6587\u4ef6\u7684\u540e\u7f00\u3002\u5047\u8bbe\u6709\u4e00\u4e2a\u6587\u4ef6\u5217\u8868\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u4ee3\u7801\uff1a<\/p>\n<pre><code class=\"language-python\">import os\n\nfiles = [&quot;file1.txt&quot;, &quot;file2.pdf&quot;, &quot;file3.docx&quot;]\nextensions = [os.path.splitext(file)[1] for file in files]\nprint(extensions)  # \u8f93\u51fa: [&#39;.txt&#39;, &#39;.pdf&#39;, &#39;.docx&#39;]\n<\/code><\/pre>\n<p>\u8fd9\u6bb5\u4ee3\u7801\u4f7f\u7528\u5217\u8868\u63a8\u5bfc\u5f0f\uff0c\u5feb\u901f\u83b7\u53d6\u5e76\u5b58\u50a8\u6240\u6709\u6587\u4ef6\u7684\u540e\u7f00\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u663e\u793a\u6587\u4ef6\u540d\u540e\u7f00\u7684\u65b9\u6cd5\u6709\u4f7f\u7528os.path\u3001pathlib\u6a21\u5757\u3001\u548csplit\u65b9\u6cd5\u7b49\u3002 \u5176\u4e2d\uff0c\u6700\u5e38\u7528\u7684 [&hellip;]","protected":false},"author":3,"featured_media":1082164,"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\/1082161"}],"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=1082161"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1082161\/revisions"}],"predecessor-version":[{"id":1082165,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1082161\/revisions\/1082165"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1082164"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1082161"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1082161"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1082161"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}