{"id":1025762,"date":"2024-12-31T10:36:50","date_gmt":"2024-12-31T02:36:50","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1025762.html"},"modified":"2024-12-31T10:36:53","modified_gmt":"2024-12-31T02:36:53","slug":"%e5%a6%82%e4%bd%95%e7%94%a8python%e7%94%bb%e7%ac%9b%e5%8d%a1%e5%b0%94%e5%bf%83%e5%bd%a2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1025762.html","title":{"rendered":"\u5982\u4f55\u7528python\u753b\u7b1b\u5361\u5c14\u5fc3\u5f62"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2024\/12\/e690982e-ae1f-4082-9364-4f35d6b97d41.webp?x-oss-process=image\/auto-orient,1\/format,webp\" alt=\"\u5982\u4f55\u7528python\u753b\u7b1b\u5361\u5c14\u5fc3\u5f62\" \/><\/p>\n<p><p> <strong>\u7528Python\u753b\u7b1b\u5361\u5c14\u5fc3\u5f62\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u6700\u5e38\u89c1\u7684\u5305\u62ec\uff1a\u4f7f\u7528matplotlib\u5e93\u3001\u4f7f\u7528turtle\u5e93\u3001\u4f7f\u7528PIL\u5e93\u3002<\/strong> \u5176\u4e2d\uff0c\u4f7f\u7528matplotlib\u5e93\u662f\u8f83\u4e3a\u65b9\u4fbf\u4e14\u6548\u679c\u8f83\u597d\u7684\u65b9\u6cd5\u3002\u4e0b\u9762\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528\u8fd9\u4e9b\u65b9\u6cd5\u4e2d\u7684\u4e00\u79cd\uff0c\u5373\u4f7f\u7528matplotlib\u5e93\u6765\u753b\u7b1b\u5361\u5c14\u5fc3\u5f62\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528matplotlib\u5e93\u7ed8\u5236\u7b1b\u5361\u5c14\u5fc3\u5f62<\/h3>\n<\/p>\n<p><h4>1\u3001\u5b89\u88c5\u548c\u5bfc\u5165\u5fc5\u8981\u7684\u5e93<\/h4>\n<\/p>\n<p><p>\u5728\u5f00\u59cb\u7ed8\u56fe\u4e4b\u524d\uff0c\u4f60\u9700\u8981\u786e\u4fdd\u5df2\u5b89\u88c5matplotlib\u5e93\u3002\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u8fdb\u884c\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install matplotlib<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u7136\u540e\uff0c\u5728\u4f60\u7684Python\u811a\u672c\u4e2d\u5bfc\u5165\u5fc5\u8981\u7684\u5e93\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import matplotlib.pyplot as plt<\/p>\n<p>import numpy as np<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u5b9a\u4e49\u5fc3\u5f62\u65b9\u7a0b<\/h4>\n<\/p>\n<p><p>\u7b1b\u5361\u5c14\u5fc3\u5f62\u7684\u65b9\u7a0b\u901a\u5e38\u7528\u53c2\u6570\u65b9\u7a0b\u6765\u8868\u793a\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def heart_shape(t):<\/p>\n<p>    x = 16 * np.sin(t)3<\/p>\n<p>    y = 13 * np.cos(t) - 5 * np.cos(2*t) - 2 * np.cos(3*t) - np.cos(4*t)<\/p>\n<p>    return x, y<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u65b9\u7a0b\u4e2d\uff0c<code>t<\/code> \u662f\u53c2\u6570\uff0c\u53ef\u4ee5\u53d6\u503c\u4ece0\u52302\u03c0\u3002<\/p>\n<\/p>\n<p><h4>3\u3001\u751f\u6210\u6570\u636e\u5e76\u7ed8\u5236\u56fe\u5f62<\/h4>\n<\/p>\n<p><p>\u4f7f\u7528numpy\u751f\u6210\u53c2\u6570 <code>t<\/code> \u7684\u503c\uff0c\u5e76\u4f7f\u7528\u5fc3\u5f62\u65b9\u7a0b\u8ba1\u7b97 <code>x<\/code> \u548c <code>y<\/code> \u7684\u503c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">t = np.linspace(0, 2 * np.pi, 1000)<\/p>\n<p>x, y = heart_shape(t)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u7136\u540e\uff0c\u4f7f\u7528matplotlib\u5e93\u7ed8\u5236\u56fe\u5f62\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">plt.figure(figsize=(8, 8))<\/p>\n<p>plt.plot(x, y, &#39;r&#39;)<\/p>\n<p>plt.title(&#39;Heart Shape&#39;)<\/p>\n<p>plt.xlabel(&#39;x&#39;)<\/p>\n<p>plt.ylabel(&#39;y&#39;)<\/p>\n<p>plt.grid(True)<\/p>\n<p>plt.axis(&#39;equal&#39;)<\/p>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>4\u3001\u8be6\u7ec6\u89e3\u91ca<\/h4>\n<\/p>\n<p><p>\u5728\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u9996\u5148\u751f\u6210\u4e86\u53c2\u6570 <code>t<\/code> \u7684\u503c\uff0c\u4ece0\u52302\u03c0\u5747\u5300\u5206\u5e03\u76841000\u4e2a\u70b9\u3002\u7136\u540e\u6211\u4eec\u4f7f\u7528\u5fc3\u5f62\u65b9\u7a0b\u8ba1\u7b97\u5bf9\u5e94\u7684 <code>x<\/code> \u548c <code>y<\/code> \u503c\u3002\u63a5\u7740\uff0c\u6211\u4eec\u4f7f\u7528 <code>plt.plot<\/code> \u51fd\u6570\u7ed8\u5236\u51fa\u5fc3\u5f62\u66f2\u7ebf\uff0c\u5e76\u8bbe\u7f6e\u56fe\u5f62\u7684\u6807\u9898\u3001\u5750\u6807\u8f74\u6807\u7b7e\u3001\u7f51\u683c\u548c\u7b49\u6bd4\u4f8b\u5750\u6807\u8f74\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528turtle\u5e93\u7ed8\u5236\u7b1b\u5361\u5c14\u5fc3\u5f62<\/h3>\n<\/p>\n<p><p>turtle\u5e93\u662fPython\u7684\u4e00\u4e2a\u6807\u51c6\u5e93\uff0c\u9002\u5408\u7ed8\u5236\u7b80\u5355\u7684\u56fe\u5f62\u3002\u4ee5\u4e0b\u662f\u5982\u4f55\u4f7f\u7528turtle\u5e93\u7ed8\u5236\u5fc3\u5f62\uff1a<\/p>\n<\/p>\n<p><h4>1\u3001\u5b89\u88c5\u548c\u5bfc\u5165\u5fc5\u8981\u7684\u5e93<\/h4>\n<\/p>\n<p><p>turtle\u5e93\u662fPython\u7684\u6807\u51c6\u5e93\uff0c\u65e0\u9700\u5b89\u88c5\u3002\u76f4\u63a5\u5bfc\u5165\u5373\u53ef\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import turtle<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u5b9a\u4e49\u7ed8\u5236\u5fc3\u5f62\u7684\u51fd\u6570<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">def draw_heart():<\/p>\n<p>    turtle.color(&#39;red&#39;)<\/p>\n<p>    turtle.begin_fill()<\/p>\n<p>    turtle.left(140)<\/p>\n<p>    turtle.forward(224)<\/p>\n<p>    turtle.circle(-112, 200)<\/p>\n<p>    turtle.left(120)<\/p>\n<p>    turtle.circle(-112, 200)<\/p>\n<p>    turtle.forward(224)<\/p>\n<p>    turtle.end_fill()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3\u3001\u6267\u884c\u7ed8\u5236<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">turtle.speed(2)<\/p>\n<p>draw_heart()<\/p>\n<p>turtle.hideturtle()<\/p>\n<p>turtle.done()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>4\u3001\u8be6\u7ec6\u89e3\u91ca<\/h4>\n<\/p>\n<p><p>\u5728\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u9996\u5148\u8bbe\u7f6e\u7ed8\u56fe\u7684\u989c\u8272\u4e3a\u7ea2\u8272\uff0c\u5e76\u5f00\u59cb\u586b\u5145\u989c\u8272\u3002\u63a5\u7740\uff0c\u901a\u8fc7\u4e00\u7cfb\u5217\u7684\u524d\u8fdb\u3001\u8f6c\u5411\u548c\u753b\u5706\u64cd\u4f5c\u7ed8\u5236\u51fa\u5fc3\u5f62\u7684\u8f6e\u5ed3\uff0c\u5e76\u5b8c\u6210\u989c\u8272\u586b\u5145\u3002\u6700\u540e\uff0c\u9690\u85cf\u4e4c\u9f9f\u5e76\u7ed3\u675f\u7ed8\u56fe\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u4f7f\u7528PIL\u5e93\u7ed8\u5236\u7b1b\u5361\u5c14\u5fc3\u5f62<\/h3>\n<\/p>\n<p><p>PIL\u5e93\uff08Pillow\uff09\u662fPython\u7684\u56fe\u50cf\u5904\u7406\u5e93\uff0c\u9002\u5408\u751f\u6210\u548c\u5904\u7406\u56fe\u50cf\u3002\u4ee5\u4e0b\u662f\u5982\u4f55\u4f7f\u7528PIL\u5e93\u7ed8\u5236\u5fc3\u5f62\uff1a<\/p>\n<\/p>\n<p><h4>1\u3001\u5b89\u88c5\u548c\u5bfc\u5165\u5fc5\u8981\u7684\u5e93<\/h4>\n<\/p>\n<p><p>\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5Pillow\u5e93\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install pillow<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u7136\u540e\uff0c\u5728\u4f60\u7684Python\u811a\u672c\u4e2d\u5bfc\u5165\u5fc5\u8981\u7684\u5e93\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from PIL import Image, ImageDraw<\/p>\n<p>import numpy as np<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u5b9a\u4e49\u5fc3\u5f62\u65b9\u7a0b\u5e76\u751f\u6210\u56fe\u50cf<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">def heart_shape(t):<\/p>\n<p>    x = 16 * np.sin(t)3<\/p>\n<p>    y = 13 * np.cos(t) - 5 * np.cos(2*t) - 2 * np.cos(3*t) - np.cos(4*t)<\/p>\n<p>    return x, y<\/p>\n<p>t = np.linspace(0, 2 * np.pi, 1000)<\/p>\n<p>x, y = heart_shape(t)<\/p>\n<h2><strong>\u521b\u5efa\u4e00\u4e2a\u767d\u8272\u80cc\u666f\u7684\u56fe\u50cf<\/strong><\/h2>\n<p>img = Image.new(&#39;RGB&#39;, (500, 500), &#39;white&#39;)<\/p>\n<p>draw = ImageDraw.Draw(img)<\/p>\n<h2><strong>\u5c06\u5fc3\u5f62\u65b9\u7a0b\u7684\u5750\u6807\u8f6c\u6362\u4e3a\u56fe\u50cf\u5750\u6807<\/strong><\/h2>\n<p>x = (x - np.min(x)) \/ (np.max(x) - np.min(x)) * 400 + 50<\/p>\n<p>y = (y - np.min(y)) \/ (np.max(y) - np.min(y)) * 400 + 50<\/p>\n<h2><strong>\u7ed8\u5236\u5fc3\u5f62<\/strong><\/h2>\n<p>points = list(zip(x, y))<\/p>\n<p>draw.polygon(points, outline=&#39;red&#39;)<\/p>\n<h2><strong>\u4fdd\u5b58\u56fe\u50cf<\/strong><\/h2>\n<p>img.save(&#39;heart_shape.png&#39;)<\/p>\n<p>img.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3\u3001\u8be6\u7ec6\u89e3\u91ca<\/h4>\n<\/p>\n<p><p>\u5728\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u9996\u5148\u751f\u6210\u4e86\u53c2\u6570 <code>t<\/code> \u7684\u503c\uff0c\u5e76\u4f7f\u7528\u5fc3\u5f62\u65b9\u7a0b\u8ba1\u7b97 <code>x<\/code> \u548c <code>y<\/code> \u7684\u503c\u3002\u63a5\u7740\uff0c\u6211\u4eec\u521b\u5efa\u4e00\u4e2a\u767d\u8272\u80cc\u666f\u7684\u56fe\u50cf\uff0c\u5e76\u5c06\u5fc3\u5f62\u65b9\u7a0b\u7684\u5750\u6807\u8f6c\u6362\u4e3a\u56fe\u50cf\u5750\u6807\u3002\u6700\u540e\uff0c\u6211\u4eec\u4f7f\u7528 <code>draw.polygon<\/code> \u51fd\u6570\u7ed8\u5236\u51fa\u5fc3\u5f62\uff0c\u5e76\u4fdd\u5b58\u56fe\u50cf\u3002<\/p>\n<\/p>\n<p><h3>\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u901a\u8fc7\u4e0a\u8ff0\u51e0\u79cd\u65b9\u6cd5\uff0c\u6211\u4eec\u53ef\u4ee5\u65b9\u4fbf\u5730\u4f7f\u7528Python\u7ed8\u5236\u7b1b\u5361\u5c14\u5fc3\u5f62\u3002<strong>\u4f7f\u7528matplotlib\u5e93\u7ed8\u5236\u5fc3\u5f62\u7684\u65b9\u6cd5\u7b80\u5355\u6613\u7528\uff0c\u6548\u679c\u8f83\u597d\uff1b\u4f7f\u7528turtle\u5e93\u9002\u5408\u7ed8\u5236\u7b80\u5355\u56fe\u5f62\uff1b\u4f7f\u7528PIL\u5e93\u9002\u5408\u751f\u6210\u548c\u5904\u7406\u56fe\u50cf\u3002<\/strong> \u9009\u62e9\u54ea\u79cd\u65b9\u6cd5\u53d6\u51b3\u4e8e\u4f60\u7684\u5177\u4f53\u9700\u6c42\u548c\u4f7f\u7528\u573a\u666f\u3002\u5e0c\u671b\u8fd9\u4e9b\u65b9\u6cd5\u80fd\u591f\u5e2e\u52a9\u4f60\u5728Python\u7f16\u7a0b\u4e2d\u5b9e\u73b0\u5fc3\u5f62\u7ed8\u5236\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u4f7f\u7528Python\u7ed8\u5236\u7b1b\u5361\u5c14\u5fc3\u5f62\u56fe\u6848\uff1f<\/strong><\/p>\n<p>\u8981\u7ed8\u5236\u7b1b\u5361\u5c14\u5fc3\u5f62\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528Python\u4e2d\u7684Matplotlib\u5e93\u3002\u9996\u5148\u786e\u4fdd\u5b89\u88c5\u4e86Matplotlib\u5e93\uff0c\u53ef\u4ee5\u901a\u8fc7\u547d\u4ee4<code>pip install matplotlib<\/code>\u6765\u8fdb\u884c\u5b89\u88c5\u3002\u63a5\u4e0b\u6765\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u4ee3\u7801\u6765\u7ed8\u5236\u5fc3\u5f62\uff1a<\/p>\n<pre><code class=\"language-python\">import numpy as np\nimport matplotlib.pyplot as plt\n\nt = np.linspace(0, 2 * np.pi, 1000)\nx = 16 * np.sin(t)**3\ny = 13 * np.cos(t) - 5 * np.cos(2*t) - 2 * np.cos(3*t) - np.cos(4*t)\n\nplt.plot(x, y, color=&#39;red&#39;)\nplt.title(&#39;\u7b1b\u5361\u5c14\u5fc3\u5f62&#39;)\nplt.axis(&#39;equal&#39;)\nplt.show()\n<\/code><\/pre>\n<p>\u8fd9\u6bb5\u4ee3\u7801\u751f\u6210\u4e86\u4e00\u4e2a\u7f8e\u4e3d\u7684\u5fc3\u5f62\u56fe\u6848\uff0c\u60a8\u53ef\u4ee5\u6839\u636e\u9700\u8981\u8c03\u6574\u989c\u8272\u548c\u7ebf\u6761\u6837\u5f0f\u3002<\/p>\n<p><strong>\u7ed8\u5236\u5fc3\u5f62\u56fe\u6848\u9700\u8981\u54ea\u4e9bPython\u5e93\uff1f<\/strong><\/p>\n<p>\u7ed8\u5236\u7b1b\u5361\u5c14\u5fc3\u5f62\u901a\u5e38\u4f7f\u7528Matplotlib\u5e93\uff0c\u8be5\u5e93\u4e13\u4e3a\u6570\u636e\u53ef\u89c6\u5316\u8bbe\u8ba1\uff0c\u529f\u80fd\u5f3a\u5927\u4e14\u6613\u4e8e\u4f7f\u7528\u3002\u6b64\u5916\uff0cNumpy\u5e93\u4e5f\u5f88\u91cd\u8981\uff0c\u56e0\u4e3a\u5b83\u7528\u4e8e\u521b\u5efa\u548c\u5904\u7406\u6570\u5b66\u8ba1\u7b97\u4e2d\u7684\u6570\u7ec4\u3002\u786e\u4fdd\u5728\u5f00\u59cb\u4e4b\u524d\u5b89\u88c5\u8fd9\u4e24\u4e2a\u5e93\u3002<\/p>\n<p><strong>\u5982\u4f55\u8c03\u6574\u7ed8\u5236\u7684\u5fc3\u5f62\u989c\u8272\u548c\u6837\u5f0f\uff1f<\/strong><\/p>\n<p>\u60a8\u53ef\u4ee5\u901a\u8fc7\u4fee\u6539<code>plt.plot<\/code>\u51fd\u6570\u4e2d\u7684\u53c2\u6570\u6765\u8c03\u6574\u5fc3\u5f62\u7684\u989c\u8272\u548c\u6837\u5f0f\u3002\u4f8b\u5982\uff0c\u60a8\u53ef\u4ee5\u6dfb\u52a0<code>linestyle<\/code>\u53c2\u6570\u6765\u6539\u53d8\u7ebf\u6761\u6837\u5f0f\uff0c\u4f7f\u7528<code>color<\/code>\u53c2\u6570\u6765\u6307\u5b9a\u989c\u8272\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\uff1a<\/p>\n<pre><code class=\"language-python\">plt.plot(x, y, color=&#39;pink&#39;, linestyle=&#39;--&#39;, linewidth=2)\n<\/code><\/pre>\n<p>\u8fd9\u5c06\u7ed8\u5236\u4e00\u4e2a\u7c89\u8272\u7684\u865a\u7ebf\u5fc3\u5f62\uff0c\u7ebf\u6761\u5bbd\u5ea6\u4e3a2\u3002<\/p>\n<p><strong>\u5982\u4f55\u5c06\u5fc3\u5f62\u56fe\u5f62\u4fdd\u5b58\u4e3a\u56fe\u50cf\u6587\u4ef6\uff1f<\/strong><\/p>\n<p>\u5982\u679c\u60a8\u5e0c\u671b\u5c06\u7ed8\u5236\u7684\u5fc3\u5f62\u56fe\u5f62\u4fdd\u5b58\u4e3a\u56fe\u50cf\u6587\u4ef6\uff0c\u53ef\u4ee5\u4f7f\u7528<code>plt.savefig<\/code>\u51fd\u6570\u3002\u5728\u7ed8\u5236\u5b8c\u56fe\u5f62\u540e\uff0c\u6dfb\u52a0\u4ee5\u4e0b\u4ee3\u7801\uff1a<\/p>\n<pre><code class=\"language-python\">plt.savefig(&#39;heart_shape.png&#39;)\n<\/code><\/pre>\n<p>\u60a8\u53ef\u4ee5\u5c06\u6587\u4ef6\u540d\u548c\u683c\u5f0f\u66f4\u6539\u4e3a\u6240\u9700\u7684\u7c7b\u578b\uff0c\u4f8b\u5982JPEG\u6216PDF\u3002\u8fd9\u6837\uff0c\u60a8\u5c31\u53ef\u4ee5\u8f7b\u677e\u4fdd\u5b58\u5e76\u5206\u4eab\u60a8\u7684\u4f5c\u54c1\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u7528Python\u753b\u7b1b\u5361\u5c14\u5fc3\u5f62\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u6700\u5e38\u89c1\u7684\u5305\u62ec\uff1a\u4f7f\u7528matplotlib\u5e93\u3001\u4f7f\u7528turtle\u5e93\u3001\u4f7f\u7528PI [&hellip;]","protected":false},"author":3,"featured_media":1025772,"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\/1025762"}],"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=1025762"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1025762\/revisions"}],"predecessor-version":[{"id":1025775,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1025762\/revisions\/1025775"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1025772"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1025762"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1025762"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1025762"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}