{"id":956175,"date":"2024-12-27T02:30:08","date_gmt":"2024-12-26T18:30:08","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/956175.html"},"modified":"2024-12-27T02:30:10","modified_gmt":"2024-12-26T18:30:10","slug":"python%e6%95%b0%e5%ad%97%e5%a6%82%e4%bd%95%e8%bd%ac%e6%88%90%e5%ad%97%e7%ac%a6","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/956175.html","title":{"rendered":"python\u6570\u5b57\u5982\u4f55\u8f6c\u6210\u5b57\u7b26"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25095851\/f01456df-0aa1-45e6-b63e-3b06372a4297.webp\" alt=\"python\u6570\u5b57\u5982\u4f55\u8f6c\u6210\u5b57\u7b26\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\uff0c\u6570\u5b57\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u5f0f\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32\uff0c\u4e3b\u8981\u65b9\u6cd5\u5305\u62ec\u4f7f\u7528str()\u51fd\u6570\u3001\u4f7f\u7528repr()\u51fd\u6570\u3001\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\u7b49\u3002<\/strong>\u5176\u4e2d\uff0c\u6700\u5e38\u7528\u7684\u65b9\u6cd5\u662f\u4f7f\u7528str()\u51fd\u6570\uff0c\u56e0\u4e3a\u5b83\u7b80\u5355\u76f4\u63a5\u3002str()\u51fd\u6570\u7528\u4e8e\u5c06\u6574\u6570\u3001\u6d6e\u70b9\u6570\u6216\u5176\u4ed6\u6570\u636e\u7c7b\u578b\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32\uff0c\u4ece\u800c\u4fbf\u4e8e\u8fdb\u884c\u5b57\u7b26\u4e32\u64cd\u4f5c\u548c\u663e\u793a\u3002repr()\u51fd\u6570\u5219\u7528\u4e8e\u751f\u6210\u5bf9\u8c61\u7684\u201c\u5b98\u65b9\u201d\u5b57\u7b26\u4e32\u8868\u793a\uff0c\u9002\u5408\u8c03\u8bd5\u548c\u5f00\u53d1\u4f7f\u7528\u3002\u6b64\u5916\uff0c\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\uff08\u5982f-strings\u548cformat()\u65b9\u6cd5\uff09\u4e5f\u63d0\u4f9b\u4e86\u7075\u6d3b\u7684\u65b9\u5f0f\u6765\u5c06\u6570\u5b57\u5d4c\u5165\u5230\u5b57\u7b26\u4e32\u4e2d\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u4f7f\u7528STR()\u51fd\u6570<\/p>\n<\/p>\n<p><p>str()\u51fd\u6570\u662fPython\u4e2d\u6700\u5e38\u7528\u7684\u5c06\u6570\u5b57\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32\u7684\u51fd\u6570\u3002\u5b83\u53ef\u4ee5\u5904\u7406\u6574\u6570\u3001\u6d6e\u70b9\u6570\u4ee5\u53ca\u5176\u4ed6\u7c7b\u578b\u7684\u6570\u636e\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u57fa\u672c\u7528\u6cd5<\/strong><\/p>\n<\/p>\n<p><p>\u4f7f\u7528str()\u51fd\u6570\u5c06\u6574\u6570\u548c\u6d6e\u70b9\u6570\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32\u975e\u5e38\u7b80\u5355\u3002\u53ea\u9700\u5c06\u6570\u5b57\u4f20\u9012\u7ed9str()\u51fd\u6570\u5373\u53ef\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">num = 123<\/p>\n<p>str_num = str(num)<\/p>\n<p>print(str_num)  # \u8f93\u51fa\uff1a&#39;123&#39;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6574\u6570123\u88ab\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32&#39;123&#39;\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5904\u7406\u6d6e\u70b9\u6570<\/strong><\/p>\n<\/p>\n<p><p>\u5f53\u5904\u7406\u6d6e\u70b9\u6570\u65f6\uff0cstr()\u51fd\u6570\u4f1a\u5c06\u6570\u5b57\u8f6c\u6362\u4e3a\u5e26\u5c0f\u6570\u70b9\u7684\u5b57\u7b26\u4e32\u8868\u793a\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">float_num = 123.456<\/p>\n<p>str_float = str(float_num)<\/p>\n<p>print(str_float)  # \u8f93\u51fa\uff1a&#39;123.456&#39;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u91cc\uff0c\u6d6e\u70b9\u6570123.456\u88ab\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32&#39;123.456&#39;\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e8c\u3001\u4f7f\u7528REPR()\u51fd\u6570<\/p>\n<\/p>\n<p><p>repr()\u51fd\u6570\u7528\u4e8e\u751f\u6210\u5bf9\u8c61\u7684\u201c\u5b98\u65b9\u201d\u5b57\u7b26\u4e32\u8868\u793a\uff0c\u901a\u5e38\u7528\u4e8e\u8c03\u8bd5\u3002\u4e0estr()\u76f8\u6bd4\uff0crepr()\u63d0\u4f9b\u7684\u5b57\u7b26\u4e32\u901a\u5e38\u662f\u66f4\u8be6\u7ec6\u7684\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u57fa\u672c\u7528\u6cd5<\/strong><\/p>\n<\/p>\n<p><p>repr()\u51fd\u6570\u7684\u7528\u6cd5\u4e0estr()\u7c7b\u4f3c\uff0c\u4f46\u5b83\u751f\u6210\u7684\u5b57\u7b26\u4e32\u901a\u5e38\u7528\u4e8e\u8c03\u8bd5\u76ee\u7684\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">num = 123<\/p>\n<p>repr_num = repr(num)<\/p>\n<p>print(repr_num)  # \u8f93\u51fa\uff1a&#39;123&#39;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0crepr()\u51fd\u6570\u4e0estr()\u7684\u8f93\u51fa\u76f8\u540c\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u663e\u793a\u6d6e\u70b9\u6570<\/strong><\/p>\n<\/p>\n<p><p>\u5bf9\u4e8e\u6d6e\u70b9\u6570\uff0crepr()\u53ef\u80fd\u4f1a\u663e\u793a\u66f4\u591a\u7684\u7cbe\u5ea6\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">float_num = 123.456<\/p>\n<p>repr_float = repr(float_num)<\/p>\n<p>print(repr_float)  # \u8f93\u51fa\uff1a&#39;123.456&#39;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>repr()\u51fd\u6570\u663e\u793a\u7684\u6d6e\u70b9\u6570\u4e0estr()\u76f8\u540c\uff0c\u4f46\u5728\u4e00\u4e9b\u60c5\u51b5\u4e0b\uff0crepr()\u53ef\u80fd\u4f1a\u63d0\u4f9b\u66f4\u7cbe\u786e\u7684\u8868\u793a\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e09\u3001\u4f7f\u7528\u683c\u5f0f\u5316\u5b57\u7b26\u4e32<\/p>\n<\/p>\n<p><p>\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\u63d0\u4f9b\u4e86\u4e00\u79cd\u7075\u6d3b\u7684\u65b9\u6cd5\u5c06\u6570\u5b57\u5d4c\u5165\u5230\u5b57\u7b26\u4e32\u4e2d\u3002\u8fd9\u5305\u62ec\u4f7f\u7528\u65e7\u5f0f\u7684\u767e\u5206\u53f7\u683c\u5f0f\u5316\u3001\u65b0\u5f0f\u7684format()\u65b9\u6cd5\u4ee5\u53caf-strings\uff08\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\u5b57\u9762\u91cf\uff09\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u767e\u5206\u53f7\u683c\u5f0f\u5316<\/strong><\/p>\n<\/p>\n<p><p>\u8fd9\u662fPython\u4e2d\u6700\u65e9\u7684\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u65b9\u6cd5\uff0c\u4f7f\u7528%\u4f5c\u4e3a\u5360\u4f4d\u7b26\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">num = 123<\/p>\n<p>formatted_str = &quot;The number is %d&quot; % num<\/p>\n<p>print(formatted_str)  # \u8f93\u51fa\uff1a&#39;The number is 123&#39;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u79cd\u65b9\u6cd5\u4e2d\uff0c%d\u8868\u793a\u6574\u6570\uff0c%f\u8868\u793a\u6d6e\u70b9\u6570\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>format()\u65b9\u6cd5<\/strong><\/p>\n<\/p>\n<p><p>format()\u65b9\u6cd5\u63d0\u4f9b\u4e86\u4e00\u79cd\u66f4\u73b0\u4ee3\u548c\u7075\u6d3b\u7684\u683c\u5f0f\u5316\u65b9\u5f0f\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">num = 123<\/p>\n<p>formatted_str = &quot;The number is {}&quot;.format(num)<\/p>\n<p>print(formatted_str)  # \u8f93\u51fa\uff1a&#39;The number is 123&#39;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>format()\u65b9\u6cd5\u5141\u8bb8\u5728\u5b57\u7b26\u4e32\u4e2d\u4f7f\u7528\u5927\u62ec\u53f7{}\u4f5c\u4e3a\u5360\u4f4d\u7b26\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>f-strings\uff08\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\u5b57\u9762\u91cf\uff09<\/strong><\/p>\n<\/p>\n<p><p>f-strings\u662fPython 3.6\u5f15\u5165\u7684\u4e00\u79cd\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\u7684\u65b0\u65b9\u5f0f\uff0c\u4f7f\u7528\u66f4\u7b80\u6d01\u7684\u8bed\u6cd5\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">num = 123<\/p>\n<p>formatted_str = f&quot;The number is {num}&quot;<\/p>\n<p>print(formatted_str)  # \u8f93\u51fa\uff1a&#39;The number is 123&#39;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728f-strings\u4e2d\uff0c\u53ef\u4ee5\u76f4\u63a5\u5728\u5b57\u7b26\u4e32\u4e2d\u4f7f\u7528\u8868\u8fbe\u5f0f\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u56db\u3001\u5904\u7406\u7279\u6b8a\u60c5\u51b5<\/p>\n<\/p>\n<p><p>\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u6570\u5b57\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32\u65f6\u9700\u8981\u8003\u8651\u7279\u6b8a\u683c\u5f0f\u6216\u5176\u4ed6\u8981\u6c42\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u63a7\u5236\u5c0f\u6570\u70b9\u4f4d\u6570<\/strong><\/p>\n<\/p>\n<p><p>\u5f53\u5904\u7406\u6d6e\u70b9\u6570\u65f6\uff0c\u53ef\u80fd\u9700\u8981\u9650\u5236\u5c0f\u6570\u70b9\u540e\u7684\u4f4d\u6570\u3002\u53ef\u4ee5\u4f7f\u7528\u683c\u5f0f\u5316\u65b9\u6cd5\u6765\u5b9e\u73b0\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">float_num = 123.456789<\/p>\n<p>formatted_str = &quot;{:.2f}&quot;.format(float_num)<\/p>\n<p>print(formatted_str)  # \u8f93\u51fa\uff1a&#39;123.46&#39;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u91cc\uff0c{:.2f}\u8868\u793a\u4fdd\u7559\u4e24\u4f4d\u5c0f\u6570\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u6dfb\u52a0\u5343\u5206\u4f4d\u5206\u9694\u7b26<\/strong><\/p>\n<\/p>\n<p><p>\u5bf9\u4e8e\u5927\u6570\u5b57\uff0c\u53ef\u80fd\u9700\u8981\u6dfb\u52a0\u5343\u5206\u4f4d\u5206\u9694\u7b26\u4ee5\u63d0\u9ad8\u53ef\u8bfb\u6027\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">large_num = 123456789<\/p>\n<p>formatted_str = &quot;{:,}&quot;.format(large_num)<\/p>\n<p>print(formatted_str)  # \u8f93\u51fa\uff1a&#39;123,456,789&#39;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u683c\u5f0f\u5316\u65b9\u6cd5\u5728\u5927\u6570\u5b57\u4e2d\u63d2\u5165\u9017\u53f7\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e94\u3001\u603b\u7ed3<\/p>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u5c06\u6570\u5b57\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32\u7684\u65b9\u6cd5\u591a\u79cd\u591a\u6837\uff0c\u6700\u5e38\u7528\u7684\u662f\u4f7f\u7528str()\u51fd\u6570\u3002\u5bf9\u4e8e\u66f4\u590d\u6742\u7684\u683c\u5f0f\u5316\u9700\u6c42\uff0c\u53ef\u4ee5\u4f7f\u7528format()\u65b9\u6cd5\u6216f-strings\u3002repr()\u51fd\u6570\u867d\u7136\u4e0d\u5e38\u7528\u4e8e\u4e00\u822c\u5b57\u7b26\u4e32\u8f6c\u6362\uff0c\u4f46\u5728\u8c03\u8bd5\u4e2d\u975e\u5e38\u6709\u7528\u3002\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\uff0c\u53ef\u4ee5\u6709\u6548\u63d0\u9ad8\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u548c\u53ef\u7ef4\u62a4\u6027\u3002\u65e0\u8bba\u662f\u7b80\u5355\u7684\u6570\u5b57\u8f6c\u6362\u8fd8\u662f\u590d\u6742\u7684\u683c\u5f0f\u5316\uff0cPython\u90fd\u63d0\u4f9b\u4e86\u5f3a\u5927\u7684\u5de5\u5177\u6765\u6ee1\u8db3\u5404\u79cd\u9700\u6c42\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u5c06\u6570\u5b57\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u6570\u5b57\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528<code>str()<\/code>\u51fd\u6570\u5b9e\u73b0\u3002\u53ea\u9700\u5c06\u6570\u5b57\u4f5c\u4e3a\u53c2\u6570\u4f20\u9012\u7ed9\u8be5\u51fd\u6570\uff0c\u5373\u53ef\u83b7\u5f97\u76f8\u5e94\u7684\u5b57\u7b26\u4e32\u3002\u4f8b\u5982\uff0c<code>str(123)<\/code>\u5c06\u8fd4\u56de\u5b57\u7b26\u4e32<code>&#39;123&#39;<\/code>\u3002\u8fd9\u79cd\u65b9\u6cd5\u9002\u7528\u4e8e\u6574\u6570\u3001\u6d6e\u70b9\u6570\u7b49\u591a\u79cd\u6570\u5b57\u7c7b\u578b\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\uff0c\u9664\u4e86\u4f7f\u7528str()\uff0c\u8fd8\u6709\u5176\u4ed6\u65b9\u6cd5\u53ef\u4ee5\u5c06\u6570\u5b57\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32\u5417\uff1f<\/strong><br \/>\u5f53\u7136\uff0c\u9664\u4e86\u4f7f\u7528<code>str()<\/code>\u51fd\u6570\u5916\uff0cPython\u8fd8\u63d0\u4f9b\u4e86\u5176\u4ed6\u65b9\u5f0f\u6765\u5b9e\u73b0\u6570\u5b57\u5230\u5b57\u7b26\u4e32\u7684\u8f6c\u6362\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u4f7f\u7528\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\uff08\u5982<code>f-string<\/code>\uff09\u6216<code>format()<\/code>\u65b9\u6cd5\u3002\u4f7f\u7528f-string\u7684\u793a\u4f8b\u4e3a\uff1a<code>num = 456; str_num = f&quot;{num}&quot;<\/code>\uff0c\u800c\u4f7f\u7528<code>format()<\/code>\u65b9\u6cd5\u7684\u793a\u4f8b\u4e3a\uff1a<code>str_num = &quot;{}&quot;.format(num)<\/code>\u3002<\/p>\n<p><strong>\u8f6c\u6362\u540e\u7684\u5b57\u7b26\u4e32\u53ef\u4ee5\u8fdb\u884c\u54ea\u4e9b\u64cd\u4f5c\uff1f<\/strong><br \/>\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32\u540e\u7684\u6570\u5b57\u53ef\u4ee5\u8fdb\u884c\u591a\u79cd\u64cd\u4f5c\u3002\u4f8b\u5982\uff0c\u60a8\u53ef\u4ee5\u5c06\u5176\u4e0e\u5176\u4ed6\u5b57\u7b26\u4e32\u8fde\u63a5\uff0c\u8fdb\u884c\u5b57\u7b26\u4e32\u5207\u7247\uff0c\u6216\u4f7f\u7528\u5404\u79cd\u5b57\u7b26\u4e32\u65b9\u6cd5\uff08\u5982<code>upper()<\/code>\u3001<code>lower()<\/code>\u7b49\uff09\u3002\u5982\u679c\u9700\u8981\u5c06\u5b57\u7b26\u4e32\u518d\u6b21\u8f6c\u6362\u4e3a\u6570\u5b57\uff0c\u53ef\u4ee5\u4f7f\u7528<code>int()<\/code>\u6216<code>float()<\/code>\u51fd\u6570\u6765\u5b9e\u73b0\u3002<\/p>\n<p><strong>Python\u4e2d\u662f\u5426\u5b58\u5728\u5c06\u5b57\u7b26\u8f6c\u6362\u4e3a\u6570\u5b57\u7684\u65b9\u6cd5\uff1f<\/strong><br \/>\u786e\u5b9e\u5b58\u5728\u3002\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528<code>int()<\/code>\u548c<code>float()<\/code>\u51fd\u6570\u5c06\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u6574\u6570\u6216\u6d6e\u70b9\u6570\u3002\u786e\u4fdd\u5b57\u7b26\u4e32\u5185\u5bb9\u4e3a\u6709\u6548\u7684\u6570\u5b57\u683c\u5f0f\uff0c\u5426\u5219\u5c06\u5f15\u53d1\u9519\u8bef\u3002\u4f8b\u5982\uff0c<code>int(&quot;123&quot;)<\/code>\u5c06\u8fd4\u56de\u6574\u6570<code>123<\/code>\uff0c\u800c<code>float(&quot;123.45&quot;)<\/code>\u5c06\u8fd4\u56de\u6d6e\u70b9\u6570<code>123.45<\/code>\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\uff0c\u6570\u5b57\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u5f0f\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32\uff0c\u4e3b\u8981\u65b9\u6cd5\u5305\u62ec\u4f7f\u7528str()\u51fd\u6570\u3001\u4f7f\u7528repr()\u51fd\u6570\u3001\u683c\u5f0f [&hellip;]","protected":false},"author":3,"featured_media":956180,"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\/956175"}],"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=956175"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/956175\/revisions"}],"predecessor-version":[{"id":956181,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/956175\/revisions\/956181"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/956180"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=956175"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=956175"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=956175"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}