{"id":1170307,"date":"2025-01-15T16:21:01","date_gmt":"2025-01-15T08:21:01","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1170307.html"},"modified":"2025-01-15T16:21:03","modified_gmt":"2025-01-15T08:21:03","slug":"python%e8%be%93%e5%85%a512%e5%a6%82%e4%bd%95%e8%be%93%e5%87%ba012","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1170307.html","title":{"rendered":"python\u8f93\u516512\u5982\u4f55\u8f93\u51fa012"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/26071044\/00c00744-25d0-438c-a510-cdc6c92a52eb.webp\" alt=\"python\u8f93\u516512\u5982\u4f55\u8f93\u51fa012\" \/><\/p>\n<p><p> <strong>\u8981\u5728 Python \u4e2d\u5c06\u8f93\u5165\u7684\u6570\u5b57 12 \u8f6c\u6362\u4e3a\u5e26\u6709\u524d\u5bfc\u96f6\u7684\u5b57\u7b26\u4e32 012\uff0c\u53ef\u4ee5\u4f7f\u7528\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u65b9\u6cd5\uff0c\u5982 f-string\u3001zfill() \u65b9\u6cd5\u6216 format() \u65b9\u6cd5\u3002<\/strong> <\/p>\n<\/p>\n<p><p>\u5176\u4e2d\uff0c<strong>\u4f7f\u7528 zfill() \u65b9\u6cd5\u662f\u6700\u7b80\u5355\u4e14\u76f4\u89c2\u7684\u65b9\u5f0f<\/strong>\u3002zfill() \u65b9\u6cd5\u53ef\u4ee5\u7528\u6765\u5728\u5b57\u7b26\u4e32\u7684\u5f00\u5934\u8865\u5145\u6307\u5b9a\u6570\u91cf\u7684\u96f6\uff0c\u76f4\u5230\u5b57\u7b26\u4e32\u8fbe\u5230\u6307\u5b9a\u7684\u957f\u5ea6\u3002\u4e0b\u9762\u8be6\u7ec6\u8bf4\u660e\u5982\u4f55\u4f7f\u7528 zfill() \u65b9\u6cd5\u6765\u5b8c\u6210\u8fd9\u4e2a\u4efb\u52a1\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">number = input(&quot;\u8bf7\u8f93\u5165\u4e00\u4e2a\u6570\u5b57: &quot;)  # \u5047\u8bbe\u8f93\u5165 12<\/p>\n<p>formatted_number = number.zfill(3)  # 3 \u8868\u793a\u6211\u4eec\u5e0c\u671b\u6700\u7ec8\u5b57\u7b26\u4e32\u7684\u957f\u5ea6\u662f 3<\/p>\n<p>print(formatted_number)  # \u8f93\u51fa 012<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u4f7f\u7528 zfill() \u65b9\u6cd5\uff0c\u6211\u4eec\u53ef\u4ee5\u786e\u4fdd\u5373\u4f7f\u8f93\u5165\u7684\u6570\u5b57\u4f4d\u6570\u4e0d\u8db3 3 \u4f4d\uff0c\u4e5f\u4f1a\u5728\u524d\u9762\u8865\u5145\u8db3\u591f\u7684\u96f6\u4ee5\u8fbe\u5230\u6307\u5b9a\u7684\u957f\u5ea6\u3002<\/p>\n<\/p>\n<hr>\n<p><h3>\u4e00\u3001\u4f7f\u7528\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u65b9\u6cd5<\/h3>\n<\/p>\n<p><h4>1\u3001f-string<\/h4>\n<\/p>\n<p><p>f-string \u662f Python 3.6 \u53ca\u4ee5\u540e\u7684\u7248\u672c\u4e2d\u5f15\u5165\u7684\u4e00\u79cd\u65b0\u7684\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u65b9\u6cd5\u3002\u5b83\u63d0\u4f9b\u4e86\u4e00\u79cd\u7b80\u6d01\u548c\u6613\u8bfb\u7684\u65b9\u5f0f\u6765\u5d4c\u5165\u8868\u8fbe\u5f0f\u548c\u53d8\u91cf\u5230\u5b57\u7b26\u4e32\u4e2d\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">number = int(input(&quot;\u8bf7\u8f93\u5165\u4e00\u4e2a\u6570\u5b57: &quot;))  # \u5047\u8bbe\u8f93\u5165 12<\/p>\n<p>formatted_number = f&quot;{number:03}&quot;  # 03 \u8868\u793a\u5e0c\u671b\u8f93\u51fa\u7684\u5b57\u7b26\u4e32\u957f\u5ea6\u662f 3\uff0c\u5e76\u4e14\u4e0d\u8db3\u7684\u90e8\u5206\u7528\u96f6\u586b\u5145<\/p>\n<p>print(formatted_number)  # \u8f93\u51fa 012<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u91cc\u7684 <code>03<\/code> \u8868\u793a\u6211\u4eec\u5e0c\u671b\u8f93\u51fa\u7684\u5b57\u7b26\u4e32\u603b\u957f\u5ea6\u662f 3 \u4f4d\uff0c\u4e0d\u8db3\u7684\u90e8\u5206\u7528 0 \u586b\u5145\u3002<\/p>\n<\/p>\n<p><h4>2\u3001format() \u65b9\u6cd5<\/h4>\n<\/p>\n<p><p>format() \u65b9\u6cd5\u662f Python 2.7 \u53ca\u4ee5\u540e\u7684\u7248\u672c\u4e2d\u5f15\u5165\u7684\u4e00\u79cd\u65b0\u7684\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u65b9\u6cd5\u3002\u5b83\u63d0\u4f9b\u4e86\u4e00\u79cd\u7075\u6d3b\u7684\u65b9\u5f0f\u6765\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">number = int(input(&quot;\u8bf7\u8f93\u5165\u4e00\u4e2a\u6570\u5b57: &quot;))  # \u5047\u8bbe\u8f93\u5165 12<\/p>\n<p>formatted_number = &quot;{:03}&quot;.format(number)  # 03 \u8868\u793a\u5e0c\u671b\u8f93\u51fa\u7684\u5b57\u7b26\u4e32\u957f\u5ea6\u662f 3\uff0c\u5e76\u4e14\u4e0d\u8db3\u7684\u90e8\u5206\u7528\u96f6\u586b\u5145<\/p>\n<p>print(formatted_number)  # \u8f93\u51fa 012<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u91cc\u7684 <code>{:03}<\/code> \u8868\u793a\u6211\u4eec\u5e0c\u671b\u8f93\u51fa\u7684\u5b57\u7b26\u4e32\u603b\u957f\u5ea6\u662f 3 \u4f4d\uff0c\u4e0d\u8db3\u7684\u90e8\u5206\u7528 0 \u586b\u5145\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u5176\u4ed6\u65b9\u6cd5<\/h3>\n<\/p>\n<p><h4>1\u3001\u4f7f\u7528\u5b57\u7b26\u4e32\u62fc\u63a5\u7684\u65b9\u6cd5<\/h4>\n<\/p>\n<p><p>\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u5b57\u7b26\u4e32\u62fc\u63a5\u7684\u65b9\u6cd5\u6765\u624b\u52a8\u6dfb\u52a0\u524d\u5bfc\u96f6\u3002\u8fd9\u79cd\u65b9\u6cd5\u867d\u7136\u4e0d\u5982\u4e0a\u9762\u51e0\u79cd\u65b9\u6cd5\u7b80\u6d01\uff0c\u4f46\u540c\u6837\u53ef\u4ee5\u8fbe\u5230\u6211\u4eec\u7684\u76ee\u7684\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">number = input(&quot;\u8bf7\u8f93\u5165\u4e00\u4e2a\u6570\u5b57: &quot;)  # \u5047\u8bbe\u8f93\u5165 12<\/p>\n<p>formatted_number = &quot;0&quot; * (3 - len(number)) + number<\/p>\n<p>print(formatted_number)  # \u8f93\u51fa 012<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u9996\u5148\u8ba1\u7b97\u9700\u8981\u6dfb\u52a0\u7684\u524d\u5bfc\u96f6\u7684\u6570\u91cf\uff0c\u7136\u540e\u5c06\u8fd9\u4e9b\u524d\u5bfc\u96f6\u4e0e\u8f93\u5165\u7684\u6570\u5b57\u62fc\u63a5\u5728\u4e00\u8d77\u3002<\/p>\n<\/p>\n<p><h4>2\u3001\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f<\/h4>\n<\/p>\n<p><p>\u6b63\u5219\u8868\u8fbe\u5f0f\u662f\u4e00\u79cd\u5f3a\u5927\u7684\u5b57\u7b26\u4e32\u5339\u914d\u548c\u66ff\u6362\u5de5\u5177\u3002\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u6765\u5b9e\u73b0\u8fd9\u4e2a\u4efb\u52a1\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import re<\/p>\n<p>number = input(&quot;\u8bf7\u8f93\u5165\u4e00\u4e2a\u6570\u5b57: &quot;)  # \u5047\u8bbe\u8f93\u5165 12<\/p>\n<p>formatted_number = re.sub(r&#39;^\\d{1,2}$&#39;, lambda x: x.group(0).zfill(3), number)<\/p>\n<p>print(formatted_number)  # \u8f93\u51fa 012<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528 <code>re.sub()<\/code> \u65b9\u6cd5\u6765\u5339\u914d\u4e00\u4e2a\u6216\u4e24\u4e2a\u6570\u5b57\u7684\u5b57\u7b26\u4e32\uff0c\u5e76\u5c06\u5176\u66ff\u6362\u4e3a\u5e26\u6709\u524d\u5bfc\u96f6\u7684\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u5b9e\u9645\u5e94\u7528\u573a\u666f<\/h3>\n<\/p>\n<p><p>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u5e26\u6709\u524d\u5bfc\u96f6\u7684\u5b57\u7b26\u4e32\u5728\u5f88\u591a\u573a\u666f\u4e0b\u90fd\u6709\u5e7f\u6cdb\u7684\u5e94\u7528\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><h4>1\u3001\u65e5\u671f\u548c\u65f6\u95f4\u683c\u5f0f\u5316<\/h4>\n<\/p>\n<p><p>\u5728\u65e5\u671f\u548c\u65f6\u95f4\u7684\u8868\u793a\u4e2d\uff0c\u901a\u5e38\u4f1a\u4f7f\u7528\u5e26\u6709\u524d\u5bfc\u96f6\u7684\u683c\u5f0f\u3002\u4f8b\u5982\uff0c\u8868\u793a 2023 \u5e74 1 \u6708 2 \u65e5\u7684\u65e5\u671f\u901a\u5e38\u4f1a\u5199\u4f5c <code>2023-01-02<\/code>\uff0c\u800c\u4e0d\u662f <code>2023-1-2<\/code>\u3002\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u4e0a\u8ff0\u65b9\u6cd5\u6765\u683c\u5f0f\u5316\u65e5\u671f\u548c\u65f6\u95f4\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">year = 2023<\/p>\n<p>month = 1<\/p>\n<p>day = 2<\/p>\n<p>formatted_date = f&quot;{year}-{month:02}-{day:02}&quot;<\/p>\n<p>print(formatted_date)  # \u8f93\u51fa 2023-01-02<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u7f16\u53f7\u548c\u5e8f\u5217\u53f7<\/h4>\n<\/p>\n<p><p>\u5728\u5f88\u591a\u7cfb\u7edf\u4e2d\uff0c\u7f16\u53f7\u548c\u5e8f\u5217\u53f7\u901a\u5e38\u4f1a\u4f7f\u7528\u56fa\u5b9a\u957f\u5ea6\u7684\u683c\u5f0f\uff0c\u5e76\u4e14\u4e0d\u8db3\u7684\u90e8\u5206\u7528\u524d\u5bfc\u96f6\u586b\u5145\u3002\u4f8b\u5982\uff0c\u8ba2\u5355\u53f7\u3001\u53d1\u7968\u53f7\u3001\u4ea7\u54c1\u7f16\u53f7\u7b49\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">order_number = 12<\/p>\n<p>formatted_order_number = f&quot;ORD-{order_number:03}&quot;<\/p>\n<p>print(formatted_order_number)  # \u8f93\u51fa ORD-012<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3\u3001\u94f6\u884c\u8d26\u53f7\u548c\u4fe1\u7528\u5361\u53f7<\/h4>\n<\/p>\n<p><p>\u94f6\u884c\u8d26\u53f7\u548c\u4fe1\u7528\u5361\u53f7\u901a\u5e38\u4e5f\u4f1a\u4f7f\u7528\u56fa\u5b9a\u957f\u5ea6\u7684\u683c\u5f0f\uff0c\u5e76\u4e14\u4e0d\u8db3\u7684\u90e8\u5206\u7528\u524d\u5bfc\u96f6\u586b\u5145\u3002\u8fd9\u6837\u53ef\u4ee5\u786e\u4fdd\u6240\u6709\u8d26\u53f7\u548c\u5361\u53f7\u7684\u957f\u5ea6\u4e00\u81f4\uff0c\u4fbf\u4e8e\u5b58\u50a8\u548c\u5904\u7406\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">account_number = 12345<\/p>\n<p>formatted_account_number = f&quot;{account_number:010}&quot;<\/p>\n<p>print(formatted_account_number)  # \u8f93\u51fa 0000012345<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u5728\u672c\u6587\u4e2d\uff0c\u6211\u4eec\u4ecb\u7ecd\u4e86\u5728 Python \u4e2d\u5c06\u8f93\u5165\u7684\u6570\u5b57\u8f6c\u6362\u4e3a\u5e26\u6709\u524d\u5bfc\u96f6\u7684\u5b57\u7b26\u4e32\u7684\u51e0\u79cd\u65b9\u6cd5\uff0c\u5305\u62ec\u4f7f\u7528 zfill() \u65b9\u6cd5\u3001f-string\u3001format() \u65b9\u6cd5\u3001\u5b57\u7b26\u4e32\u62fc\u63a5\u548c\u6b63\u5219\u8868\u8fbe\u5f0f\u7b49\u3002\u6211\u4eec\u8fd8\u4ecb\u7ecd\u4e86\u5e26\u6709\u524d\u5bfc\u96f6\u7684\u5b57\u7b26\u4e32\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\u7684\u4e00\u4e9b\u5e38\u89c1\u573a\u666f\u3002<\/p>\n<\/p>\n<p><p>\u65e0\u8bba\u662f\u4e3a\u4e86\u683c\u5f0f\u5316\u65e5\u671f\u548c\u65f6\u95f4\uff0c\u8fd8\u662f\u4e3a\u4e86\u751f\u6210\u7f16\u53f7\u548c\u5e8f\u5217\u53f7\uff0c\u5e26\u6709\u524d\u5bfc\u96f6\u7684\u5b57\u7b26\u4e32\u90fd\u80fd\u5e2e\u52a9\u6211\u4eec\u786e\u4fdd\u6570\u636e\u7684\u4e00\u81f4\u6027\u548c\u53ef\u8bfb\u6027\u3002\u5728\u5b9e\u9645\u5f00\u53d1\u4e2d\uff0c\u6211\u4eec\u53ef\u4ee5\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u6765\u5b9e\u73b0\u5e26\u6709\u524d\u5bfc\u96f6\u7684\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u5c06\u6570\u5b57\u683c\u5f0f\u5316\u4e3a\u4e24\u4f4d\u6570\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u5b57\u7b26\u4e32\u7684\u683c\u5f0f\u5316\u65b9\u6cd5\u6765\u5b9e\u73b0\u6570\u5b57\u7684\u683c\u5f0f\u5316\u3002\u4f8b\u5982\uff0c\u4f7f\u7528\u683c\u5f0f\u5316\u5b57\u7b26\u4e32<code>f&quot;{number:02}&quot;<\/code>\u53ef\u4ee5\u5c06\u6570\u5b57\u8f6c\u6362\u4e3a\u4e24\u4f4d\u6570\u7684\u5b57\u7b26\u4e32\u3002\u8fd9\u6837\uff0c\u5f53\u8f93\u516512\u65f6\uff0c\u8f93\u51fa\u5c06\u662f&quot;12&quot;\uff0c\u800c\u8f93\u51652\u65f6\uff0c\u8f93\u51fa\u5c06\u662f&quot;02&quot;\u3002<\/p>\n<p><strong>\u662f\u5426\u53ef\u4ee5\u4f7f\u7528\u5176\u4ed6\u65b9\u6cd5\u6765\u5b9e\u73b0\u76f8\u540c\u7684\u8f93\u51fa\uff1f<\/strong><br \/>\u5f53\u7136\u53ef\u4ee5\uff01\u9664\u4e86\u4f7f\u7528\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\uff0c\u8fd8\u53ef\u4ee5\u4f7f\u7528<code>str.zfill()<\/code>\u65b9\u6cd5\u6765\u5b9e\u73b0\u76f8\u540c\u7684\u6548\u679c\u3002\u8c03\u7528<code>str(z).zfill(2)<\/code>\uff0c\u5176\u4e2d<code>z<\/code>\u662f\u4f60\u7684\u6570\u5b57\uff0c\u8fd9\u6837\u53ef\u4ee5\u786e\u4fdd\u8f93\u51fa\u59cb\u7ec8\u662f\u4e24\u4f4d\u6570\uff0c\u5373\u4f7f\u6570\u5b57\u672c\u8eab\u5c11\u4e8e\u4e24\u4f4d\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\uff0c\u5982\u4f55\u5904\u7406\u7528\u6237\u8f93\u5165\u5e76\u786e\u4fdd\u8f93\u51fa\u4e3a\u4e24\u4f4d\u6570\uff1f<\/strong><br \/>\u5904\u7406\u7528\u6237\u8f93\u5165\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528<code>input()<\/code>\u51fd\u6570\u83b7\u53d6\u7528\u6237\u8f93\u5165\uff0c\u7136\u540e\u5c06\u5176\u8f6c\u6362\u4e3a\u6574\u6570\u3002\u63a5\u4e0b\u6765\uff0c\u4f7f\u7528\u4e0a\u9762\u63d0\u5230\u7684\u683c\u5f0f\u5316\u65b9\u6cd5\u6216<code>zfill()<\/code>\u65b9\u6cd5\u5c06\u5176\u8f6c\u6362\u4e3a\u4e24\u4f4d\u6570\u5b57\u7b26\u4e32\u3002\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a  <\/p>\n<pre><code class=\"language-python\">user_input = input(&quot;\u8bf7\u8f93\u5165\u4e00\u4e2a\u6570\u5b57\uff1a&quot;)\nformatted_output = str(int(user_input)).zfill(2)\nprint(formatted_output)\n<\/code><\/pre>\n<p>\u8fd9\u6837\uff0c\u65e0\u8bba\u7528\u6237\u8f93\u5165\u7684\u662f1\u8fd8\u662f12\uff0c\u8f93\u51fa\u90fd\u4f1a\u662f\u4e24\u4f4d\u6570\u683c\u5f0f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u8981\u5728 Python \u4e2d\u5c06\u8f93\u5165\u7684\u6570\u5b57 12 \u8f6c\u6362\u4e3a\u5e26\u6709\u524d\u5bfc\u96f6\u7684\u5b57\u7b26\u4e32 012\uff0c\u53ef\u4ee5\u4f7f\u7528\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u65b9\u6cd5\uff0c\u5982 f- [&hellip;]","protected":false},"author":3,"featured_media":1170311,"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\/1170307"}],"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=1170307"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1170307\/revisions"}],"predecessor-version":[{"id":1170313,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1170307\/revisions\/1170313"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1170311"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1170307"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1170307"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1170307"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}