{"id":1105799,"date":"2025-01-08T16:34:20","date_gmt":"2025-01-08T08:34:20","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1105799.html"},"modified":"2025-01-08T16:34:23","modified_gmt":"2025-01-08T08:34:23","slug":"python%e5%a6%82%e4%bd%95%e8%be%93%e5%87%ba%e7%99%be%e5%88%86%e6%95%b0","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1105799.html","title":{"rendered":"python\u5982\u4f55\u8f93\u51fa\u767e\u5206\u6570"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25070531\/4331ab92-dd04-4ba8-a154-14f64ab845c1.webp\" alt=\"python\u5982\u4f55\u8f93\u51fa\u767e\u5206\u6570\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\u8f93\u51fa\u767e\u5206\u6570\u7684\u51e0\u79cd\u65b9\u6cd5\u5305\u62ec\uff1a\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u3001\u4f7f\u7528\u767e\u5206\u6bd4\u7b26\u53f7\u3001\u501f\u52a9\u5e93\u51fd\u6570\u3002<\/strong> \u5176\u4e2d\uff0c\u4f7f\u7528\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u662f\u4e00\u79cd\u5e38\u89c1\u4e14\u7075\u6d3b\u7684\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><p><strong>\u5b57\u7b26\u4e32\u683c\u5f0f\u5316<\/strong>\uff1a\u4f7f\u7528Python\u7684\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u65b9\u6cd5\uff0c\u53ef\u4ee5\u8f7b\u677e\u5730\u5c06\u4e00\u4e2a\u6d6e\u70b9\u6570\u8f6c\u5316\u4e3a\u767e\u5206\u6570\u3002\u4f8b\u5982\uff0c\u4f7f\u7528<code>format()<\/code>\u65b9\u6cd5\u6216\u8005f-string\uff08\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\uff09\u3002\u901a\u8fc7\u6307\u5b9a\u683c\u5f0f\u4ee3\u7801\uff0c\u53ef\u4ee5\u786e\u4fdd\u8f93\u51fa\u7684\u767e\u5206\u6570\u5e26\u6709\u5408\u9002\u7684\u5c0f\u6570\u4f4d\u6570\u3002<\/p>\n<\/p>\n<p><p>\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u5e76\u63d0\u4f9b\u793a\u4f8b\u4ee3\u7801\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528\u5b57\u7b26\u4e32\u683c\u5f0f\u5316<\/h3>\n<\/p>\n<p><p>\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u662fPython\u4e2d\u6700\u5e38\u7528\u7684\u65b9\u6cd5\u4e4b\u4e00\uff0c\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u5f0f\u5c06\u6570\u5b57\u683c\u5f0f\u5316\u4e3a\u767e\u5206\u6570\u3002<\/p>\n<\/p>\n<p><h4>1.1 \u4f7f\u7528<code>format()<\/code>\u51fd\u6570<\/h4>\n<\/p>\n<p><p><code>format()<\/code>\u51fd\u6570\u662fPython\u5185\u7f6e\u7684\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u65b9\u6cd5\u4e4b\u4e00\u3002\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u5b83\u6765\u5c06\u4e00\u4e2a\u6d6e\u70b9\u6570\u8f6c\u6362\u4e3a\u767e\u5206\u6570\u683c\u5f0f\u3002\u4e0b\u9762\u662f\u4e00\u4e2a\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">number = 0.1234<\/p>\n<p>percentage = format(number, &quot;.2%&quot;)<\/p>\n<p>print(percentage)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c<code>format(number, &quot;.2%&quot;)<\/code>\u5c06\u6570\u5b57<code>0.1234<\/code>\u683c\u5f0f\u5316\u4e3a\u767e\u5206\u6570\uff0c\u5e76\u4fdd\u7559\u4e24\u4f4d\u5c0f\u6570\u3002\u8f93\u51fa\u7ed3\u679c\u4e3a<code>12.34%<\/code>\u3002<\/p>\n<\/p>\n<p><h4>1.2 \u4f7f\u7528<code>f-string<\/code>\uff08\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\uff09<\/h4>\n<\/p>\n<p><p>\u5728Python 3.6\u53ca\u4ee5\u4e0a\u7248\u672c\u4e2d\uff0c<code>f-string<\/code>\uff08\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\uff09\u662f\u4e00\u79cd\u66f4\u7b80\u6d01\u7684\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u65b9\u6cd5\u3002\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528<code>f-string<\/code>\u5c06\u6570\u5b57\u8f6c\u6362\u4e3a\u767e\u5206\u6570\u683c\u5f0f\u3002\u4e0b\u9762\u662f\u4e00\u4e2a\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">number = 0.1234<\/p>\n<p>percentage = f&quot;{number:.2%}&quot;<\/p>\n<p>print(percentage)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c<code>f&quot;{number:.2%}&quot;<\/code>\u5c06\u6570\u5b57<code>0.1234<\/code>\u683c\u5f0f\u5316\u4e3a\u767e\u5206\u6570\uff0c\u5e76\u4fdd\u7559\u4e24\u4f4d\u5c0f\u6570\u3002\u8f93\u51fa\u7ed3\u679c\u540c\u6837\u4e3a<code>12.34%<\/code>\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528\u767e\u5206\u6bd4\u7b26\u53f7<\/h3>\n<\/p>\n<p><p>\u53e6\u4e00\u79cd\u7b80\u5355\u7684\u65b9\u6cd5\u662f\u76f4\u63a5\u5c06\u6570\u5b57\u4e58\u4ee5100\uff0c\u5e76\u5728\u7ed3\u679c\u540e\u9762\u6dfb\u52a0\u767e\u5206\u6bd4\u7b26\u53f7\u3002\u4e0b\u9762\u662f\u4e00\u4e2a\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">number = 0.1234<\/p>\n<p>percentage = number * 100<\/p>\n<p>print(f&quot;{percentage:.2f}%&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u5c06<code>number<\/code>\u4e58\u4ee5100\uff0c\u5e76\u4f7f\u7528<code>f-string<\/code>\u6765\u683c\u5f0f\u5316\u7ed3\u679c\uff0c\u4fdd\u7559\u4e24\u4f4d\u5c0f\u6570\u3002\u8f93\u51fa\u7ed3\u679c\u4e3a<code>12.34%<\/code>\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u501f\u52a9\u5e93\u51fd\u6570<\/h3>\n<\/p>\n<p><p>Python\u4e2d\u6709\u4e00\u4e9b\u7b2c\u4e09\u65b9\u5e93\u63d0\u4f9b\u4e86\u66f4\u5f3a\u5927\u7684\u683c\u5f0f\u5316\u529f\u80fd\u3002\u8fd9\u91cc\u6211\u4eec\u4ecb\u7ecd\u4e24\u4e2a\u5e38\u7528\u7684\u5e93\uff1a<code>numpy<\/code>\u548c<code>pandas<\/code>\u3002<\/p>\n<\/p>\n<p><h4>3.1 \u4f7f\u7528<code>numpy<\/code><\/h4>\n<\/p>\n<p><p><code>numpy<\/code>\u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u6570\u503c\u8ba1\u7b97\u5e93\uff0c\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u51fd\u6570\u6765\u5904\u7406\u6570\u7ec4\u548c\u6570\u5b57\u3002\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528<code>numpy<\/code>\u5c06\u6570\u5b57\u8f6c\u6362\u4e3a\u767e\u5206\u6570\u683c\u5f0f\u3002\u4e0b\u9762\u662f\u4e00\u4e2a\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import numpy as np<\/p>\n<p>number = 0.1234<\/p>\n<p>percentage = np.format_float_positional(number * 100, precision=2)<\/p>\n<p>print(f&quot;{percentage}%&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528<code>numpy.format_float_positional()<\/code>\u51fd\u6570\u5c06\u6570\u5b57\u683c\u5f0f\u5316\u4e3a\u5e26\u6709\u4e24\u4f4d\u5c0f\u6570\u7684\u767e\u5206\u6570\u3002\u8f93\u51fa\u7ed3\u679c\u4e3a<code>12.34%<\/code>\u3002<\/p>\n<\/p>\n<p><h4>3.2 \u4f7f\u7528<code>pandas<\/code><\/h4>\n<\/p>\n<p><p><code>pandas<\/code>\u662f\u53e6\u4e00\u4e2a\u5f3a\u5927\u7684\u6570\u636e\u5904\u7406\u5e93\uff0c\u5e38\u7528\u4e8e\u6570\u636e\u5206\u6790\u3002\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528<code>pandas<\/code>\u5c06\u6570\u5b57\u8f6c\u6362\u4e3a\u767e\u5206\u6570\u683c\u5f0f\u3002\u4e0b\u9762\u662f\u4e00\u4e2a\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pandas as pd<\/p>\n<p>number = 0.1234<\/p>\n<p>percentage = pd.Series([number]).apply(lambda x: f&quot;{x:.2%}&quot;)<\/p>\n<p>print(percentage[0])<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u521b\u5efa\u4e86\u4e00\u4e2a\u5305\u542b\u6570\u5b57\u7684<code>pandas<\/code>\u7cfb\u5217\uff0c\u5e76\u4f7f\u7528<code>apply()<\/code>\u65b9\u6cd5\u5c06\u5176\u683c\u5f0f\u5316\u4e3a\u767e\u5206\u6570\u3002\u8f93\u51fa\u7ed3\u679c\u4e3a<code>12.34%<\/code>\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u7efc\u5408\u793a\u4f8b<\/h3>\n<\/p>\n<p><p>\u4e3a\u4e86\u66f4\u597d\u5730\u7406\u89e3\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u6211\u4eec\u5c06\u5b83\u4eec\u7efc\u5408\u5728\u4e00\u4e2a\u793a\u4f8b\u4e2d\u8fdb\u884c\u5c55\u793a\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u5305\u542b\u6240\u6709\u65b9\u6cd5\u7684\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import numpy as np<\/p>\n<p>import pandas as pd<\/p>\n<p>number = 0.1234<\/p>\n<h2><strong>\u4f7f\u7528 format() \u51fd\u6570<\/strong><\/h2>\n<p>percentage_format = format(number, &quot;.2%&quot;)<\/p>\n<h2><strong>\u4f7f\u7528 f-string<\/strong><\/h2>\n<p>percentage_fstring = f&quot;{number:.2%}&quot;<\/p>\n<h2><strong>\u4f7f\u7528\u767e\u5206\u6bd4\u7b26\u53f7<\/strong><\/h2>\n<p>percentage_symbol = number * 100<\/p>\n<h2><strong>\u4f7f\u7528 numpy<\/strong><\/h2>\n<p>percentage_numpy = np.format_float_positional(number * 100, precision=2)<\/p>\n<h2><strong>\u4f7f\u7528 pandas<\/strong><\/h2>\n<p>percentage_pandas = pd.Series([number]).apply(lambda x: f&quot;{x:.2%}&quot;)[0]<\/p>\n<p>print(&quot;\u4f7f\u7528 format() \u51fd\u6570:&quot;, percentage_format)<\/p>\n<p>print(&quot;\u4f7f\u7528 f-string:&quot;, percentage_fstring)<\/p>\n<p>print(&quot;\u4f7f\u7528\u767e\u5206\u6bd4\u7b26\u53f7:&quot;, f&quot;{percentage_symbol:.2f}%&quot;)<\/p>\n<p>print(&quot;\u4f7f\u7528 numpy:&quot;, f&quot;{percentage_numpy}%&quot;)<\/p>\n<p>print(&quot;\u4f7f\u7528 pandas:&quot;, percentage_pandas)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd0\u884c\u8fd9\u6bb5\u4ee3\u7801\uff0c\u5c06\u8f93\u51fa\u4ee5\u4e0b\u7ed3\u679c\uff1a<\/p>\n<\/p>\n<p><pre><code>\u4f7f\u7528 format() \u51fd\u6570: 12.34%<\/p>\n<p>\u4f7f\u7528 f-string: 12.34%<\/p>\n<p>\u4f7f\u7528\u767e\u5206\u6bd4\u7b26\u53f7: 12.34%<\/p>\n<p>\u4f7f\u7528 numpy: 12.34%<\/p>\n<p>\u4f7f\u7528 pandas: 12.34%<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u8fd9\u4e9b\u793a\u4f8b\uff0c\u6211\u4eec\u53ef\u4ee5\u770b\u5230\u4e0d\u540c\u65b9\u6cd5\u7684\u8f93\u51fa\u7ed3\u679c\u662f\u4e00\u81f4\u7684\uff0c\u90fd\u5c06\u6570\u5b57<code>0.1234<\/code>\u8f6c\u6362\u4e3a\u4e86\u767e\u5206\u6570<code>12.34%<\/code>\u3002\u6839\u636e\u5177\u4f53\u7684\u4f7f\u7528\u573a\u666f\u548c\u9700\u6c42\uff0c\u53ef\u4ee5\u9009\u62e9\u9002\u5408\u7684\u65b9\u6cd5\u8fdb\u884c\u767e\u5206\u6570\u683c\u5f0f\u5316\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u5728\u672c\u6587\u4e2d\uff0c\u6211\u4eec\u4ecb\u7ecd\u4e86\u51e0\u79cd\u5728Python\u4e2d\u8f93\u51fa\u767e\u5206\u6570\u7684\u65b9\u6cd5\uff0c\u5305\u62ec\u4f7f\u7528\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u3001\u4f7f\u7528\u767e\u5206\u6bd4\u7b26\u53f7\u4ee5\u53ca\u501f\u52a9\u7b2c\u4e09\u65b9\u5e93\u51fd\u6570\u3002<strong>\u5b57\u7b26\u4e32\u683c\u5f0f\u5316<\/strong>\u65b9\u6cd5\u5305\u62ec<code>format()<\/code>\u51fd\u6570\u548c<code>f-string<\/code>\uff0c<strong>\u4f7f\u7528\u767e\u5206\u6bd4\u7b26\u53f7<\/strong>\u7684\u65b9\u6cd5\u5219\u662f\u76f4\u63a5\u5c06\u6570\u5b57\u4e58\u4ee5100\uff0c\u5e76\u5728\u7ed3\u679c\u540e\u9762\u6dfb\u52a0\u767e\u5206\u6bd4\u7b26\u53f7\u3002<strong>\u501f\u52a9\u5e93\u51fd\u6570<\/strong>\u7684\u65b9\u6cd5\u5219\u5305\u62ec\u4f7f\u7528<code>numpy<\/code>\u548c<code>pandas<\/code>\u8fdb\u884c\u767e\u5206\u6570\u683c\u5f0f\u5316\u3002\u6bcf\u79cd\u65b9\u6cd5\u90fd\u6709\u5176\u9002\u7528\u7684\u573a\u666f\u548c\u4f18\u52bf\uff0c\u9009\u62e9\u9002\u5408\u7684\u65b9\u6cd5\u53ef\u4ee5\u63d0\u9ad8\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u548c\u53ef\u7ef4\u62a4\u6027\u3002<\/p>\n<\/p>\n<p><p>\u5e0c\u671b\u901a\u8fc7\u672c\u6587\u7684\u4ecb\u7ecd\uff0c\u60a8\u80fd\u591f\u66f4\u597d\u5730\u7406\u89e3\u548c\u638c\u63e1\u5728Python\u4e2d\u8f93\u51fa\u767e\u5206\u6570\u7684\u65b9\u6cd5\uff0c\u5e76\u5728\u5b9e\u9645\u7f16\u7a0b\u4e2d\u7075\u6d3b\u5e94\u7528\u3002\u5982\u679c\u60a8\u5bf9\u672c\u6587\u5185\u5bb9\u6709\u4efb\u4f55\u7591\u95ee\u6216\u8865\u5145\uff0c\u6b22\u8fce\u5728\u4e0b\u65b9\u7559\u8a00\u8ba8\u8bba\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u683c\u5f0f\u5316\u8f93\u51fa\u767e\u5206\u6570\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u65b9\u6cd5\u6765\u8f93\u51fa\u767e\u5206\u6570\u3002\u5e38\u7528\u7684\u65b9\u6cd5\u5305\u62ecf-string\uff08Python 3.6\u53ca\u4ee5\u4e0a\u7248\u672c\uff09\u548c<code>format()<\/code>\u51fd\u6570\u3002\u6bd4\u5982\uff0c\u4f7f\u7528f-string\u65f6\uff0c\u53ef\u4ee5\u8fd9\u6837\u5199\uff1a<code>value = 0.85<\/code>\uff0c\u8f93\u51fa\u767e\u5206\u6570\u53ef\u4ee5\u7528<code>print(f&quot;{value:.2%}&quot;)<\/code>\uff0c\u8fd9\u5c06\u663e\u793a\u4e3a\u201c85.00%\u201d\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\u5982\u4f55\u5c06\u5c0f\u6570\u8f6c\u6362\u4e3a\u767e\u5206\u6570\uff1f<\/strong><br \/>\u5c06\u5c0f\u6570\u8f6c\u6362\u4e3a\u767e\u5206\u6570\u5176\u5b9e\u5f88\u7b80\u5355\u3002\u53ea\u9700\u5c06\u5c0f\u6570\u4e58\u4ee5100\u5e76\u6dfb\u52a0\u767e\u5206\u53f7\u3002\u4f8b\u5982\uff0c\u82e5\u6709\u4e00\u4e2a\u53d8\u91cf<code>decimal_value = 0.75<\/code>\uff0c\u53ef\u4ee5\u4f7f\u7528<code>percentage_value = decimal_value * 100<\/code>\uff0c\u7136\u540e\u8f93\u51fa\u65f6\u518d\u52a0\u4e0a\u201c%\u201d\u7b26\u53f7\uff0c\u7ed3\u679c\u4e3a\u201c75%\u201d\u3002<\/p>\n<p><strong>Python\u4e2d\u5982\u4f55\u5904\u7406\u5c0f\u6570\u70b9\u540e\u6570\u5b57\u7684\u7cbe\u5ea6\uff1f<\/strong><br \/>\u5904\u7406\u5c0f\u6570\u70b9\u540e\u6570\u5b57\u7684\u7cbe\u5ea6\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528<code>round()<\/code>\u51fd\u6570\u6765\u63a7\u5236\u5c0f\u6570\u4f4d\u6570\u3002\u4f8b\u5982\uff0c<code>percentage = round(value * 100, 2)<\/code>\u53ef\u4ee5\u5c06<code>value<\/code>\u8f6c\u6362\u4e3a\u767e\u5206\u6570\u5e76\u4fdd\u7559\u4e24\u4f4d\u5c0f\u6570\u3002\u8fd9\u6837\u53ef\u4ee5\u786e\u4fdd\u8f93\u51fa\u7684\u683c\u5f0f\u7b26\u5408\u9700\u6c42\uff0c\u4e0d\u4f1a\u56e0\u4e3a\u6d6e\u70b9\u6570\u7cbe\u5ea6\u95ee\u9898\u800c\u5bfc\u81f4\u663e\u793a\u4e0d\u4e00\u81f4\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\u8f93\u51fa\u767e\u5206\u6570\u7684\u51e0\u79cd\u65b9\u6cd5\u5305\u62ec\uff1a\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u3001\u4f7f\u7528\u767e\u5206\u6bd4\u7b26\u53f7\u3001\u501f\u52a9\u5e93\u51fd\u6570\u3002 \u5176\u4e2d\uff0c\u4f7f\u7528\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u662f [&hellip;]","protected":false},"author":3,"featured_media":1105812,"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\/1105799"}],"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=1105799"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1105799\/revisions"}],"predecessor-version":[{"id":1105818,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1105799\/revisions\/1105818"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1105812"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1105799"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1105799"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1105799"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}