{"id":1145436,"date":"2025-01-08T23:08:12","date_gmt":"2025-01-08T15:08:12","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1145436.html"},"modified":"2025-01-08T23:08:14","modified_gmt":"2025-01-08T15:08:14","slug":"python%e5%a6%82%e4%bd%95%e6%8f%90%e5%8f%96%e6%9c%80%e5%90%8e%e4%b8%80%e4%b8%aa%e5%ad%97%e7%ac%a6%e4%b8%b2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1145436.html","title":{"rendered":"python\u5982\u4f55\u63d0\u53d6\u6700\u540e\u4e00\u4e2a\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\/24182026\/f61b2575-aa1c-443c-8115-fa3712cdbb1c.webp\" alt=\"python\u5982\u4f55\u63d0\u53d6\u6700\u540e\u4e00\u4e2a\u5b57\u7b26\u4e32\" \/><\/p>\n<p><p> <strong>\u76f4\u63a5\u4f7f\u7528\u8d1f\u7d22\u5f15\u3001\u4f7f\u7528split\u65b9\u6cd5\u3001\u6b63\u5219\u8868\u8fbe\u5f0f\u3001\u4f7f\u7528os.path\u5e93<\/strong><\/p>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u63d0\u53d6\u5b57\u7b26\u4e32\u7684\u6700\u540e\u4e00\u4e2a\u5143\u7d20\u6709\u591a\u79cd\u65b9\u6cd5\u3002<strong>\u76f4\u63a5\u4f7f\u7528\u8d1f\u7d22\u5f15<\/strong>\u662f\u4e00\u79cd\u7b80\u5355\u4e14\u76f4\u63a5\u7684\u65b9\u6cd5\uff0c\u5c24\u5176\u9002\u7528\u4e8e\u56fa\u5b9a\u683c\u5f0f\u7684\u5b57\u7b26\u4e32\u3002\u5f53\u5b57\u7b26\u4e32\u683c\u5f0f\u590d\u6742\u6216\u4e0d\u56fa\u5b9a\u65f6\uff0c<strong>\u4f7f\u7528split\u65b9\u6cd5<\/strong>\u548c<strong>\u6b63\u5219\u8868\u8fbe\u5f0f<\/strong>\u53ef\u4ee5\u63d0\u4f9b\u66f4\u7075\u6d3b\u7684\u89e3\u51b3\u65b9\u6848\u3002\u5bf9\u4e8e\u6587\u4ef6\u8def\u5f84\u7b49\u7279\u5b9a\u573a\u666f\uff0c<strong>os.path\u5e93<\/strong>\u662f\u4e00\u4e2a\u5f3a\u5927\u4e14\u65b9\u4fbf\u7684\u5de5\u5177\u3002\u4ee5\u4e0b\u662f\u5bf9<strong>\u76f4\u63a5\u4f7f\u7528\u8d1f\u7d22\u5f15<\/strong>\u8fd9\u4e00\u65b9\u6cd5\u7684\u8be6\u7ec6\u63cf\u8ff0\u3002<\/p>\n<\/p>\n<p><p><strong>\u76f4\u63a5\u4f7f\u7528\u8d1f\u7d22\u5f15<\/strong>\u662f\u4e00\u79cd\u975e\u5e38\u7b80\u5355\u7684\u65b9\u6cd5\u3002Python\u4e2d\u7684\u8d1f\u7d22\u5f15\u5141\u8bb8\u4f60\u4ece\u5b57\u7b26\u4e32\u6216\u5217\u8868\u7684\u672b\u5c3e\u5f00\u59cb\u8ba1\u6570\uff0c\u8fd9\u4f7f\u5f97\u63d0\u53d6\u6700\u540e\u4e00\u4e2a\u5143\u7d20\u53d8\u5f97\u975e\u5e38\u76f4\u89c2\u3002\u5047\u8bbe\u4f60\u6709\u4e00\u4e2a\u5b57\u7b26\u4e32<code>my_string = &quot;Hello, World!&quot;<\/code>\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7<code>my_string[-1]<\/code>\u6765\u83b7\u53d6\u6700\u540e\u4e00\u4e2a\u5b57\u7b26\uff0c\u5373<code>&#39;!&#39;<\/code>\u3002\u8fd9\u79cd\u65b9\u6cd5\u4e0d\u4ec5\u7b80\u6d01\uff0c\u800c\u4e14\u6267\u884c\u6548\u7387\u9ad8\uff0c\u975e\u5e38\u9002\u5408\u5904\u7406\u7b80\u5355\u7684\u5b57\u7b26\u4e32\u63d0\u53d6\u4efb\u52a1\u3002<\/p>\n<\/p>\n<p><p>\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u63a2\u8ba8\u4e0a\u8ff0\u51e0\u79cd\u65b9\u6cd5\uff0c\u5305\u62ec\u5b83\u4eec\u7684\u4f18\u7f3a\u70b9\u4ee5\u53ca\u9002\u7528\u573a\u666f\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u76f4\u63a5\u4f7f\u7528\u8d1f\u7d22\u5f15<\/h3>\n<\/p>\n<p><p>\u8d1f\u7d22\u5f15\u662f\u4e00\u79cd\u975e\u5e38\u76f4\u89c2\u7684\u65b9\u6cd5\uff0c\u9002\u7528\u4e8e\u7b80\u5355\u7684\u5b57\u7b26\u4e32\u5904\u7406\u4efb\u52a1\u3002<\/p>\n<\/p>\n<p><h4>\u4f18\u70b9<\/h4>\n<\/p>\n<ol>\n<li><strong>\u7b80\u5355\u76f4\u63a5<\/strong>\uff1a\u4ee3\u7801\u7b80\u6d01\uff0c\u6613\u4e8e\u7406\u89e3\u3002<\/li>\n<li><strong>\u9ad8\u6548<\/strong>\uff1a\u6267\u884c\u901f\u5ea6\u5feb\uff0c\u56e0\u4e3a\u5b83\u76f4\u63a5\u8bbf\u95ee\u5185\u5b58\u4e2d\u7684\u5143\u7d20\u3002<\/li>\n<\/ol>\n<p><h4>\u7f3a\u70b9<\/h4>\n<\/p>\n<ol>\n<li><strong>\u5c40\u9650\u6027<\/strong>\uff1a\u53ea\u9002\u7528\u4e8e\u7b80\u5355\u7684\u5b57\u7b26\u4e32\uff0c\u4e0d\u80fd\u5904\u7406\u590d\u6742\u7684\u5b57\u7b26\u4e32\u683c\u5f0f\u3002<\/li>\n<\/ol>\n<p><h4>\u4f8b\u5b50<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\"># \u793a\u4f8b\u4ee3\u7801<\/p>\n<p>my_string = &quot;Hello, World!&quot;<\/p>\n<p>last_char = my_string[-1]<\/p>\n<p>print(last_char)  # \u8f93\u51fa: !<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528<code>-1<\/code>\u7d22\u5f15\u76f4\u63a5\u83b7\u53d6\u4e86\u5b57\u7b26\u4e32\u4e2d\u7684\u6700\u540e\u4e00\u4e2a\u5b57\u7b26<code>&#39;!&#39;<\/code>\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528split\u65b9\u6cd5<\/h3>\n<\/p>\n<p><p><code>split<\/code>\u65b9\u6cd5\u975e\u5e38\u7075\u6d3b\uff0c\u9002\u7528\u4e8e\u5206\u5272\u5b57\u7b26\u4e32\u5e76\u63d0\u53d6\u7279\u5b9a\u90e8\u5206\u3002<\/p>\n<\/p>\n<p><h4>\u4f18\u70b9<\/h4>\n<\/p>\n<ol>\n<li><strong>\u7075\u6d3b<\/strong>\uff1a\u53ef\u4ee5\u6839\u636e\u4e0d\u540c\u7684\u5206\u9694\u7b26\u5206\u5272\u5b57\u7b26\u4e32\u3002<\/li>\n<li><strong>\u9002\u7528\u8303\u56f4\u5e7f<\/strong>\uff1a\u9002\u7528\u4e8e\u5904\u7406\u590d\u6742\u5b57\u7b26\u4e32\u683c\u5f0f\u3002<\/li>\n<\/ol>\n<p><h4>\u7f3a\u70b9<\/h4>\n<\/p>\n<ol>\n<li><strong>\u6027\u80fd\u5f00\u9500<\/strong>\uff1a\u5206\u5272\u5b57\u7b26\u4e32\u9700\u8981\u989d\u5916\u7684\u5185\u5b58\u548c\u8ba1\u7b97\u8d44\u6e90\u3002<\/li>\n<\/ol>\n<p><h4>\u4f8b\u5b50<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\"># \u793a\u4f8b\u4ee3\u7801<\/p>\n<p>my_string = &quot;apple,banana,cherry&quot;<\/p>\n<p>last_part = my_string.split(&quot;,&quot;)[-1]<\/p>\n<p>print(last_part)  # \u8f93\u51fa: cherry<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528\u9017\u53f7\u4f5c\u4e3a\u5206\u9694\u7b26\uff0c\u5c06\u5b57\u7b26\u4e32\u5206\u5272\u6210\u4e00\u4e2a\u5217\u8868\uff0c\u7136\u540e\u63d0\u53d6\u6700\u540e\u4e00\u4e2a\u5143\u7d20<code>&#39;cherry&#39;<\/code>\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u6b63\u5219\u8868\u8fbe\u5f0f<\/h3>\n<\/p>\n<p><p>\u6b63\u5219\u8868\u8fbe\u5f0f\u63d0\u4f9b\u4e86\u5f3a\u5927\u7684\u5b57\u7b26\u4e32\u6a21\u5f0f\u5339\u914d\u548c\u63d0\u53d6\u529f\u80fd\u3002<\/p>\n<\/p>\n<p><h4>\u4f18\u70b9<\/h4>\n<\/p>\n<ol>\n<li><strong>\u5f3a\u5927<\/strong>\uff1a\u53ef\u4ee5\u5904\u7406\u975e\u5e38\u590d\u6742\u7684\u5b57\u7b26\u4e32\u6a21\u5f0f\u3002<\/li>\n<li><strong>\u7075\u6d3b<\/strong>\uff1a\u652f\u6301\u591a\u79cd\u5339\u914d\u548c\u63d0\u53d6\u65b9\u5f0f\u3002<\/li>\n<\/ol>\n<p><h4>\u7f3a\u70b9<\/h4>\n<\/p>\n<ol>\n<li><strong>\u590d\u6742\u6027<\/strong>\uff1a\u6b63\u5219\u8868\u8fbe\u5f0f\u7684\u8bed\u6cd5\u8f83\u4e3a\u590d\u6742\uff0c\u4e0d\u6613\u638c\u63e1\u3002<\/li>\n<li><strong>\u6027\u80fd<\/strong>\uff1a\u590d\u6742\u7684\u6b63\u5219\u8868\u8fbe\u5f0f\u53ef\u80fd\u5bfc\u81f4\u8f83\u9ad8\u7684\u8ba1\u7b97\u5f00\u9500\u3002<\/li>\n<\/ol>\n<p><h4>\u4f8b\u5b50<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\"># \u793a\u4f8b\u4ee3\u7801<\/p>\n<p>import re<\/p>\n<p>my_string = &quot;apple,banana,cherry&quot;<\/p>\n<p>match = re.search(r&#39;([^,]+)$&#39;, my_string)<\/p>\n<p>if match:<\/p>\n<p>    last_part = match.group(1)<\/p>\n<p>    print(last_part)  # \u8f93\u51fa: cherry<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f<code>r&#39;([^,]+)$&#39;<\/code>\u5339\u914d\u6700\u540e\u4e00\u4e2a\u9017\u53f7\u540e\u7684\u90e8\u5206\uff0c\u5e76\u63d0\u53d6\u51fa\u6765\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u4f7f\u7528os.path\u5e93<\/h3>\n<\/p>\n<p><p><code>os.path<\/code>\u5e93\u7279\u522b\u9002\u7528\u4e8e\u5904\u7406\u6587\u4ef6\u8def\u5f84\u7b49\u7279\u5b9a\u5b57\u7b26\u4e32\u683c\u5f0f\u3002<\/p>\n<\/p>\n<p><h4>\u4f18\u70b9<\/h4>\n<\/p>\n<ol>\n<li><strong>\u4e13\u7528\u6027\u5f3a<\/strong>\uff1a\u7279\u522b\u9002\u5408\u5904\u7406\u6587\u4ef6\u8def\u5f84\u3002<\/li>\n<li><strong>\u8de8\u5e73\u53f0<\/strong>\uff1a\u5904\u7406\u4e0d\u540c\u64cd\u4f5c\u7cfb\u7edf\u4e0b\u7684\u8def\u5f84\u683c\u5f0f\u3002<\/li>\n<\/ol>\n<p><h4>\u7f3a\u70b9<\/h4>\n<\/p>\n<ol>\n<li><strong>\u5c40\u9650\u6027<\/strong>\uff1a\u53ea\u9002\u7528\u4e8e\u6587\u4ef6\u8def\u5f84\u7b49\u7279\u5b9a\u573a\u666f\u3002<\/li>\n<\/ol>\n<p><h4>\u4f8b\u5b50<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\"># \u793a\u4f8b\u4ee3\u7801<\/p>\n<p>import os<\/p>\n<p>file_path = &quot;\/home\/user\/documents\/file.txt&quot;<\/p>\n<p>file_name = os.path.basename(file_path)<\/p>\n<p>print(file_name)  # \u8f93\u51fa: file.txt<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528<code>os.path.basename<\/code>\u65b9\u6cd5\u63d0\u53d6\u4e86\u6587\u4ef6\u8def\u5f84\u4e2d\u7684\u6700\u540e\u4e00\u4e2a\u90e8\u5206\uff0c\u5373\u6587\u4ef6\u540d<code>&#39;file.txt&#39;<\/code>\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u5728\u4e0d\u540c\u7684\u573a\u666f\u4e0b\uff0c\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u6765\u63d0\u53d6\u5b57\u7b26\u4e32\u7684\u6700\u540e\u4e00\u4e2a\u5143\u7d20\u662f\u975e\u5e38\u91cd\u8981\u7684\u3002<strong>\u76f4\u63a5\u4f7f\u7528\u8d1f\u7d22\u5f15<\/strong>\u65b9\u6cd5\u7b80\u5355\u9ad8\u6548\uff0c\u9002\u7528\u4e8e\u5904\u7406\u56fa\u5b9a\u683c\u5f0f\u7684\u5b57\u7b26\u4e32\u3002<strong>\u4f7f\u7528split\u65b9\u6cd5<\/strong>\u548c<strong>\u6b63\u5219\u8868\u8fbe\u5f0f<\/strong>\u63d0\u4f9b\u4e86\u66f4\u7075\u6d3b\u7684\u89e3\u51b3\u65b9\u6848\uff0c\u9002\u7528\u4e8e\u590d\u6742\u7684\u5b57\u7b26\u4e32\u5904\u7406\u4efb\u52a1\u3002\u800c\u5728\u5904\u7406\u6587\u4ef6\u8def\u5f84\u7b49\u7279\u5b9a\u573a\u666f\u65f6\uff0c<strong>os.path\u5e93<\/strong>\u662f\u4e00\u4e2a\u5f3a\u5927\u4e14\u65b9\u4fbf\u7684\u5de5\u5177\u3002<\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u6df1\u5165\u7406\u89e3\u548c\u7075\u6d3b\u8fd0\u7528\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u4f60\u53ef\u4ee5\u5728\u4e0d\u540c\u7684\u7f16\u7a0b\u4efb\u52a1\u4e2d\u9ad8\u6548\u5730\u89e3\u51b3\u5b57\u7b26\u4e32\u63d0\u53d6\u95ee\u9898\u3002\u65e0\u8bba\u662f\u7b80\u5355\u7684\u5b57\u7b26\u4e32\u5904\u7406\uff0c\u8fd8\u662f\u590d\u6742\u7684\u6a21\u5f0f\u5339\u914d\uff0c\u8fd9\u4e9b\u65b9\u6cd5\u90fd\u80fd\u4e3a\u4f60\u63d0\u4f9b\u5f3a\u5927\u7684\u652f\u6301\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u63d0\u53d6\u5b57\u7b26\u4e32\u7684\u6700\u540e\u4e00\u4e2a\u5355\u8bcd\uff1f<\/strong><br \/>\u8981\u63d0\u53d6\u5b57\u7b26\u4e32\u4e2d\u7684\u6700\u540e\u4e00\u4e2a\u5355\u8bcd\uff0c\u53ef\u4ee5\u4f7f\u7528\u5b57\u7b26\u4e32\u7684<code>split()<\/code>\u65b9\u6cd5\u5c06\u5b57\u7b26\u4e32\u62c6\u5206\u4e3a\u5355\u8bcd\u5217\u8868\uff0c\u7136\u540e\u8bbf\u95ee\u6700\u540e\u4e00\u4e2a\u5143\u7d20\u3002\u793a\u4f8b\u5982\u4e0b\uff1a  <\/p>\n<pre><code class=\"language-python\">text = &quot;\u8fd9\u662f\u4e00\u4e2a\u793a\u4f8b\u5b57\u7b26\u4e32&quot;\nlast_word = text.split()[-1]\nprint(last_word)  # \u8f93\u51fa: \u5b57\u7b26\u4e32\n<\/code><\/pre>\n<p>\u8fd9\u79cd\u65b9\u6cd5\u9002\u7528\u4e8e\u4ee5\u7a7a\u683c\u5206\u9694\u7684\u5b57\u7b26\u4e32\u3002<\/p>\n<p><strong>\u662f\u5426\u53ef\u4ee5\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u6765\u63d0\u53d6\u5b57\u7b26\u4e32\u7684\u6700\u540e\u4e00\u4e2a\u5355\u8bcd\uff1f<\/strong><br \/>\u53ef\u4ee5\u4f7f\u7528Python\u7684<code>re<\/code>\u6a21\u5757\u6765\u5b9e\u73b0\u8fd9\u4e00\u70b9\u3002\u6b63\u5219\u8868\u8fbe\u5f0f\u63d0\u4f9b\u4e86\u66f4\u7075\u6d3b\u7684\u6a21\u5f0f\u5339\u914d\u529f\u80fd\u3002\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a  <\/p>\n<pre><code class=\"language-python\">import re\ntext = &quot;\u8fd9\u662f\u4e00\u4e2a\u793a\u4f8b\u5b57\u7b26\u4e32&quot;\nlast_word = re.findall(r&#39;\\b\\w+\\b&#39;, text)[-1]\nprint(last_word)  # \u8f93\u51fa: \u5b57\u7b26\u4e32\n<\/code><\/pre>\n<p>\u8fd9\u79cd\u65b9\u6cd5\u9002\u5408\u5904\u7406\u5305\u542b\u6807\u70b9\u7b26\u53f7\u6216\u7279\u6b8a\u5b57\u7b26\u7684\u5b57\u7b26\u4e32\u3002<\/p>\n<p><strong>\u5982\u4f55\u5904\u7406\u7a7a\u5b57\u7b26\u4e32\u6216\u6ca1\u6709\u5355\u8bcd\u7684\u60c5\u51b5\uff1f<\/strong><br \/>\u5728\u63d0\u53d6\u6700\u540e\u4e00\u4e2a\u5355\u8bcd\u4e4b\u524d\uff0c\u68c0\u67e5\u5b57\u7b26\u4e32\u662f\u5426\u4e3a\u7a7a\u6216\u53ea\u5305\u542b\u7a7a\u683c\u975e\u5e38\u91cd\u8981\u3002\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u4ee3\u7801\u5904\u7406\u8fd9\u4e9b\u60c5\u51b5\uff1a  <\/p>\n<pre><code class=\"language-python\">text = &quot;   &quot;  # \u7a7a\u5b57\u7b26\u4e32\nif text.strip():  # \u68c0\u67e5\u662f\u5426\u975e\u7a7a\n    last_word = text.split()[-1]\nelse:\n    last_word = None  # \u6216\u8005\u8bbe\u7f6e\u4e3a\u5176\u4ed6\u9ed8\u8ba4\u503c\nprint(last_word)  # \u8f93\u51fa: None\n<\/code><\/pre>\n<p>\u8fd9\u79cd\u65b9\u5f0f\u786e\u4fdd\u4ee3\u7801\u7684\u5065\u58ee\u6027\uff0c\u907f\u514d\u51fa\u73b0\u9519\u8bef\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u76f4\u63a5\u4f7f\u7528\u8d1f\u7d22\u5f15\u3001\u4f7f\u7528split\u65b9\u6cd5\u3001\u6b63\u5219\u8868\u8fbe\u5f0f\u3001\u4f7f\u7528os.path\u5e93 \u5728Python\u4e2d\uff0c\u63d0\u53d6\u5b57\u7b26\u4e32\u7684\u6700\u540e\u4e00\u4e2a\u5143 [&hellip;]","protected":false},"author":3,"featured_media":1145443,"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\/1145436"}],"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=1145436"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1145436\/revisions"}],"predecessor-version":[{"id":1145444,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1145436\/revisions\/1145444"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1145443"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1145436"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1145436"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1145436"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}