{"id":1015293,"date":"2024-12-27T12:04:32","date_gmt":"2024-12-27T04:04:32","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1015293.html"},"modified":"2024-12-27T12:04:35","modified_gmt":"2024-12-27T04:04:35","slug":"%e5%a6%82%e4%bd%95%e7%94%a8python%e7%94%bb%e5%87%ba%e5%9c%86%e5%9c%88","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1015293.html","title":{"rendered":"\u5982\u4f55\u7528python\u753b\u51fa\u5706\u5708"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25095203\/d5af110e-d592-4bbf-a420-a86b4dbbe500.webp\" alt=\"\u5982\u4f55\u7528python\u753b\u51fa\u5706\u5708\" \/><\/p>\n<p><p> <strong>\u8981\u7528Python\u753b\u51fa\u5706\u5708\uff0c\u53ef\u4ee5\u4f7f\u7528\u591a\u79cd\u65b9\u6cd5\uff0c\u5982\u4f7f\u7528matplotlib\u5e93\u3001turtle\u5e93\u3001opencv\u5e93\u7b49\u3002matplotlib\u5e93\u9002\u5408\u7528\u4e8e\u6570\u636e\u53ef\u89c6\u5316\u3001turtle\u5e93\u9002\u5408\u7528\u4e8e\u7b80\u5355\u7684\u56fe\u5f62\u7ed8\u5236\u3001opencv\u5e93\u9002\u5408\u4e8e\u8ba1\u7b97\u673a\u89c6\u89c9\u76f8\u5173\u7684\u56fe\u5f62\u7ed8\u5236\u3002<\/strong>\u5728\u672c\u6587\u4e2d\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528\u8fd9\u4e09\u79cd\u65b9\u6cd5\u6765\u7ed8\u5236\u5706\u5708\uff0c\u5e76\u63d0\u4f9b\u4ee3\u7801\u793a\u4f8b\u548c\u8be6\u7ec6\u89e3\u91ca\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u4f7f\u7528MATPLOTLIB\u5e93<\/p>\n<\/p>\n<p><p>Matplotlib\u662f\u4e00\u4e2a\u5e7f\u6cdb\u4f7f\u7528\u7684Python\u5e93\uff0c\u7528\u4e8e\u521b\u5efa\u9759\u6001\u3001\u52a8\u753b\u548c\u4ea4\u4e92\u5f0f\u53ef\u89c6\u5316\u56fe\u5f62\u3002\u5b83\u975e\u5e38\u9002\u5408\u7528\u4e8e\u79d1\u5b66\u56fe\u5f62\u7684\u7ed8\u5236\uff0c\u5176\u4e2d\u4e5f\u5305\u62ec\u7b80\u5355\u7684\u51e0\u4f55\u56fe\u5f62\u5982\u5706\u5708\u3002<\/p>\n<\/p>\n<ol>\n<li>\u5b89\u88c5\u548c\u5bfc\u5165Matplotlib<\/li>\n<\/ol>\n<p><p>\u5728\u4f7f\u7528Matplotlib\u5e93\u4e4b\u524d\uff0c\u9996\u5148\u9700\u8981\u786e\u4fdd\u5b83\u5df2\u7ecf\u5b89\u88c5\u5728\u60a8\u7684Python\u73af\u5883\u4e2d\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>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u5728Python\u811a\u672c\u4e2d\u5bfc\u5165\u8be5\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<ol start=\"2\">\n<li>\u4f7f\u7528Matplotlib\u7ed8\u5236\u5706\u5708<\/li>\n<\/ol>\n<p><p>\u7ed8\u5236\u5706\u5708\u7684\u57fa\u672c\u601d\u60f3\u662f\u5229\u7528\u5706\u7684\u53c2\u6570\u65b9\u7a0b\uff0c\u5373\uff1a<\/p>\n<\/p>\n<p><p>[ x = r \\cdot \\cos(\\theta) ]<\/p>\n<p>[ y = r \\cdot \\sin(\\theta) ]<\/p>\n<\/p>\n<p><p>\u5176\u4e2d\uff0c( r )\u662f\u5706\u7684\u534a\u5f84\uff0c( \\theta )\u662f\u4ece0\u5230( 2\\pi )\u7684\u89d2\u5ea6\u3002\u901a\u8fc7\u751f\u6210\u4e00\u7cfb\u5217\u70b9\u5e76\u5c06\u5176\u8fde\u63a5\u8d77\u6765\uff0c\u5c31\u53ef\u4ee5\u5f97\u5230\u4e00\u4e2a\u5706\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u5b9a\u4e49\u5706\u7684\u53c2\u6570<\/p>\n<p>r = 1  # \u534a\u5f84<\/p>\n<p>theta = np.linspace(0, 2 * np.pi, 100)  # \u89d2\u5ea6<\/p>\n<h2><strong>\u8ba1\u7b97\u5706\u4e0a\u7684\u70b9<\/strong><\/h2>\n<p>x = r * np.cos(theta)<\/p>\n<p>y = r * np.sin(theta)<\/p>\n<h2><strong>\u7ed8\u5236\u5706<\/strong><\/h2>\n<p>plt.figure(figsize=(6,6))<\/p>\n<p>plt.plot(x, y)<\/p>\n<p>plt.title(&#39;Circle with radius 1&#39;)<\/p>\n<p>plt.xlabel(&#39;x&#39;)<\/p>\n<p>plt.ylabel(&#39;y&#39;)<\/p>\n<p>plt.gca().set_aspect(&#39;equal&#39;, adjustable=&#39;box&#39;)  # \u4fdd\u6301\u6bd4\u4f8b\u76f8\u540c<\/p>\n<p>plt.grid(True)<\/p>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"3\">\n<li>\u81ea\u5b9a\u4e49\u5706\u5708\u7684\u6837\u5f0f<\/li>\n<\/ol>\n<p><p>Matplotlib\u5141\u8bb8\u7528\u6237\u81ea\u5b9a\u4e49\u7ed8\u5236\u56fe\u5f62\u7684\u6837\u5f0f\uff0c\u5305\u62ec\u989c\u8272\u3001\u7ebf\u578b\u3001\u7ebf\u5bbd\u7b49\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">plt.plot(x, y, color=&#39;red&#39;, linestyle=&#39;--&#39;, linewidth=2)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u5c0f\u7ed3\uff1a<\/strong> \u4f7f\u7528Matplotlib\u7ed8\u5236\u5706\u5708\u975e\u5e38\u7b80\u5355\uff0c\u53ea\u9700\u8981\u8ba1\u7b97\u4e00\u7ec4\u6781\u5750\u6807\u4e0b\u7684\u70b9\u5e76\u5c06\u5176\u7ed8\u5236\u5373\u53ef\u3002\u5b83\u8fd8\u652f\u6301\u4e30\u5bcc\u7684\u81ea\u5b9a\u4e49\u6837\u5f0f\uff0c\u9002\u5408\u9700\u8981\u751f\u6210\u9ad8\u8d28\u91cf\u53ef\u89c6\u5316\u7684\u573a\u5408\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u4f7f\u7528TURTLE\u5e93<\/p>\n<\/p>\n<p><p>Turtle\u5e93\u662fPython\u7684\u6807\u51c6\u5e93\u4e4b\u4e00\uff0c\u9002\u5408\u7528\u6765\u8fdb\u884c\u7b80\u5355\u7684\u7ed8\u56fe\u7ec3\u4e60\u548c\u6559\u5b66\u3002\u5b83\u63d0\u4f9b\u4e86\u4e00\u4e2a\u975e\u5e38\u76f4\u89c2\u7684\u754c\u9762\u6765\u7ed8\u5236\u56fe\u5f62\u3002<\/p>\n<\/p>\n<ol>\n<li>\u5bfc\u5165Turtle\u5e93\u5e76\u521d\u59cb\u5316<\/li>\n<\/ol>\n<p><p>Turtle\u5e93\u662fPython\u5185\u7f6e\u7684\uff0c\u4e0d\u9700\u8981\u989d\u5916\u5b89\u88c5\u3002\u53ef\u4ee5\u76f4\u63a5\u5bfc\u5165\u5e76\u4f7f\u7528\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import turtle<\/p>\n<h2><strong>\u521d\u59cb\u5316\u753b\u5e03<\/strong><\/h2>\n<p>turtle.setup(500, 500)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li>\u4f7f\u7528Turtle\u7ed8\u5236\u5706\u5708<\/li>\n<\/ol>\n<p><p>Turtle\u5e93\u63d0\u4f9b\u4e86\u7ed8\u5236\u5706\u7684\u5185\u7f6e\u51fd\u6570\uff0c\u53ef\u4ee5\u5f88\u5bb9\u6613\u5730\u753b\u51fa\u4e00\u4e2a\u5706\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u521b\u5efa\u4e00\u4e2a\u6d77\u9f9f\u5b9e\u4f8b<\/p>\n<p>t = turtle.Turtle()<\/p>\n<h2><strong>\u8bbe\u7f6e\u6d77\u9f9f\u901f\u5ea6<\/strong><\/h2>\n<p>t.speed(1)<\/p>\n<h2><strong>\u7ed8\u5236\u5706\u5708<\/strong><\/h2>\n<p>t.circle(100)  # 100\u4e3a\u534a\u5f84<\/p>\n<h2><strong>\u5b8c\u6210\u7ed8\u5236<\/strong><\/h2>\n<p>turtle.done()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"3\">\n<li>\u81ea\u5b9a\u4e49\u5706\u5708\u7684\u6837\u5f0f<\/li>\n<\/ol>\n<p><p>Turtle\u5e93\u5141\u8bb8\u7528\u6237\u8bbe\u7f6e\u7b14\u7684\u989c\u8272\u3001\u5bbd\u5ea6\u7b49\u7279\u6027\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">t.pensize(3)<\/p>\n<p>t.pencolor(&quot;blue&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u5c0f\u7ed3\uff1a<\/strong> Turtle\u5e93\u975e\u5e38\u9002\u5408\u521d\u5b66\u8005\uff0c\u5b83\u63d0\u4f9b\u4e86\u4e00\u79cd\u7b80\u5355\u800c\u76f4\u89c2\u7684\u65b9\u5f0f\u6765\u7ed8\u5236\u56fe\u5f62\u3002\u867d\u7136\u529f\u80fd\u4e0d\u5982Matplotlib\u5f3a\u5927\uff0c\u4f46\u5728\u6559\u5b66\u548c\u57fa\u672c\u56fe\u5f62\u7ed8\u5236\u4e0a\u975e\u5e38\u6709\u7528\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u4f7f\u7528OPENCV\u5e93<\/p>\n<\/p>\n<p><p>OpenCV\u662f\u4e00\u4e2a\u7528\u4e8e\u8ba1\u7b97\u673a\u89c6\u89c9\u7684\u5f3a\u5927\u5e93\uff0c\u9002\u5408\u4e8e\u9700\u8981\u5904\u7406\u56fe\u50cf\u548c\u89c6\u9891\u7684\u5e94\u7528\u3002\u5b83\u4e5f\u53ef\u4ee5\u7528\u6765\u7ed8\u5236\u57fa\u672c\u7684\u51e0\u4f55\u56fe\u5f62\u3002<\/p>\n<\/p>\n<ol>\n<li>\u5b89\u88c5\u548c\u5bfc\u5165OpenCV<\/li>\n<\/ol>\n<p><p>\u5728\u4f7f\u7528OpenCV\u5e93\u4e4b\u524d\uff0c\u9700\u8981\u786e\u4fdd\u5176\u5df2\u5b89\u88c5\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 opencv-python<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5bfc\u5165OpenCV\u5e93\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import cv2<\/p>\n<p>import numpy as np<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li>\u4f7f\u7528OpenCV\u7ed8\u5236\u5706\u5708<\/li>\n<\/ol>\n<p><p>OpenCV\u63d0\u4f9b\u4e86\u4e00\u4e2a\u7b80\u5355\u7684\u51fd\u6570\u6765\u7ed8\u5236\u5706\u5708\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u521b\u5efa\u4e00\u4e2a\u7a7a\u767d\u56fe\u50cf<\/p>\n<p>image = np.zeros((500, 500, 3), dtype=&quot;uint8&quot;)<\/p>\n<h2><strong>\u5b9a\u4e49\u5706\u5fc3\u548c\u534a\u5f84<\/strong><\/h2>\n<p>center = (250, 250)<\/p>\n<p>radius = 100<\/p>\n<h2><strong>\u7ed8\u5236\u5706\u5708<\/strong><\/h2>\n<p>cv2.circle(image, center, radius, (255, 0, 0), 2)  # \u84dd\u8272\u5706\u5708\uff0c\u7ebf\u5bbd\u4e3a2<\/p>\n<h2><strong>\u663e\u793a\u56fe\u50cf<\/strong><\/h2>\n<p>cv2.imshow(&quot;Circle&quot;, image)<\/p>\n<p>cv2.w<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>tKey(0)<\/p>\n<p>cv2.destroyAllWindows()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"3\">\n<li>\u81ea\u5b9a\u4e49\u5706\u5708\u7684\u6837\u5f0f<\/li>\n<\/ol>\n<p><p>OpenCV\u5141\u8bb8\u7528\u6237\u8bbe\u7f6e\u989c\u8272\u548c\u7ebf\u5bbd\u7b49\u7279\u6027\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">cv2.circle(image, center, radius, (0, 255, 0), 3)  # \u7eff\u8272\u5706\u5708\uff0c\u7ebf\u5bbd\u4e3a3<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u5c0f\u7ed3\uff1a<\/strong> OpenCV\u975e\u5e38\u9002\u5408\u9700\u8981\u5bf9\u56fe\u50cf\u8fdb\u884c\u590d\u6742\u5904\u7406\u7684\u573a\u5408\u3002\u867d\u7136\u5b83\u4e3b\u8981\u7528\u4e8e\u8ba1\u7b97\u673a\u89c6\u89c9\uff0c\u4f46\u4e5f\u53ef\u4ee5\u7528\u6765\u7ed8\u5236\u57fa\u672c\u7684\u51e0\u4f55\u56fe\u5f62\u3002\u5bf9\u4e8e\u9700\u8981\u5c06\u56fe\u50cf\u5904\u7406\u4e0e\u56fe\u5f62\u7ed8\u5236\u7ed3\u5408\u7684\u5e94\u7528\uff0cOpenCV\u662f\u4e00\u4e2a\u7406\u60f3\u7684\u9009\u62e9\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u603b\u7ed3<\/p>\n<\/p>\n<p><p>\u5728Python\u4e2d\u7ed8\u5236\u5706\u5708\u53ef\u4ee5\u4f7f\u7528\u591a\u79cd\u65b9\u6cd5\uff0c\u6bcf\u79cd\u65b9\u6cd5\u90fd\u6709\u5176\u72ec\u7279\u7684\u4f18\u52bf\u548c\u9002\u7528\u573a\u666f\u3002<strong>Matplotlib\u9002\u5408\u7528\u4e8e\u79d1\u5b66\u8ba1\u7b97\u548c\u53ef\u89c6\u5316\uff0cTurtle\u9002\u5408\u6559\u5b66\u548c\u7b80\u5355\u56fe\u5f62\u7ed8\u5236\uff0cOpenCV\u5219\u9002\u5408\u8ba1\u7b97\u673a\u89c6\u89c9\u5e94\u7528\u3002<\/strong>\u9009\u62e9\u5408\u9002\u7684\u5de5\u5177\u53ef\u4ee5\u5e2e\u52a9\u60a8\u66f4\u6709\u6548\u5730\u5b8c\u6210\u7ed8\u56fe\u4efb\u52a1\u3002\u65e0\u8bba\u662f\u7528\u4e8e\u5b66\u4e60\u3001\u6559\u5b66\uff0c\u8fd8\u662f\u7528\u4e8e\u5b9e\u9645\u9879\u76ee\uff0cPython\u63d0\u4f9b\u7684\u8fd9\u4e9b\u5de5\u5177\u90fd\u80fd\u6ee1\u8db3\u60a8\u7684\u9700\u6c42\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u4f7f\u7528Python\u7ed8\u5236\u4e0d\u540c\u989c\u8272\u548c\u5927\u5c0f\u7684\u5706\u5708\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528<code>matplotlib<\/code>\u5e93\u6765\u7ed8\u5236\u5706\u5708\u3002\u901a\u8fc7\u8c03\u6574<code>Circle<\/code>\u5bf9\u8c61\u7684\u53c2\u6570\uff0c\u53ef\u4ee5\u8bbe\u7f6e\u4e0d\u540c\u7684\u989c\u8272\u548c\u5927\u5c0f\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u4f7f\u7528<code>Circle<\/code>\u7684<code>set_radius<\/code>\u65b9\u6cd5\u6765\u6539\u53d8\u534a\u5f84\uff0c\u901a\u8fc7<code>set_facecolor<\/code>\u6765\u6539\u53d8\u586b\u5145\u989c\u8272\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<pre><code class=\"language-python\">import matplotlib.pyplot as plt\n\nfig, ax = plt.subplots()\ncircle = plt.Circle((0.5, 0.5), 0.3, color=&#39;blue&#39;, fill=True)\nax.add_artist(circle)\nax.set_xlim(0, 1)\nax.set_ylim(0, 1)\nplt.gca().set_aspect(&#39;equal&#39;)\nplt.show()\n<\/code><\/pre>\n<p><strong>\u5728Python\u4e2d\u7ed8\u5236\u591a\u4e2a\u5706\u5708\u9700\u8981\u6ce8\u610f\u54ea\u4e9b\u4e8b\u9879\uff1f<\/strong><br \/>\u7ed8\u5236\u591a\u4e2a\u5706\u5708\u65f6\uff0c\u9700\u8981\u786e\u4fdd\u6bcf\u4e2a\u5706\u5708\u7684\u4f4d\u7f6e\u548c\u5927\u5c0f\u4e0d\u91cd\u53e0\u3002\u53ef\u4ee5\u4f7f\u7528\u5faa\u73af\u6765\u7ed8\u5236\u591a\u4e2a\u5706\u5708\uff0c\u5e76\u901a\u8fc7\u968f\u673a\u751f\u6210\u5750\u6807\u6765\u5206\u6563\u5b83\u4eec\u3002\u6b64\u5916\uff0c\u8c03\u6574\u5750\u6807\u8f74\u7684\u9650\u5236\u4ee5\u786e\u4fdd\u6240\u6709\u5706\u5708\u90fd\u80fd\u5b8c\u6574\u663e\u793a\u5728\u56fe\u4e2d\u662f\u5f88\u91cd\u8981\u7684\u3002<\/p>\n<p><strong>\u7528Python\u7ed8\u5236\u5706\u5708\u65f6\uff0c\u5982\u4f55\u8bbe\u7f6e\u5750\u6807\u8f74\u548c\u6bd4\u4f8b\uff1f<\/strong><br \/>\u5728\u7ed8\u5236\u5706\u5708\u65f6\uff0c\u8bbe\u7f6e\u5750\u6807\u8f74\u7684\u6bd4\u4f8b\u975e\u5e38\u91cd\u8981\uff0c\u4ee5\u786e\u4fdd\u5706\u5708\u770b\u8d77\u6765\u662f\u5706\u5f62\u800c\u4e0d\u662f\u692d\u5706\u3002\u53ef\u4ee5\u4f7f\u7528<code>plt.gca().set_aspect(&#39;equal&#39;)<\/code>\u6765\u4fdd\u6301x\u8f74\u548cy\u8f74\u7684\u6bd4\u4f8b\u76f8\u540c\u3002\u6b64\u5916\uff0c\u8bbe\u7f6e\u9002\u5f53\u7684\u5750\u6807\u8f74\u8303\u56f4\uff08<code>ax.set_xlim<\/code>\u548c<code>ax.set_ylim<\/code>\uff09\u4e5f\u53ef\u4ee5\u786e\u4fdd\u5706\u5708\u5728\u56fe\u4e2d\u5c45\u4e2d\u663e\u793a\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u8981\u7528Python\u753b\u51fa\u5706\u5708\uff0c\u53ef\u4ee5\u4f7f\u7528\u591a\u79cd\u65b9\u6cd5\uff0c\u5982\u4f7f\u7528matplotlib\u5e93\u3001turtle\u5e93\u3001opencv\u5e93\u7b49\u3002m [&hellip;]","protected":false},"author":3,"featured_media":1015302,"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\/1015293"}],"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=1015293"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1015293\/revisions"}],"predecessor-version":[{"id":1015303,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1015293\/revisions\/1015303"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1015302"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1015293"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1015293"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1015293"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}