{"id":997535,"date":"2024-12-27T09:24:58","date_gmt":"2024-12-27T01:24:58","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/997535.html"},"modified":"2024-12-27T09:25:04","modified_gmt":"2024-12-27T01:25:04","slug":"python%e5%a6%82%e4%bd%95%e5%9b%ba%e5%ae%9a%e7%ac%a6%e5%8f%b7%e4%bd%8d%e7%bd%ae","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/997535.html","title":{"rendered":"python\u5982\u4f55\u56fa\u5b9a\u7b26\u53f7\u4f4d\u7f6e"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25073324\/68c86d43-10e5-423b-bdfc-07a88a678b00.webp\" alt=\"python\u5982\u4f55\u56fa\u5b9a\u7b26\u53f7\u4f4d\u7f6e\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\u56fa\u5b9a\u7b26\u53f7\u4f4d\u7f6e\u7684\u65b9\u6cd5\u5305\u62ec\uff1a\u4f7f\u7528\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u51fd\u6570\u3001\u5229\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u548c\u5b57\u7b26\u4e32\u7684\u5185\u7f6e\u65b9\u6cd5<\/strong>\u3002\u5176\u4e2d\uff0c\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u51fd\u6570\u63d0\u4f9b\u4e86\u7075\u6d3b\u7684\u65b9\u5f0f\u6765\u5bf9\u9f50\u548c\u8bbe\u7f6e\u7b26\u53f7\u4f4d\u7f6e\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u5bf9\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u51fd\u6570\u5c55\u5f00\u8be6\u7ec6\u63cf\u8ff0\u3002<\/p>\n<\/p>\n<p><p>\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u662fPython\u4e2d\u5904\u7406\u548c\u64cd\u4f5c\u5b57\u7b26\u4e32\u7684\u4e00\u79cd\u91cd\u8981\u65b9\u6cd5\u3002\u901a\u8fc7\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\uff0c\u6211\u4eec\u53ef\u4ee5\u65b9\u4fbf\u5730\u5c06\u7b26\u53f7\u3001\u6570\u5b57\u6216\u6587\u672c\u5bf9\u9f50\u5230\u6307\u5b9a\u7684\u4f4d\u7f6e\uff0c\u5e76\u8fdb\u884c\u683c\u5f0f\u5316\u8f93\u51fa\u3002Python\u63d0\u4f9b\u4e86\u591a\u79cd\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u65b9\u6cd5\uff0c\u5305\u62ec\u65e7\u5f0f\u7684\u767e\u5206\u53f7\u683c\u5f0f\u5316\u3001\u65b0\u5f0f\u7684str.format()\u65b9\u6cd5\u4ee5\u53caPython 3.6\u5f15\u5165\u7684f-string\uff08\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\u5b57\u9762\u503c\uff09\u3002\u8fd9\u4e9b\u65b9\u6cd5\u90fd\u53ef\u4ee5\u7528\u6765\u56fa\u5b9a\u7b26\u53f7\u4f4d\u7f6e\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u51fd\u6570<\/h3>\n<\/p>\n<p><p>Python\u7684\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u51fd\u6570\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u8f7b\u677e\u5730\u5bf9\u9f50\u6587\u672c\u5185\u5bb9\uff0c\u4ece\u800c\u5728\u8f93\u51fa\u4e2d\u56fa\u5b9a\u7b26\u53f7\u7684\u4f4d\u7f6e\u3002<\/p>\n<\/p>\n<p><h4>1.1 \u767e\u5206\u53f7\u683c\u5f0f\u5316<\/h4>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u4f7f\u7528\u767e\u5206\u53f7 (%) \u53ef\u4ee5\u8fdb\u884c\u7b80\u5355\u7684\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u3002\u8fd9\u4e2a\u65b9\u6cd5\u76f8\u5bf9\u8f83\u8001\uff0c\u4f46\u4ecd\u7136\u88ab\u5e7f\u6cdb\u4f7f\u7528\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u4f7f\u7528\u767e\u5206\u53f7\u683c\u5f0f\u5316<\/p>\n<p>name = &quot;Alice&quot;<\/p>\n<p>age = 30<\/p>\n<p>formatted_string = &quot;Name: %s, Age: %d&quot; % (name, age)<\/p>\n<p>print(formatted_string)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u5b57\u7b26\u4e32\u4e2d\u7684 <code>%s<\/code> \u548c <code>%d<\/code> \u5206\u522b\u7528\u4e8e\u5360\u4f4d\u5b57\u7b26\u4e32\u548c\u6574\u6570\u3002\u901a\u8fc7\u8fd9\u79cd\u65b9\u6cd5\uff0c\u4f60\u53ef\u4ee5\u5c06\u7b26\u53f7\u548c\u6587\u5b57\u6309\u7167\u4f60\u60f3\u8981\u7684\u65b9\u5f0f\u8fdb\u884c\u5bf9\u9f50\u3002<\/p>\n<\/p>\n<p><h4>1.2 str.format() \u65b9\u6cd5<\/h4>\n<\/p>\n<p><p>str.format() \u662f\u4e00\u79cd\u66f4\u73b0\u4ee3\u7684\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u65b9\u6cd5\uff0c\u63d0\u4f9b\u4e86\u66f4\u591a\u7684\u529f\u80fd\u548c\u7075\u6d3b\u6027\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u4f7f\u7528 str.format()<\/p>\n<p>name = &quot;Bob&quot;<\/p>\n<p>age = 25<\/p>\n<p>formatted_string = &quot;Name: {}, Age: {}&quot;.format(name, age)<\/p>\n<p>print(formatted_string)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>str.format() \u65b9\u6cd5\u5141\u8bb8\u6211\u4eec\u4f7f\u7528\u82b1\u62ec\u53f7 <code>{}<\/code> \u4f5c\u4e3a\u5360\u4f4d\u7b26\uff0c\u5e76\u901a\u8fc7 <code>format()<\/code> \u51fd\u6570\u4f20\u9012\u53c2\u6570\u8fdb\u884c\u66ff\u6362\u3002\u8fd9\u79cd\u65b9\u6cd5\u6bd4\u767e\u5206\u53f7\u683c\u5f0f\u5316\u66f4\u5177\u53ef\u8bfb\u6027\u548c\u7075\u6d3b\u6027\u3002<\/p>\n<\/p>\n<p><h4>1.3 f-string\uff08\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\u5b57\u9762\u503c\uff09<\/h4>\n<\/p>\n<p><p>f-string \u662f Python 3.6 \u5f15\u5165\u7684\u4e00\u79cd\u65b0\u7684\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u65b9\u6cd5\u3002\u5b83\u901a\u8fc7\u5728\u5b57\u7b26\u4e32\u524d\u52a0\u4e0a <code>f<\/code>\uff0c\u5141\u8bb8\u6211\u4eec\u5728\u5b57\u7b26\u4e32\u4e2d\u76f4\u63a5\u5d4c\u5165\u53d8\u91cf\u503c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u4f7f\u7528 f-string<\/p>\n<p>name = &quot;Carol&quot;<\/p>\n<p>age = 28<\/p>\n<p>formatted_string = f&quot;Name: {name}, Age: {age}&quot;<\/p>\n<p>print(formatted_string)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>f-string \u63d0\u4f9b\u4e86\u6700\u7b80\u6d01\u548c\u9ad8\u6548\u7684\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u65b9\u5f0f\uff0c\u652f\u6301\u5d4c\u5165\u8868\u8fbe\u5f0f\u548c\u8fdb\u884c\u590d\u6742\u7684\u683c\u5f0f\u5316\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u5229\u7528\u6b63\u5219\u8868\u8fbe\u5f0f<\/h3>\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\u7528\u4e8e\u5339\u914d\u548c\u64cd\u4f5c\u5b57\u7b26\u4e32\u4e2d\u7684\u7b26\u53f7\u4f4d\u7f6e\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><pre><code class=\"language-python\">import re<\/p>\n<h2><strong>\u793a\u4f8b\uff1a\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u56fa\u5b9a\u7b26\u53f7\u4f4d\u7f6e<\/strong><\/h2>\n<p>text = &quot;The price is $100.50&quot;<\/p>\n<p>pattern = r&quot;\\$\\d+\\.\\d{2}&quot;<\/p>\n<p>match = re.search(pattern, text)<\/p>\n<p>if match:<\/p>\n<p>    print(&quot;Price found:&quot;, match.group())<\/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&quot;\\$\\d+\\.\\d{2}&quot;<\/code> \u6765\u5339\u914d\u6587\u672c\u4e2d\u7684\u4ef7\u683c\u683c\u5f0f\u3002\u6b63\u5219\u8868\u8fbe\u5f0f\u63d0\u4f9b\u4e86\u5f3a\u5927\u7684\u6a21\u5f0f\u5339\u914d\u80fd\u529b\uff0c\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u5b9a\u4f4d\u548c\u56fa\u5b9a\u7b26\u53f7\u7684\u4f4d\u7f6e\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u4f7f\u7528\u5b57\u7b26\u4e32\u7684\u5185\u7f6e\u65b9\u6cd5<\/h3>\n<\/p>\n<p><p>Python \u63d0\u4f9b\u4e86\u8bb8\u591a\u5b57\u7b26\u4e32\u7684\u5185\u7f6e\u65b9\u6cd5\uff0c\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u5904\u7406\u548c\u56fa\u5b9a\u7b26\u53f7\u4f4d\u7f6e\u3002\u4f8b\u5982\uff0c<code>str.ljust()<\/code>\u3001<code>str.rjust()<\/code> \u548c <code>str.center()<\/code> \u65b9\u6cd5\u53ef\u4ee5\u7528\u4e8e\u5bf9\u9f50\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u4f7f\u7528\u5b57\u7b26\u4e32\u5185\u7f6e\u65b9\u6cd5\u56fa\u5b9a\u7b26\u53f7\u4f4d\u7f6e<\/p>\n<p>text = &quot;Hello&quot;<\/p>\n<p>left_aligned = text.ljust(10, &#39;-&#39;)<\/p>\n<p>right_aligned = text.rjust(10, &#39;-&#39;)<\/p>\n<p>center_aligned = text.center(10, &#39;-&#39;)<\/p>\n<p>print(f&quot;Left Aligned: {left_aligned}&quot;)<\/p>\n<p>print(f&quot;Right Aligned: {right_aligned}&quot;)<\/p>\n<p>print(f&quot;Center Aligned: {center_aligned}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528 <code>ljust()<\/code>\u3001<code>rjust()<\/code> \u548c <code>center()<\/code> \u65b9\u6cd5\uff0c\u5c06\u5b57\u7b26\u4e32 <code>text<\/code> \u5206\u522b\u5de6\u5bf9\u9f50\u3001\u53f3\u5bf9\u9f50\u548c\u5c45\u4e2d\u5bf9\u9f50\uff0c\u5e76\u7528 <code>-<\/code> \u53f7\u586b\u5145\u7a7a\u767d\u533a\u57df\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u7ed3\u5408\u591a\u79cd\u65b9\u6cd5\u5b9e\u73b0\u590d\u6742\u683c\u5f0f\u5316<\/h3>\n<\/p>\n<p><p>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u6211\u4eec\u5e38\u5e38\u9700\u8981\u7ed3\u5408\u591a\u79cd\u65b9\u6cd5\u6765\u5b9e\u73b0\u590d\u6742\u7684\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u548c\u7b26\u53f7\u4f4d\u7f6e\u56fa\u5b9a\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u7ed3\u5408\u4f7f\u7528\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u51fd\u6570\u548c\u6b63\u5219\u8868\u8fbe\u5f0f\uff0c\u6765\u5904\u7406\u6587\u672c\u4e2d\u7684\u7279\u5b9a\u683c\u5f0f\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import re<\/p>\n<h2><strong>\u590d\u6742\u683c\u5f0f\u5316\u793a\u4f8b<\/strong><\/h2>\n<p>data = &quot;Product: {name}, Price: ${price:.2f}, Quantity: {quantity}&quot;<\/p>\n<p>formatted_data = data.format(name=&quot;Widget&quot;, price=19.99, quantity=5)<\/p>\n<h2><strong>\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u66ff\u6362\u4ef7\u683c\u7b26\u53f7\u4f4d\u7f6e<\/strong><\/h2>\n<p>pattern = r&quot;\\$(\\d+\\.\\d{2})&quot;<\/p>\n<p>replacement = r&quot;USD \\1&quot;<\/p>\n<p>final_output = re.sub(pattern, replacement, formatted_data)<\/p>\n<p>print(final_output)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u9996\u5148\u4f7f\u7528 <code>str.format()<\/code> \u65b9\u6cd5\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\uff0c\u7136\u540e\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u66ff\u6362\u4ef7\u683c\u7b26\u53f7\u7684\u4f4d\u7f6e\uff0c\u5b9e\u73b0\u4e86\u66f4\u4e3a\u590d\u6742\u7684\u683c\u5f0f\u5316\u9700\u6c42\u3002<\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u7ed3\u5408\u4f7f\u7528\u8fd9\u4e9b\u65b9\u6cd5\uff0cPython \u80fd\u591f\u7075\u6d3b\u5730\u5904\u7406\u548c\u56fa\u5b9a\u7b26\u53f7\u4f4d\u7f6e\uff0c\u6ee1\u8db3\u5404\u79cd\u6587\u672c\u5904\u7406\u9700\u6c42\u3002\u5728\u9009\u62e9\u65b9\u6cd5\u65f6\uff0c\u5e94\u6839\u636e\u5177\u4f53\u9700\u6c42\u548c Python \u7248\u672c\uff0c\u9009\u62e9\u6700\u5408\u9002\u7684\u65b9\u5f0f\u8fdb\u884c\u5b9e\u73b0\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5728Python\u4e2d\uff0c\u5982\u4f55\u5728\u8f93\u51fa\u4e2d\u4fdd\u6301\u7b26\u53f7\u7684\u5bf9\u9f50\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\u6765\u4fdd\u6301\u7b26\u53f7\u7684\u5bf9\u9f50\u3002\u4f8b\u5982\uff0c\u4f7f\u7528<code>format()<\/code>\u65b9\u6cd5\u6216\u8005f-string\u53ef\u4ee5\u6307\u5b9a\u7b26\u53f7\u7684\u5bbd\u5ea6\u548c\u5bf9\u9f50\u65b9\u5f0f\u3002\u901a\u8fc7\u8bbe\u7f6e\u5b57\u6bb5\u5bbd\u5ea6\uff0c\u53ef\u4ee5\u786e\u4fdd\u5728\u8f93\u51fa\u65f6\u7b26\u53f7\u4f4d\u7f6e\u4fdd\u6301\u4e00\u81f4\u3002\u793a\u4f8b\u4ee3\u7801\uff1a  <\/p>\n<pre><code class=\"language-python\">values = [1.234, 23.45, 456.789]\nfor value in values:\n    print(f&quot;{value:&gt;10.2f}&quot;)  # \u53f3\u5bf9\u9f50\uff0c\u5bbd\u5ea6\u4e3a10\uff0c\u5c0f\u6570\u70b9\u540e\u4fdd\u75592\u4f4d\n<\/code><\/pre>\n<p><strong>\u5982\u4f55\u5728Python\u4e2d\u5904\u7406\u6587\u672c\u65f6\u4fdd\u6301\u7b26\u53f7\u7684\u56fa\u5b9a\u4f4d\u7f6e\uff1f<\/strong><br \/>\u5904\u7406\u6587\u672c\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7\u5b57\u7b26\u4e32\u7684<code>ljust()<\/code>, <code>rjust()<\/code>\u6216<code>center()<\/code>\u65b9\u6cd5\u6765\u4fdd\u6301\u7b26\u53f7\u7684\u56fa\u5b9a\u4f4d\u7f6e\u3002\u8fd9\u4e9b\u65b9\u6cd5\u53ef\u4ee5\u5e2e\u52a9\u4f60\u5728\u6587\u672c\u4e2d\u6dfb\u52a0\u7a7a\u683c\uff0c\u786e\u4fdd\u7b26\u53f7\u5728\u7279\u5b9a\u4f4d\u7f6e\u663e\u793a\u3002\u4f8b\u5982\uff1a  <\/p>\n<pre><code class=\"language-python\">text = &quot;Python&quot;\nprint(text.ljust(10, &#39;-&#39;))  # \u5de6\u5bf9\u9f50\uff0c\u5bbd\u5ea6\u4e3a10\uff0c\u7528&#39;-&#39;\u586b\u5145\n<\/code><\/pre>\n<p><strong>\u5728Python\u7684\u5217\u8868\u6216\u5b57\u5178\u4e2d\uff0c\u5982\u4f55\u786e\u4fdd\u7b26\u53f7\u4f4d\u7f6e\u4e00\u81f4\uff1f<\/strong><br \/>\u5728\u5904\u7406\u5217\u8868\u6216\u5b57\u5178\u65f6\uff0c\u53ef\u4ee5\u7ed3\u5408\u4f7f\u7528\u5faa\u73af\u548c\u683c\u5f0f\u5316\u8f93\u51fa\uff0c\u786e\u4fdd\u6bcf\u4e2a\u5143\u7d20\u7684\u7b26\u53f7\u4f4d\u7f6e\u4e00\u81f4\u3002\u5bf9\u4e8e\u5b57\u5178\uff0c\u53ef\u4ee5\u901a\u8fc7<code>items()<\/code>\u65b9\u6cd5\u904d\u5386\u952e\u503c\u5bf9\uff0c\u5e76\u4f7f\u7528\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\u6765\u4fdd\u6301\u7b26\u53f7\u7684\u5bf9\u9f50\u3002\u4f8b\u5982\uff1a  <\/p>\n<pre><code class=\"language-python\">data = {&#39;a&#39;: 1, &#39;bb&#39;: 22, &#39;ccc&#39;: 333}\nfor key, value in data.items():\n    print(f&quot;{key:&lt;5}: {value:&gt;3}&quot;)  # \u7b26\u53f7\u5bf9\u9f50\uff0c\u952e\u5de6\u5bf9\u9f50\uff0c\u503c\u53f3\u5bf9\u9f50\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\u56fa\u5b9a\u7b26\u53f7\u4f4d\u7f6e\u7684\u65b9\u6cd5\u5305\u62ec\uff1a\u4f7f\u7528\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u51fd\u6570\u3001\u5229\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u548c\u5b57\u7b26\u4e32\u7684\u5185\u7f6e\u65b9\u6cd5\u3002\u5176\u4e2d\uff0c\u5b57\u7b26\u4e32\u683c [&hellip;]","protected":false},"author":3,"featured_media":997553,"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\/997535"}],"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=997535"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/997535\/revisions"}],"predecessor-version":[{"id":997554,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/997535\/revisions\/997554"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/997553"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=997535"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=997535"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=997535"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}