{"id":1072602,"date":"2025-01-08T11:17:41","date_gmt":"2025-01-08T03:17:41","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1072602.html"},"modified":"2025-01-08T11:17:44","modified_gmt":"2025-01-08T03:17:44","slug":"%e5%9c%a8python%e9%87%8c%e5%a6%82%e4%bd%95%e5%af%b9%e9%bd%90%e5%ad%97%e7%ac%a6%e4%b8%b2-2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1072602.html","title":{"rendered":"\u5728python\u91cc\u5982\u4f55\u5bf9\u9f50\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\/25102750\/95d6b758-34ee-4a75-a364-e09fac15f021.webp\" alt=\"\u5728python\u91cc\u5982\u4f55\u5bf9\u9f50\u5b57\u7b26\u4e32\" \/><\/p>\n<p><p> \u5728Python\u4e2d\u5bf9\u9f50\u5b57\u7b26\u4e32\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u5305\u62ec\u4f7f\u7528\u5185\u7f6e\u7684\u5b57\u7b26\u4e32\u65b9\u6cd5\u548c\u683c\u5f0f\u5316\u65b9\u6cd5\u3002<strong>\u901a\u8fc7str.ljust()\u3001str.rjust()\u3001str.center()\u3001\u683c\u5f0f\u5316\u65b9\u6cd5format()\u548cf-string\uff0c\u53ef\u4ee5\u8f7b\u677e\u5b9e\u73b0\u5b57\u7b26\u4e32\u5bf9\u9f50<\/strong>\u3002\u5176\u4e2d\uff0c\u4f7f\u7528str.ljust()\u65b9\u6cd5\u53ef\u4ee5\u5c06\u5b57\u7b26\u4e32\u5de6\u5bf9\u9f50\uff0c\u5e76\u4e14\u53ef\u4ee5\u6307\u5b9a\u586b\u5145\u5b57\u7b26\u3002<\/p>\n<\/p>\n<p><p><strong>str.ljust()\u65b9\u6cd5<\/strong>\uff1a\u8fd9\u4e2a\u65b9\u6cd5\u901a\u8fc7\u5728\u53f3\u4fa7\u586b\u5145\u6307\u5b9a\u5b57\u7b26\uff0c\u5c06\u5b57\u7b26\u4e32\u6269\u5c55\u5230\u6307\u5b9a\u957f\u5ea6\uff0c\u4ece\u800c\u5b9e\u73b0\u5de6\u5bf9\u9f50\u3002\u4e0b\u9762\u662f\u4e00\u4e2a\u8be6\u7ec6\u7684\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">text = &quot;Python&quot;<\/p>\n<p>aligned_text = text.ljust(10, &#39;-&#39;)<\/p>\n<p>print(aligned_text)  # \u8f93\u51fa: Python----<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u63a2\u8ba8\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u5e76\u7ed9\u51fa\u66f4\u591a\u7684\u793a\u4f8b\u548c\u5e94\u7528\u573a\u666f\u3002<\/p>\n<\/p>\n<p><h2>\u4e00\u3001STR.LJUST()\u65b9\u6cd5<\/h2>\n<\/p>\n<p><p>str.ljust()\u65b9\u6cd5\u7528\u4e8e\u5c06\u5b57\u7b26\u4e32\u5de6\u5bf9\u9f50\uff0c\u5e76\u5728\u53f3\u4fa7\u586b\u5145\u6307\u5b9a\u5b57\u7b26\uff08\u9ed8\u8ba4\u4e3a\u7a7a\u683c\uff09\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">text = &quot;Python&quot;<\/p>\n<p>aligned_text = text.ljust(10)<\/p>\n<p>print(aligned_text)  # \u8f93\u51fa: Python    <\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u9762\u7684\u4f8b\u5b50\u4e2d\uff0c\u5b57\u7b26\u4e32\u201cPython\u201d\u88ab\u6269\u5c55\u523010\u4e2a\u5b57\u7b26\u957f\uff0c\u53f3\u4fa7\u586b\u5145\u4e86\u7a7a\u683c\u3002\u5982\u679c\u60f3\u8981\u4f7f\u7528\u5176\u4ed6\u5b57\u7b26\u586b\u5145\uff0c\u53ef\u4ee5\u6307\u5b9a\u586b\u5145\u5b57\u7b26\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">aligned_text = text.ljust(10, &#39;-&#39;)<\/p>\n<p>print(aligned_text)  # \u8f93\u51fa: Python----<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h2>\u4e8c\u3001STR.RJUST()\u65b9\u6cd5<\/h2>\n<\/p>\n<p><p>str.rjust()\u65b9\u6cd5\u7528\u4e8e\u5c06\u5b57\u7b26\u4e32\u53f3\u5bf9\u9f50\uff0c\u5e76\u5728\u5de6\u4fa7\u586b\u5145\u6307\u5b9a\u5b57\u7b26\uff08\u9ed8\u8ba4\u4e3a\u7a7a\u683c\uff09\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">text = &quot;Python&quot;<\/p>\n<p>aligned_text = text.rjust(10)<\/p>\n<p>print(aligned_text)  # \u8f93\u51fa:     Python<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u540c\u6837\uff0c\u53ef\u4ee5\u6307\u5b9a\u586b\u5145\u5b57\u7b26\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">aligned_text = text.rjust(10, &#39;-&#39;)<\/p>\n<p>print(aligned_text)  # \u8f93\u51fa: ----Python<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h2>\u4e09\u3001STR.CENTER()\u65b9\u6cd5<\/h2>\n<\/p>\n<p><p>str.center()\u65b9\u6cd5\u7528\u4e8e\u5c06\u5b57\u7b26\u4e32\u5c45\u4e2d\u5bf9\u9f50\uff0c\u5e76\u5728\u4e24\u4fa7\u586b\u5145\u6307\u5b9a\u5b57\u7b26\uff08\u9ed8\u8ba4\u4e3a\u7a7a\u683c\uff09\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">text = &quot;Python&quot;<\/p>\n<p>aligned_text = text.center(10)<\/p>\n<p>print(aligned_text)  # \u8f93\u51fa:   Python  <\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5982\u679c\u60f3\u8981\u4f7f\u7528\u5176\u4ed6\u5b57\u7b26\u586b\u5145\uff0c\u53ef\u4ee5\u6307\u5b9a\u586b\u5145\u5b57\u7b26\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">aligned_text = text.center(10, &#39;-&#39;)<\/p>\n<p>print(aligned_text)  # \u8f93\u51fa: --Python--<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h2>\u56db\u3001FORMAT()\u65b9\u6cd5<\/h2>\n<\/p>\n<p><p>format()\u65b9\u6cd5\u662fPython\u7684\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u65b9\u6cd5\uff0c\u53ef\u4ee5\u7528\u4e8e\u5b9e\u73b0\u5b57\u7b26\u4e32\u7684\u5de6\u5bf9\u9f50\u3001\u53f3\u5bf9\u9f50\u548c\u5c45\u4e2d\u5bf9\u9f50\u3002\u9700\u8981\u5728\u683c\u5f0f\u5b57\u7b26\u4e32\u4e2d\u4f7f\u7528\u5bf9\u9f50\u6807\u5fd7\u3002<\/p>\n<\/p>\n<p><p><strong>\u5de6\u5bf9\u9f50<\/strong>\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">text = &quot;Python&quot;<\/p>\n<p>aligned_text = &quot;{:&lt;10}&quot;.format(text)<\/p>\n<p>print(aligned_text)  # \u8f93\u51fa: Python    <\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u53f3\u5bf9\u9f50<\/strong>\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">aligned_text = &quot;{:&gt;10}&quot;.format(text)<\/p>\n<p>print(aligned_text)  # \u8f93\u51fa:     Python<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u5c45\u4e2d\u5bf9\u9f50<\/strong>\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">aligned_text = &quot;{:^10}&quot;.format(text)<\/p>\n<p>print(aligned_text)  # \u8f93\u51fa:   Python  <\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u53ef\u4ee5\u6307\u5b9a\u586b\u5145\u5b57\u7b26\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">aligned_text = &quot;{:-^10}&quot;.format(text)<\/p>\n<p>print(aligned_text)  # \u8f93\u51fa: --Python--<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h2>\u4e94\u3001F-STRING\u65b9\u6cd5<\/h2>\n<\/p>\n<p><p>Python 3.6\u5f15\u5165\u4e86f-string\uff08\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\u5b57\u9762\u91cf\uff09\uff0c\u53ef\u4ee5\u66f4\u7b80\u6d01\u5730\u5b9e\u73b0\u5b57\u7b26\u4e32\u5bf9\u9f50\u3002<\/p>\n<\/p>\n<p><p><strong>\u5de6\u5bf9\u9f50<\/strong>\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">text = &quot;Python&quot;<\/p>\n<p>aligned_text = f&quot;{text:&lt;10}&quot;<\/p>\n<p>print(aligned_text)  # \u8f93\u51fa: Python    <\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u53f3\u5bf9\u9f50<\/strong>\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">aligned_text = f&quot;{text:&gt;10}&quot;<\/p>\n<p>print(aligned_text)  # \u8f93\u51fa:     Python<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u5c45\u4e2d\u5bf9\u9f50<\/strong>\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">aligned_text = f&quot;{text:^10}&quot;<\/p>\n<p>print(aligned_text)  # \u8f93\u51fa:   Python  <\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u53ef\u4ee5\u6307\u5b9a\u586b\u5145\u5b57\u7b26\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">aligned_text = f&quot;{text:-^10}&quot;<\/p>\n<p>print(aligned_text)  # \u8f93\u51fa: --Python--<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h2>\u516d\u3001\u4f7f\u7528\u5b57\u7b26\u4e32\u7684\u683c\u5f0f\u5316\u64cd\u4f5c\u7b26%<\/h2>\n<\/p>\n<p><p>\u867d\u7136\u4e0d\u5efa\u8bae\u4f7f\u7528\uff0c\u4f46\u4ecd\u7136\u53ef\u4ee5\u4f7f\u7528\u767e\u5206\u53f7\uff08%\uff09\u64cd\u4f5c\u7b26\u6765\u8fdb\u884c\u7b80\u5355\u7684\u5b57\u7b26\u4e32\u5bf9\u9f50\u3002<\/p>\n<\/p>\n<p><p><strong>\u5de6\u5bf9\u9f50<\/strong>\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">text = &quot;Python&quot;<\/p>\n<p>aligned_text = &quot;%-10s&quot; % text<\/p>\n<p>print(aligned_text)  # \u8f93\u51fa: Python    <\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u53f3\u5bf9\u9f50<\/strong>\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">aligned_text = &quot;%10s&quot; % text<\/p>\n<p>print(aligned_text)  # \u8f93\u51fa:     Python<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h2>\u4e03\u3001\u5e94\u7528\u573a\u666f<\/h2>\n<\/p>\n<p><p>\u5b57\u7b26\u4e32\u5bf9\u9f50\u5728\u8bb8\u591a\u573a\u666f\u4e0b\u90fd\u975e\u5e38\u6709\u7528\uff0c\u4f8b\u5982\u751f\u6210\u8868\u683c\u3001\u62a5\u544a\u3001\u65e5\u5fd7\u6587\u4ef6\u7b49\u3002\u5728\u8fd9\u4e9b\u573a\u666f\u4e2d\uff0c\u5bf9\u9f50\u5b57\u7b26\u4e32\u53ef\u4ee5\u63d0\u9ad8\u53ef\u8bfb\u6027\u548c\u7f8e\u89c2\u6027\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u751f\u6210\u7b80\u5355\u8868\u683c\u7684\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">data = [<\/p>\n<p>    (&quot;Name&quot;, &quot;Age&quot;, &quot;City&quot;),<\/p>\n<p>    (&quot;Alice&quot;, &quot;30&quot;, &quot;New York&quot;),<\/p>\n<p>    (&quot;Bob&quot;, &quot;25&quot;, &quot;Los Angeles&quot;),<\/p>\n<p>    (&quot;Charlie&quot;, &quot;35&quot;, &quot;Chicago&quot;)<\/p>\n<p>]<\/p>\n<p>for row in data:<\/p>\n<p>    print(&quot;{:&lt;10} {:&lt;5} {:&lt;15}&quot;.format(*row))<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8f93\u51fa\u7ed3\u679c\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code>Name       Age   City           <\/p>\n<p>Alice      30    New York       <\/p>\n<p>Bob        25    Los Angeles    <\/p>\n<p>Charlie    35    Chicago        <\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h2>\u516b\u3001\u6ce8\u610f\u4e8b\u9879<\/h2>\n<\/p>\n<p><p>\u5728\u4f7f\u7528\u5b57\u7b26\u4e32\u5bf9\u9f50\u65b9\u6cd5\u65f6\uff0c\u9700\u8981\u6ce8\u610f\u4ee5\u4e0b\u51e0\u70b9\uff1a<\/p>\n<\/p>\n<ol>\n<li><strong>\u5b57\u7b26\u7f16\u7801<\/strong>\uff1a\u786e\u4fdd\u5b57\u7b26\u4e32\u7684\u5b57\u7b26\u7f16\u7801\u4e00\u81f4\uff0c\u5c24\u5176\u662f\u5728\u5904\u7406\u591a\u8bed\u8a00\u6587\u672c\u65f6\u3002<\/li>\n<li><strong>\u5bf9\u9f50\u957f\u5ea6<\/strong>\uff1a\u8bbe\u7f6e\u9002\u5f53\u7684\u5bf9\u9f50\u957f\u5ea6\uff0c\u4ee5\u786e\u4fdd\u5bf9\u9f50\u540e\u7684\u5b57\u7b26\u4e32\u4e0d\u4f1a\u8fc7\u957f\u6216\u8fc7\u77ed\u3002<\/li>\n<li><strong>\u586b\u5145\u5b57\u7b26<\/strong>\uff1a\u9009\u62e9\u5408\u9002\u7684\u586b\u5145\u5b57\u7b26\uff0c\u4ee5\u786e\u4fdd\u5bf9\u9f50\u540e\u7684\u5b57\u7b26\u4e32\u7f8e\u89c2\u4e14\u6613\u8bfb\u3002<\/li>\n<\/ol>\n<p><h2>\u4e5d\u3001\u603b\u7ed3<\/h2>\n<\/p>\n<p><p>\u901a\u8fc7\u672c\u6587\u7684\u4ecb\u7ecd\uff0c\u6211\u4eec\u4e86\u89e3\u4e86Python\u4e2d\u5e38\u7528\u7684\u5b57\u7b26\u4e32\u5bf9\u9f50\u65b9\u6cd5\uff0c\u5305\u62ecstr.ljust()\u3001str.rjust()\u3001str.center()\u3001format()\u3001f-string\u548c\u767e\u5206\u53f7\u64cd\u4f5c\u7b26\u3002\u6bcf\u79cd\u65b9\u6cd5\u90fd\u6709\u5176\u4f18\u7f3a\u70b9\uff0c\u53ef\u4ee5\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u3002\u5b57\u7b26\u4e32\u5bf9\u9f50\u5728\u751f\u6210\u8868\u683c\u3001\u62a5\u544a\u548c\u65e5\u5fd7\u6587\u4ef6\u7b49\u573a\u666f\u4e2d\u975e\u5e38\u6709\u7528\uff0c\u53ef\u4ee5\u63d0\u9ad8\u6587\u672c\u7684\u53ef\u8bfb\u6027\u548c\u7f8e\u89c2\u6027\u3002\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u5efa\u8bae\u9009\u62e9\u66f4\u7b80\u6d01\u548c\u6613\u8bfb\u7684\u65b9\u6cd5\uff0c\u5982f-string\u548cformat()\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u5bf9\u9f50\u5b57\u7b26\u4e32\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u5b57\u7b26\u4e32\u65b9\u6cd5\u5982<code>ljust()<\/code>\u3001<code>rjust()<\/code>\u548c<code>center()<\/code>\u6765\u5b9e\u73b0\u5b57\u7b26\u4e32\u7684\u5bf9\u9f50\u3002\u8fd9\u4e9b\u65b9\u6cd5\u5141\u8bb8\u4f60\u6307\u5b9a\u5bbd\u5ea6\uff0c\u5e76\u53ef\u4ee5\u9009\u62e9\u586b\u5145\u5b57\u7b26\u3002\u6bd4\u5982\uff0c<code>my_string.ljust(10)<\/code>\u4f1a\u5c06<code>my_string<\/code>\u5de6\u5bf9\u9f50\uff0c\u5bbd\u5ea6\u4e3a10\uff0c\u53f3\u4fa7\u7528\u7a7a\u683c\u586b\u5145\u3002<\/p>\n<p><strong>\u4f7f\u7528\u683c\u5f0f\u5316\u65b9\u6cd5\u5bf9\u9f50\u5b57\u7b26\u4e32\u6709\u4ec0\u4e48\u4f18\u52bf\uff1f<\/strong><br \/>\u4f7f\u7528\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\uff08\u5982f-strings\u6216<code>str.format()<\/code>\uff09\u53ef\u4ee5\u66f4\u7075\u6d3b\u5730\u5bf9\u9f50\u5b57\u7b26\u4e32\u3002\u4f8b\u5982\uff0c<code>f&quot;{my_string:&lt;10}&quot;<\/code>\u4f1a\u5de6\u5bf9\u9f50\u5b57\u7b26\u4e32\uff0c\u5e76\u5728\u5176\u53f3\u4fa7\u586b\u5145\u7a7a\u683c\u81f310\u4e2a\u5b57\u7b26\u5bbd\u3002\u8fd9\u79cd\u65b9\u5f0f\u4e0d\u4ec5\u4fbf\u4e8e\u9605\u8bfb\uff0c\u8fd8\u53ef\u4ee5\u5728\u8f93\u51fa\u65f6\u4fdd\u6301\u4e00\u81f4\u7684\u683c\u5f0f\uff0c\u7279\u522b\u662f\u5728\u5904\u7406\u8868\u683c\u6570\u636e\u65f6\u3002<\/p>\n<p><strong>\u5728\u5904\u7406\u5217\u8868\u6216\u5b57\u5178\u65f6\uff0c\u5982\u4f55\u5bf9\u9f50\u8f93\u51fa\u7684\u5b57\u7b26\u4e32\uff1f<\/strong><br \/>\u5f53\u5904\u7406\u5305\u542b\u591a\u4e2a\u5b57\u7b26\u4e32\u7684\u5217\u8868\u6216\u5b57\u5178\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528\u5faa\u73af\u7ed3\u5408\u5bf9\u9f50\u65b9\u6cd5\u6765\u683c\u5f0f\u5316\u8f93\u51fa\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u904d\u5386\u5217\u8868\uff0c\u4f7f\u7528<code>str.ljust()<\/code>\u6216<code>str.rjust()<\/code>\u5bf9\u6bcf\u4e2a\u5143\u7d20\u8fdb\u884c\u5bf9\u9f50\uff0c\u786e\u4fdd\u8f93\u51fa\u6574\u9f50\u4e00\u81f4\u3002\u8fd9\u5bf9\u4e8e\u751f\u6210\u62a5\u544a\u6216\u65e5\u5fd7\u4fe1\u606f\u65f6\u5c24\u5176\u6709\u7528\uff0c\u4f7f\u5f97\u6570\u636e\u66f4\u52a0\u6e05\u6670\u6613\u8bfb\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\u5bf9\u9f50\u5b57\u7b26\u4e32\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u5305\u62ec\u4f7f\u7528\u5185\u7f6e\u7684\u5b57\u7b26\u4e32\u65b9\u6cd5\u548c\u683c\u5f0f\u5316\u65b9\u6cd5\u3002\u901a\u8fc7str.ljust()\u3001st [&hellip;]","protected":false},"author":3,"featured_media":1072610,"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\/1072602"}],"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=1072602"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1072602\/revisions"}],"predecessor-version":[{"id":1072612,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1072602\/revisions\/1072612"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1072610"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1072602"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1072602"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1072602"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}