{"id":1123818,"date":"2025-01-08T19:35:52","date_gmt":"2025-01-08T11:35:52","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1123818.html"},"modified":"2025-01-08T19:35:54","modified_gmt":"2025-01-08T11:35:54","slug":"python%e4%b8%ad%e5%a6%82%e4%bd%95%e5%90%8c%e6%97%b6%e8%be%93%e5%87%ba%e5%8f%98%e9%87%8f%e5%92%8c%e5%ad%97%e7%ac%a6%e4%b8%b2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1123818.html","title":{"rendered":"Python\u4e2d\u5982\u4f55\u540c\u65f6\u8f93\u51fa\u53d8\u91cf\u548c\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\/25085130\/0acf2009-479f-4958-98ef-4ce9c164a349.webp\" alt=\"Python\u4e2d\u5982\u4f55\u540c\u65f6\u8f93\u51fa\u53d8\u91cf\u548c\u5b57\u7b26\u4e32\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7\u51e0\u79cd\u4e0d\u540c\u7684\u65b9\u6cd5\u6765\u540c\u65f6\u8f93\u51fa\u53d8\u91cf\u548c\u5b57\u7b26\u4e32\uff1a\u4f7f\u7528\u9017\u53f7\u5206\u9694\u3001\u4f7f\u7528\u52a0\u53f7\u8fde\u63a5\u3001\u4f7f\u7528\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\uff08f-strings\uff09\u3001\u4f7f\u7528<code>str.format()<\/code>\u65b9\u6cd5\u3001\u4ee5\u53ca\u4f7f\u7528\u767e\u5206\u53f7\uff08%\uff09\u683c\u5f0f\u5316\u3002<\/strong> \u8fd9\u4e9b\u65b9\u6cd5\u90fd\u6709\u5176\u72ec\u7279\u7684\u4f18\u70b9\u548c\u9002\u7528\u573a\u666f\uff0c\u5176\u4e2d<strong>\u4f7f\u7528\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\uff08f-strings\uff09<\/strong>\u662f\u6700\u4e3a\u63a8\u8350\u7684\u65b9\u6cd5\uff0c\u56e0\u4e3a\u5b83\u8bed\u6cd5\u7b80\u6d01\u3001\u53ef\u8bfb\u6027\u9ad8\uff0c\u5e76\u4e14\u5728Python 3.6\u53ca\u4ee5\u540e\u7684\u7248\u672c\u4e2d\u5f97\u5230\u4e86\u5e7f\u6cdb\u652f\u6301\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u6bcf\u79cd\u65b9\u6cd5\u7684\u4f7f\u7528\u573a\u666f\u548c\u5177\u4f53\u793a\u4f8b\u3002<\/p>\n<\/p>\n<h2><strong>\u4e00\u3001\u9017\u53f7\u5206\u9694<\/strong><\/h2>\n<p><p>\u9017\u53f7\u5206\u9694\u662f\u4e00\u79cd\u7b80\u5355\u4e14\u76f4\u89c2\u7684\u65b9\u6cd5\uff0c\u5b83\u5229\u7528Python\u7684\u5185\u7f6e<code>print()<\/code>\u51fd\u6570\uff0c\u901a\u8fc7\u9017\u53f7\u5c06\u5b57\u7b26\u4e32\u548c\u53d8\u91cf\u5206\u5f00\u3002<code>print()<\/code>\u51fd\u6570\u4f1a\u81ea\u52a8\u5728\u8f93\u51fa\u4e2d\u6dfb\u52a0\u7a7a\u683c\uff0c\u5e76\u5c06\u6240\u6709\u5185\u5bb9\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">name = &quot;Alice&quot;<\/p>\n<p>age = 30<\/p>\n<p>print(&quot;Name:&quot;, name, &quot;Age:&quot;, age)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u7684\u4f18\u70b9\u662f\u7b80\u5355\u6613\u7528\uff0c\u4e0d\u9700\u8981\u590d\u6742\u7684\u8bed\u6cd5\uff0c\u4f46\u5728\u9700\u8981\u683c\u5f0f\u5316\u8f93\u51fa\u65f6\u663e\u5f97\u4e0d\u8db3\u3002\u4f8b\u5982\uff0c\u5982\u679c\u4f60\u9700\u8981\u5728\u8f93\u51fa\u4e2d\u63a7\u5236\u7a7a\u683c\u3001\u5bf9\u9f50\u6216\u5176\u4ed6\u683c\u5f0f\uff0c\u8fd9\u79cd\u65b9\u6cd5\u53ef\u80fd\u4e0d\u591f\u7075\u6d3b\u3002<\/p>\n<\/p>\n<h2><strong>\u4e8c\u3001\u52a0\u53f7\u8fde\u63a5<\/strong><\/h2>\n<p><p>\u52a0\u53f7\u8fde\u63a5\u65b9\u6cd5\u4f7f\u7528\u52a0\u53f7\uff08+\uff09\u5c06\u5b57\u7b26\u4e32\u548c\u53d8\u91cf\u8fde\u63a5\u8d77\u6765\u3002\u8fd9\u79cd\u65b9\u6cd5\u7684\u4f18\u70b9\u662f\u80fd\u6e05\u695a\u5730\u8868\u8fbe\u5b57\u7b26\u4e32\u62fc\u63a5\u7684\u610f\u56fe\uff0c\u4f46\u9700\u8981\u624b\u52a8\u8f6c\u6362\u53d8\u91cf\u4e3a\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">name = &quot;Alice&quot;<\/p>\n<p>age = 30<\/p>\n<p>print(&quot;Name: &quot; + name + &quot; Age: &quot; + str(age))<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u5728\u62fc\u63a5\u5c11\u91cf\u5b57\u7b26\u4e32\u65f6\u975e\u5e38\u76f4\u89c2\uff0c\u4f46\u5728\u5904\u7406\u590d\u6742\u5b57\u7b26\u4e32\u62fc\u63a5\u65f6\uff0c\u4ee3\u7801\u53ef\u8bfb\u6027\u4f1a\u4e0b\u964d\uff0c\u5e76\u4e14\u5bb9\u6613\u51fa\u9519\u3002<\/p>\n<\/p>\n<h2><strong>\u4e09\u3001\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\uff08f-strings\uff09<\/strong><\/h2>\n<p><p>\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\uff08f-strings\uff09\u662f\u4e00\u79cd\u5728Python 3.6\u53ca\u4ee5\u540e\u7248\u672c\u4e2d\u5f15\u5165\u7684\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u65b9\u6cd5\u3002\u5b83\u901a\u8fc7\u5728\u5b57\u7b26\u4e32\u524d\u52a0\u4e0a\u5b57\u6bcd<code>f<\/code>\uff0c\u5e76\u5728\u5b57\u7b26\u4e32\u5185\u4f7f\u7528\u82b1\u62ec\u53f7<code>{}<\/code>\u6765\u5d4c\u5165\u53d8\u91cf\u6216\u8868\u8fbe\u5f0f\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">name = &quot;Alice&quot;<\/p>\n<p>age = 30<\/p>\n<p>print(f&quot;Name: {name} Age: {age}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>f-strings\u7684\u4f18\u70b9\u662f\u8bed\u6cd5\u7b80\u6d01\u3001\u53ef\u8bfb\u6027\u9ad8\uff0c\u5e76\u4e14\u652f\u6301\u590d\u6742\u7684\u8868\u8fbe\u5f0f\u548c\u683c\u5f0f\u5316\u9009\u9879<\/strong>\u3002\u4f8b\u5982\uff0c\u4f60\u53ef\u4ee5\u5728\u82b1\u62ec\u53f7\u5185\u8fdb\u884c\u8fd0\u7b97\u6216\u8c03\u7528\u51fd\u6570\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import math<\/p>\n<p>radius = 3<\/p>\n<p>print(f&quot;The area of the circle is {math.pi * radius2:.2f}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<h2><strong>\u56db\u3001<code>str.format()<\/code>\u65b9\u6cd5<\/strong><\/h2>\n<p><p><code>str.format()<\/code>\u65b9\u6cd5\u662fPython 2.7\u53ca\u4ee5\u540e\u7248\u672c\u4e2d\u63d0\u4f9b\u7684\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u65b9\u6cd5\u3002\u5b83\u901a\u8fc7\u5728\u5b57\u7b26\u4e32\u4e2d\u4f7f\u7528\u82b1\u62ec\u53f7<code>{}<\/code>\u5360\u4f4d\u7b26\uff0c\u5e76\u8c03\u7528\u5b57\u7b26\u4e32\u7684<code>format()<\/code>\u65b9\u6cd5\u6765\u63d2\u5165\u53d8\u91cf\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">name = &quot;Alice&quot;<\/p>\n<p>age = 30<\/p>\n<p>print(&quot;Name: {} Age: {}&quot;.format(name, age))<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong><code>str.format()<\/code>\u65b9\u6cd5\u7684\u4f18\u70b9\u662f\u7075\u6d3b\u6027\u9ad8\uff0c\u652f\u6301\u590d\u6742\u7684\u683c\u5f0f\u5316\u9009\u9879\u548c\u5d4c\u5957<\/strong>\u3002\u4f8b\u5982\uff0c\u4f60\u53ef\u4ee5\u6307\u5b9a\u53d8\u91cf\u7684\u987a\u5e8f\u3001\u540d\u79f0\uff0c\u751a\u81f3\u662f\u683c\u5f0f\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">print(&quot;Name: {0} Age: {1}&quot;.format(name, age))<\/p>\n<p>print(&quot;Name: {name} Age: {age}&quot;.format(name=name, age=age))<\/p>\n<p>print(&quot;The value of pi is approximately {0:.2f}&quot;.format(math.pi))<\/p>\n<p><\/code><\/pre>\n<\/p>\n<h2><strong>\u4e94\u3001\u767e\u5206\u53f7\uff08%\uff09\u683c\u5f0f\u5316<\/strong><\/h2>\n<p><p>\u767e\u5206\u53f7\uff08%\uff09\u683c\u5f0f\u5316\u662f\u4e00\u79cd\u8f83\u65e9\u7684\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u65b9\u6cd5\uff0c\u7c7b\u4f3c\u4e8eC\u8bed\u8a00\u4e2d\u7684<code>printf<\/code>\u3002\u5b83\u4f7f\u7528\u767e\u5206\u53f7\u548c\u683c\u5f0f\u8bf4\u660e\u7b26\u6765\u63d2\u5165\u53d8\u91cf\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">name = &quot;Alice&quot;<\/p>\n<p>age = 30<\/p>\n<p>print(&quot;Name: %s Age: %d&quot; % (name, age))<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u8fd9\u79cd\u65b9\u6cd5\u7684\u4f18\u70b9\u662f\u4e0eC\u8bed\u8a00\u98ce\u683c\u517c\u5bb9\uff0c\u5bb9\u6613\u88ab\u719f\u6089C\u8bed\u8a00\u7684\u7a0b\u5e8f\u5458\u63a5\u53d7<\/strong>\uff0c\u4f46\u5728\u5904\u7406\u590d\u6742\u683c\u5f0f\u65f6\u4e0d\u5982<code>str.format()<\/code>\u548cf-strings\u7075\u6d3b\u3002<\/p>\n<\/p>\n<h2><strong>\u5e94\u7528\u573a\u666f\u4e0e\u6700\u4f73\u5b9e\u8df5<\/strong><\/h2>\n<p><p>\u5728\u9009\u62e9\u4f7f\u7528\u54ea\u79cd\u65b9\u6cd5\u65f6\uff0c\u5e94\u6839\u636e\u5177\u4f53\u7684\u5e94\u7528\u573a\u666f\u548c\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u6765\u51b3\u5b9a\u3002\u4ee5\u4e0b\u662f\u51e0\u79cd\u5e38\u89c1\u7684\u5e94\u7528\u573a\u666f\u548c\u5bf9\u5e94\u7684\u6700\u4f73\u5b9e\u8df5\uff1a<\/p>\n<\/p>\n<p><h2>\u7b80\u5355\u8f93\u51fa<\/h2>\n<\/p>\n<p><p>\u5bf9\u4e8e\u7b80\u5355\u7684\u53d8\u91cf\u548c\u5b57\u7b26\u4e32\u8f93\u51fa\uff0c\u63a8\u8350\u4f7f\u7528f-strings\u6216<code>str.format()<\/code>\u65b9\u6cd5\u3002\u8fd9\u4e24\u79cd\u65b9\u6cd5\u8bed\u6cd5\u7b80\u6d01\uff0c\u6613\u4e8e\u9605\u8bfb\u548c\u7ef4\u62a4\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u63a8\u8350<\/p>\n<p>name = &quot;Alice&quot;<\/p>\n<p>age = 30<\/p>\n<p>print(f&quot;Name: {name} Age: {age}&quot;)<\/p>\n<h2><strong>\u6216\u8005<\/strong><\/h2>\n<p>print(&quot;Name: {} Age: {}&quot;.format(name, age))<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h2>\u590d\u6742\u683c\u5f0f<\/h2>\n<\/p>\n<p><p>\u5bf9\u4e8e\u9700\u8981\u590d\u6742\u683c\u5f0f\u5316\u8f93\u51fa\u7684\u573a\u666f\uff0c\u63a8\u8350\u4f7f\u7528<code>str.format()<\/code>\u65b9\u6cd5\u6216f-strings\u3002\u8fd9\u4e24\u79cd\u65b9\u6cd5\u652f\u6301\u591a\u79cd\u683c\u5f0f\u5316\u9009\u9879\uff0c\u53ef\u4ee5\u6ee1\u8db3\u590d\u6742\u7684\u683c\u5f0f\u5316\u9700\u6c42\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u63a8\u8350<\/p>\n<p>import math<\/p>\n<p>radius = 3<\/p>\n<p>print(f&quot;The area of the circle is {math.pi * radius2:.2f}&quot;)<\/p>\n<h2><strong>\u6216\u8005<\/strong><\/h2>\n<p>print(&quot;The area of the circle is {:.2f}&quot;.format(math.pi * radius2))<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h2>\u517c\u5bb9\u6027\u8981\u6c42<\/h2>\n<\/p>\n<p><p>\u5982\u679c\u4f60\u7684\u4ee3\u7801\u9700\u8981\u517c\u5bb9Python 2.7\u53ca\u4ee5\u524d\u7684\u7248\u672c\uff0c\u53ef\u4ee5\u4f7f\u7528<code>str.format()<\/code>\u65b9\u6cd5\u6216\u767e\u5206\u53f7\uff08%\uff09\u683c\u5f0f\u5316\u65b9\u6cd5\u3002\u867d\u7136f-strings\u63d0\u4f9b\u4e86\u66f4\u597d\u7684\u53ef\u8bfb\u6027\u548c\u7075\u6d3b\u6027\uff0c\u4f46\u5b83\u4eec\u4ec5\u5728Python 3.6\u53ca\u4ee5\u540e\u7248\u672c\u4e2d\u53ef\u7528\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># Python 2.7\u53ca\u4ee5\u540e\u7248\u672c<\/p>\n<p>name = &quot;Alice&quot;<\/p>\n<p>age = 30<\/p>\n<p>print(&quot;Name: {} Age: {}&quot;.format(name, age))<\/p>\n<h2><strong>Python 2.6\u53ca\u4ee5\u524d\u7248\u672c<\/strong><\/h2>\n<p>print(&quot;Name: %s Age: %d&quot; % (name, age))<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u603b\u4e4b\uff0c\u5728Python\u4e2d\u8f93\u51fa\u53d8\u91cf\u548c\u5b57\u7b26\u4e32\u6709\u591a\u79cd\u65b9\u6cd5\u53ef\u4f9b\u9009\u62e9\uff0c\u6bcf\u79cd\u65b9\u6cd5\u90fd\u6709\u5176\u72ec\u7279\u7684\u4f18\u70b9\u548c\u9002\u7528\u573a\u666f\u3002\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u63a8\u8350\u4f7f\u7528f-strings\u548c<code>str.format()<\/code>\u65b9\u6cd5\uff0c\u56e0\u4e3a\u5b83\u4eec\u63d0\u4f9b\u4e86\u66f4\u597d\u7684\u53ef\u8bfb\u6027\u548c\u7075\u6d3b\u6027\u3002\u6839\u636e\u5177\u4f53\u7684\u9700\u6c42\u548c\u4ee3\u7801\u73af\u5883\uff0c\u9009\u62e9\u6700\u9002\u5408\u7684\u65b9\u6cd5\uff0c\u4ee5\u786e\u4fdd\u4ee3\u7801\u7684\u53ef\u7ef4\u62a4\u6027\u548c\u53ef\u8bfb\u6027\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u7ed3\u5408\u53d8\u91cf\u548c\u5b57\u7b26\u4e32\u8fdb\u884c\u8f93\u51fa\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u591a\u79cd\u65b9\u6cd5\u5c06\u53d8\u91cf\u4e0e\u5b57\u7b26\u4e32\u7ed3\u5408\u8f93\u51fa\u3002\u5e38\u89c1\u7684\u65b9\u6cd5\u5305\u62ec\u4f7f\u7528\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\uff08f-string\uff09\u3001<code>str.format()<\/code>\u65b9\u6cd5\u4ee5\u53ca\u62fc\u63a5\u64cd\u4f5c\u7b26<code>+<\/code>\u3002\u4f8b\u5982\uff0c\u4f7f\u7528f-string\u53ef\u4ee5\u8fd9\u6837\u5199\uff1a<code>name = &quot;Alice&quot;; print(f&quot;Hello, {name}!&quot;)<\/code>\uff0c\u8fd9\u5c06\u8f93\u51fa<code>Hello, Alice!<\/code>\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\uff0c\u662f\u5426\u53ef\u4ee5\u5728\u4e00\u884c\u4e2d\u8f93\u51fa\u591a\u4e2a\u53d8\u91cf\u548c\u5b57\u7b26\u4e32\uff1f<\/strong><br \/>\u5f53\u7136\u53ef\u4ee5\u3002\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u9017\u53f7\u5206\u9694\u591a\u4e2a\u53d8\u91cf\u548c\u5b57\u7b26\u4e32\uff0c\u4f7f\u7528<code>print()<\/code>\u51fd\u6570\u4e00\u6b21\u6027\u8f93\u51fa\u3002\u4f8b\u5982\uff1a<code>age = 30; print(&quot;My name is&quot;, name, &quot;and I am&quot;, age, &quot;years old.&quot;)<\/code>\uff0c\u8fd9\u5c06\u8f93\u51fa<code>My name is Alice and I am 30 years old.<\/code>\u3002<\/p>\n<p><strong>\u4f7f\u7528\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u7684\u65b9\u6cd5\u6709\u4ec0\u4e48\u4f18\u7f3a\u70b9\uff1f<\/strong><br \/>\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u65b9\u6cd5\u5982f-string\u548c<code>str.format()<\/code>\u63d0\u4f9b\u4e86\u66f4\u597d\u7684\u53ef\u8bfb\u6027\u548c\u7075\u6d3b\u6027\u3002f-string\u5728Python 3.6\u53ca\u4ee5\u4e0a\u7248\u672c\u4e2d\u4f7f\u7528\u65b9\u4fbf\uff0c\u5141\u8bb8\u76f4\u63a5\u5728\u5b57\u7b26\u4e32\u4e2d\u5d4c\u5165\u53d8\u91cf\uff0c\u800c<code>str.format()<\/code>\u9002\u7528\u4e8e\u9700\u8981\u8fdb\u884c\u590d\u6742\u683c\u5f0f\u5316\u7684\u573a\u666f\u3002\u62fc\u63a5\u64cd\u4f5c\u7b26<code>+<\/code>\u5219\u6bd4\u8f83\u7b80\u5355\uff0c\u4f46\u5728\u5904\u7406\u591a\u4e2a\u53d8\u91cf\u65f6\uff0c\u4ee3\u7801\u53ef\u8bfb\u6027\u4f1a\u4e0b\u964d\uff0c\u4e14\u9700\u8981\u786e\u4fdd\u6240\u6709\u90e8\u5206\u90fd\u662f\u5b57\u7b26\u4e32\u7c7b\u578b\u3002\u9009\u62e9\u54ea\u79cd\u65b9\u6cd5\u53d6\u51b3\u4e8e\u5177\u4f53\u9700\u6c42\u548c\u4ee3\u7801\u98ce\u683c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7\u51e0\u79cd\u4e0d\u540c\u7684\u65b9\u6cd5\u6765\u540c\u65f6\u8f93\u51fa\u53d8\u91cf\u548c\u5b57\u7b26\u4e32\uff1a\u4f7f\u7528\u9017\u53f7\u5206\u9694\u3001\u4f7f\u7528\u52a0\u53f7\u8fde\u63a5\u3001\u4f7f\u7528\u683c\u5f0f\u5316\u5b57\u7b26\u4e32 [&hellip;]","protected":false},"author":3,"featured_media":1123825,"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\/1123818"}],"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=1123818"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1123818\/revisions"}],"predecessor-version":[{"id":1123828,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1123818\/revisions\/1123828"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1123825"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1123818"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1123818"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1123818"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}