{"id":995331,"date":"2024-12-27T09:04:00","date_gmt":"2024-12-27T01:04:00","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/995331.html"},"modified":"2024-12-27T09:04:02","modified_gmt":"2024-12-27T01:04:02","slug":"python%e4%b8%ad%e5%a6%82%e4%bd%95%e5%a1%ab%e5%85%85%e9%a2%9c%e8%89%b2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/995331.html","title":{"rendered":"python\u4e2d\u5982\u4f55\u586b\u5145\u989c\u8272"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25071952\/0959a706-eab9-44ae-a257-db4b21c4e4a2.webp\" alt=\"python\u4e2d\u5982\u4f55\u586b\u5145\u989c\u8272\" \/><\/p>\n<p><p> \u5728Python\u4e2d\u586b\u5145\u989c\u8272\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u5f0f\u5b9e\u73b0\uff0c\u5177\u4f53\u53d6\u51b3\u4e8e\u6240\u4f7f\u7528\u7684\u5e93\u548c\u5e94\u7528\u573a\u666f\u3002<strong>\u5e38\u7528\u7684\u65b9\u6cd5\u5305\u62ec\u4f7f\u7528Matplotlib\u7684fill_between()\u51fd\u6570\u3001PIL\u5e93\u7684ImageDraw\u6a21\u5757\u3001OpenCV\u5e93\u7684\u586b\u5145\u529f\u80fd\u3001turtle\u56fe\u5f62\u5e93\u7684\u586b\u5145\u65b9\u6cd5<\/strong>\u3002\u5728\u8fd9\u4e9b\u65b9\u6cd5\u4e2d\uff0cMatplotlib\u548cOpenCV\u5e38\u7528\u4e8e\u6570\u636e\u53ef\u89c6\u5316\u548c\u56fe\u50cf\u5904\u7406\uff0c\u800cPIL\u5219\u9002\u7528\u4e8e\u56fe\u50cf\u7684\u7ed8\u5236\u548c\u7f16\u8f91\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5176\u4e2d\u4e00\u79cd\u65b9\u6cd5\uff1a\u4f7f\u7528Matplotlib\u5e93\u6765\u586b\u5145\u989c\u8272\u3002<\/p>\n<\/p>\n<p><p><strong>Matplotlib\u5e93\u7684fill_between()\u65b9\u6cd5\u662f\u7528\u4e8e\u5728\u4e24\u4e2a\u6c34\u5e73\u66f2\u7ebf\u4e4b\u95f4\u586b\u5145\u989c\u8272\u7684\u5f3a\u5927\u5de5\u5177\u3002<\/strong>\u8fd9\u4e00\u65b9\u6cd5\u901a\u5e38\u7528\u4e8e\u5728\u6570\u636e\u53ef\u89c6\u5316\u4e2d\u7a81\u51fa\u663e\u793a\u7279\u5b9a\u533a\u57df\u3002\u4f8b\u5982\uff0c\u5728\u7ed8\u5236\u6298\u7ebf\u56fe\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528fill_between()\u51fd\u6570\u5728\u4e24\u6761\u7ebf\u4e4b\u95f4\u6dfb\u52a0\u989c\u8272\u586b\u5145\uff0c\u4ee5\u589e\u5f3a\u56fe\u5f62\u7684\u53ef\u8bfb\u6027\u548c\u7f8e\u89c2\u5ea6\u3002\u5176\u57fa\u672c\u7528\u6cd5\u662f\u6307\u5b9ax\u8f74\u7684\u6570\u636e\u548c\u4e24\u6761y\u8f74\u7684\u8fb9\u754c\u66f2\u7ebf\uff0c\u7136\u540e\u9009\u62e9\u586b\u5145\u989c\u8272\u3002<\/p>\n<\/p>\n<hr>\n<h2><strong>PYTHON\u4e2d\u586b\u5145\u989c\u8272\u7684\u5404\u79cd\u65b9\u6cd5<\/strong><\/h2>\n<p><p>\u5728Python\u4e2d\u586b\u5145\u989c\u8272\u7684\u5b9e\u73b0\u65b9\u5f0f\u591a\u79cd\u591a\u6837\uff0c\u4e3b\u8981\u53d6\u51b3\u4e8e\u4f60\u6240\u4f7f\u7528\u7684\u5e93\u548c\u5177\u4f53\u7684\u5e94\u7528\u573a\u666f\u3002\u4ee5\u4e0b\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u51e0\u79cd\u5e38\u89c1\u7684\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><h2>\u4e00\u3001MATPLOTLIB\u5e93\u4e2d\u7684\u989c\u8272\u586b\u5145<\/h2>\n<\/p>\n<p><p>Matplotlib\u662fPython\u4e2d\u6700\u53d7\u6b22\u8fce\u7684\u7ed8\u56fe\u5e93\u4e4b\u4e00\uff0c\u5176fill_between()\u51fd\u6570\u53ef\u4ee5\u7528\u4e8e\u5728\u4e24\u4e2a\u66f2\u7ebf\u4e4b\u95f4\u586b\u5145\u989c\u8272\uff0c\u589e\u5f3a\u6570\u636e\u53ef\u89c6\u5316\u7684\u6548\u679c\u3002<\/p>\n<\/p>\n<p><h3>1. \u57fa\u672c\u4f7f\u7528\u65b9\u6cd5<\/h3>\n<\/p>\n<p><p>Matplotlib\u7684fill_between()\u51fd\u6570\u4e3b\u8981\u7528\u4e8e\u5728\u4e24\u4e2a\u6c34\u5e73\u66f2\u7ebf\u4e4b\u95f4\u586b\u5145\u989c\u8272\uff0c\u5e38\u7528\u4e8e\u7ed8\u5236\u533a\u57df\u56fe\u6216\u5f3a\u8c03\u7279\u5b9a\u6570\u636e\u533a\u57df\u3002\u8be5\u51fd\u6570\u63a5\u53d7x\u8f74\u7684\u6570\u636e\u548c\u4e24\u6761y\u8f74\u8fb9\u754c\u66f2\u7ebf\uff0c\u7136\u540e\u5728\u4e24\u6761\u66f2\u7ebf\u4e4b\u95f4\u586b\u5145\u989c\u8272\u3002<\/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>x = np.linspace(0, 10, 100)<\/p>\n<p>y1 = np.sin(x)<\/p>\n<p>y2 = np.cos(x)<\/p>\n<p>plt.fill_between(x, y1, y2, color=&#39;lightblue&#39;, alpha=0.5)<\/p>\n<p>plt.plot(x, y1, x, y2, color=&#39;red&#39;)<\/p>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>2. \u81ea\u5b9a\u4e49\u586b\u5145\u5c5e\u6027<\/h3>\n<\/p>\n<p><p>fill_between()\u51fd\u6570\u63d0\u4f9b\u4e86\u591a\u79cd\u81ea\u5b9a\u4e49\u9009\u9879\uff0c\u53ef\u4ee5\u8bbe\u7f6e\u586b\u5145\u989c\u8272\u3001\u900f\u660e\u5ea6\u3001\u7ebf\u578b\u7b49\u5c5e\u6027\u4ee5\u6ee1\u8db3\u4e0d\u540c\u7684\u89c6\u89c9\u9700\u6c42\u3002<\/p>\n<\/p>\n<ul>\n<li><strong>\u989c\u8272<\/strong>\uff1a\u901a\u8fc7color\u53c2\u6570\u8bbe\u7f6e\u586b\u5145\u7684\u989c\u8272\u3002<\/li>\n<li><strong>\u900f\u660e\u5ea6<\/strong>\uff1a\u901a\u8fc7alpha\u53c2\u6570\u8bbe\u7f6e\u586b\u5145\u7684\u900f\u660e\u5ea6\u3002<\/li>\n<li><strong>\u7ebf\u578b<\/strong>\uff1a\u53ef\u4ee5\u901a\u8fc7linestyle\u53c2\u6570\u8bbe\u7f6e\u586b\u5145\u533a\u57df\u8fb9\u7f18\u7684\u7ebf\u578b\u3002<\/li>\n<\/ul>\n<p><pre><code class=\"language-python\">plt.fill_between(x, y1, y2, where=(y1 &gt; y2), color=&#39;green&#39;, alpha=0.3, linestyle=&#39;--&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h2>\u4e8c\u3001PIL\u5e93\u4e2d\u7684\u989c\u8272\u586b\u5145<\/h2>\n<\/p>\n<p><p>PIL\uff08Pillow\uff09\u662fPython\u56fe\u50cf\u5904\u7406\u5e93\uff0c\u5e38\u7528\u4e8e\u56fe\u50cf\u7684\u521b\u5efa\u548c\u7f16\u8f91\u3002\u5176ImageDraw\u6a21\u5757\u63d0\u4f9b\u4e86\u586b\u5145\u989c\u8272\u7684\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><h3>1. \u57fa\u672c\u4f7f\u7528\u65b9\u6cd5<\/h3>\n<\/p>\n<p><p>\u4f7f\u7528PIL\u5e93\u7684ImageDraw\u6a21\u5757\u53ef\u4ee5\u8f7b\u677e\u5728\u56fe\u50cf\u4e2d\u586b\u5145\u989c\u8272\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u5728\u56fe\u50cf\u4e0a\u7ed8\u5236\u77e9\u5f62\u3001\u5706\u5f62\u7b49\uff0c\u5e76\u586b\u5145\u6307\u5b9a\u7684\u989c\u8272\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from PIL import Image, ImageDraw<\/p>\n<p>img = Image.new(&#39;RGB&#39;, (200, 200), &#39;white&#39;)<\/p>\n<p>draw = ImageDraw.Draw(img)<\/p>\n<p>draw.rectangle([50, 50, 150, 150], fill=&#39;blue&#39;, outline=&#39;black&#39;)<\/p>\n<p>img.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>2. \u590d\u6742\u5f62\u72b6\u7684\u586b\u5145<\/h3>\n<\/p>\n<p><p>\u9664\u4e86\u57fa\u672c\u7684\u77e9\u5f62\u548c\u5706\u5f62\uff0cPIL\u4e5f\u652f\u6301\u586b\u5145\u4efb\u610f\u591a\u8fb9\u5f62\u7b49\u590d\u6742\u5f62\u72b6\u3002\u53ef\u4ee5\u901a\u8fc7\u6307\u5b9a\u591a\u8fb9\u5f62\u7684\u9876\u70b9\u5750\u6807\u6765\u5b9e\u73b0\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">draw.polygon([(100, 0), (150, 50), (100, 100), (50, 50)], fill=&#39;yellow&#39;, outline=&#39;black&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h2>\u4e09\u3001OPENCV\u5e93\u4e2d\u7684\u989c\u8272\u586b\u5145<\/h2>\n<\/p>\n<p><p>OpenCV\u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u8ba1\u7b97\u673a\u89c6\u89c9\u5e93\uff0c\u5e38\u7528\u4e8e\u56fe\u50cf\u5904\u7406\u548c\u5206\u6790\u3002\u5b83\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u7ed8\u56fe\u548c\u586b\u5145\u529f\u80fd\u3002<\/p>\n<\/p>\n<p><h3>1. \u57fa\u672c\u4f7f\u7528\u65b9\u6cd5<\/h3>\n<\/p>\n<p><p>OpenCV\u7684fillPoly()\u51fd\u6570\u7528\u4e8e\u586b\u5145\u591a\u8fb9\u5f62\u533a\u57df\u3002\u8be5\u51fd\u6570\u63a5\u53d7\u591a\u8fb9\u5f62\u7684\u9876\u70b9\u6570\u7ec4\uff0c\u5e76\u5728\u6307\u5b9a\u533a\u57df\u586b\u5145\u989c\u8272\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import cv2<\/p>\n<p>import numpy as np<\/p>\n<p>image = np.zeros((400, 400, 3), dtype=np.uint8)<\/p>\n<p>pts = np.array([[50, 50], [300, 50], [300, 300], [50, 300]], np.int32)<\/p>\n<p>pts = pts.reshape((-1, 1, 2))<\/p>\n<p>cv2.fillPoly(image, [pts], (0, 255, 0))<\/p>\n<p>cv2.imshow(&#39;Filled Polygon&#39;, 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<p><h3>2. \u591a\u79cd\u989c\u8272\u586b\u5145<\/h3>\n<\/p>\n<p><p>OpenCV\u4e5f\u652f\u6301\u5728\u540c\u4e00\u56fe\u50cf\u4e2d\u586b\u5145\u591a\u79cd\u989c\u8272\uff0c\u53ef\u4ee5\u901a\u8fc7\u591a\u6b21\u8c03\u7528fillPoly()\u51fd\u6570\u5b9e\u73b0\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">pts2 = np.array([[100, 100], [250, 100], [250, 250], [100, 250]], np.int32)<\/p>\n<p>pts2 = pts2.reshape((-1, 1, 2))<\/p>\n<p>cv2.fillPoly(image, [pts2], (255, 0, 0))<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h2>\u56db\u3001TURTLE\u56fe\u5f62\u5e93\u4e2d\u7684\u989c\u8272\u586b\u5145<\/h2>\n<\/p>\n<p><p>Turtle\u662fPython\u81ea\u5e26\u7684\u4e00\u4e2a\u7b80\u5355\u7ed8\u56fe\u5e93\uff0c\u9002\u5408\u4e8e\u7ed8\u5236\u7b80\u5355\u7684\u56fe\u5f62\u548c\u6559\u80b2\u7528\u9014\u3002\u5b83\u53ef\u4ee5\u901a\u8fc7fillcolor()\u548cbegin_fill()\/end_fill()\u65b9\u6cd5\u8fdb\u884c\u989c\u8272\u586b\u5145\u3002<\/p>\n<\/p>\n<p><h3>1. \u57fa\u672c\u4f7f\u7528\u65b9\u6cd5<\/h3>\n<\/p>\n<p><p>Turtle\u5e93\u4e3b\u8981\u7528\u4e8e\u6559\u5b66\u548c\u7ed8\u5236\u7b80\u5355\u56fe\u5f62\u3002\u5728\u7ed8\u5236\u4e00\u4e2a\u5c01\u95ed\u56fe\u5f62\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528begin_fill()\u548cend_fill()\u6765\u586b\u5145\u989c\u8272\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import turtle<\/p>\n<p>t = turtle.Turtle()<\/p>\n<p>t.fillcolor(&#39;red&#39;)<\/p>\n<p>t.begin_fill()<\/p>\n<p>for _ in range(4):<\/p>\n<p>    t.forward(100)<\/p>\n<p>    t.left(90)<\/p>\n<p>t.end_fill()<\/p>\n<p>turtle.done()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>2. \u81ea\u5b9a\u4e49\u56fe\u5f62\u7684\u586b\u5145<\/h3>\n<\/p>\n<p><p>Turtle\u5e93\u4e5f\u652f\u6301\u586b\u5145\u590d\u6742\u7684\u81ea\u5b9a\u4e49\u56fe\u5f62\uff0c\u53ea\u9700\u5728\u7ed8\u5236\u8def\u5f84\u7684\u8d77\u59cb\u548c\u7ed3\u675f\u4f7f\u7528begin_fill()\u548cend_fill()\u5373\u53ef\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">t.fillcolor(&#39;blue&#39;)<\/p>\n<p>t.begin_fill()<\/p>\n<p>t.circle(50)<\/p>\n<p>t.end_fill()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<hr>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u7684\u4ecb\u7ecd\uff0c\u6211\u4eec\u53ef\u4ee5\u770b\u5230\u5728Python\u4e2d\u586b\u5145\u989c\u8272\u7684\u65b9\u6cd5\u975e\u5e38\u4e30\u5bcc\u4e14\u591a\u6837\u5316\u3002\u4e0d\u540c\u7684\u5e93\u9002\u7528\u4e8e\u4e0d\u540c\u7684\u5e94\u7528\u573a\u666f\uff0c\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u66f4\u9ad8\u6548\u5730\u5b9e\u73b0\u76ee\u6807\u3002\u5728\u6570\u636e\u53ef\u89c6\u5316\u3001\u56fe\u50cf\u5904\u7406\u548c\u7b80\u5355\u56fe\u5f62\u7ed8\u5236\u4e2d\uff0c\u4f7f\u7528\u9002\u5f53\u7684\u5de5\u5177\u53ef\u4ee5\u5927\u5927\u63d0\u9ad8\u5de5\u4f5c\u6548\u7387\u548c\u7ed3\u679c\u7684\u8d28\u91cf\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u4f7f\u7528Matplotlib\u586b\u5145\u56fe\u5f62\u7684\u989c\u8272\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0cMatplotlib\u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u7ed8\u56fe\u5e93\uff0c\u53ef\u4ee5\u8f7b\u677e\u586b\u5145\u56fe\u5f62\u7684\u989c\u8272\u3002\u4f7f\u7528<code>fill()<\/code>\u51fd\u6570\uff0c\u53ef\u4ee5\u901a\u8fc7\u5b9a\u4e49x\u548cy\u5750\u6807\u6765\u521b\u5efa\u586b\u5145\u533a\u57df\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u8fd9\u6837\u505a\uff1a  <\/p>\n<pre><code class=\"language-python\">import matplotlib.pyplot as plt\n\nx = [1, 2, 3, 4]\ny = [1, 4, 2, 3]\nplt.fill(x, y, color=&#39;blue&#39;)  # \u4f7f\u7528\u84dd\u8272\u586b\u5145\nplt.show()\n<\/code><\/pre>\n<p>\u8fd9\u79cd\u65b9\u6cd5\u9002\u7528\u4e8e\u5404\u79cd\u5f62\u72b6\u7684\u586b\u5145\uff0c\u7528\u6237\u53ef\u4ee5\u6839\u636e\u9700\u8981\u9009\u62e9\u4e0d\u540c\u7684\u989c\u8272\u548c\u6837\u5f0f\u3002<\/p>\n<p><strong>\u5728Python\u7684Pygame\u4e2d\u5982\u4f55\u5b9e\u73b0\u989c\u8272\u586b\u5145\uff1f<\/strong><br \/>Pygame\u662f\u4e00\u4e2a\u7528\u4e8e\u5236\u4f5c\u6e38\u620f\u7684\u5e93\uff0c\u586b\u5145\u989c\u8272\u975e\u5e38\u7b80\u5355\u3002\u53ef\u4ee5\u4f7f\u7528<code>fill()<\/code>\u65b9\u6cd5\u6765\u4e3a\u6574\u4e2a\u5c4f\u5e55\u6216\u7279\u5b9a\u533a\u57df\u586b\u5145\u989c\u8272\u3002\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a  <\/p>\n<pre><code class=\"language-python\">import pygame\n\npygame.init()\nscreen = pygame.display.set_mode((400, 300))\nscreen.fill((255, 0, 0))  # \u586b\u5145\u7ea2\u8272\npygame.display.flip()\n<\/code><\/pre>\n<p>\u901a\u8fc7RGB\u503c\u5b9a\u4e49\u7684\u989c\u8272\uff0c\u53ef\u4ee5\u6839\u636e\u9700\u8981\u8c03\u6574\u8272\u5f69\uff0c\u5236\u4f5c\u51fa\u591a\u6837\u5316\u7684\u6e38\u620f\u754c\u9762\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728Python\u4e2d\u4f7f\u7528OpenCV\u8fdb\u884c\u56fe\u50cf\u989c\u8272\u586b\u5145\uff1f<\/strong><br \/>OpenCV\u662f\u4e00\u4e2a\u5e7f\u6cdb\u5e94\u7528\u4e8e\u56fe\u50cf\u5904\u7406\u7684\u5e93\uff0c\u53ef\u4ee5\u901a\u8fc7<code>cv2.floodFill()<\/code>\u51fd\u6570\u5b9e\u73b0\u989c\u8272\u586b\u5145\u3002\u8fd9\u79cd\u65b9\u6cd5\u9002\u7528\u4e8e\u56fe\u50cf\u4e2d\u7684\u7279\u5b9a\u533a\u57df\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b\uff1a  <\/p>\n<pre><code class=\"language-python\">import cv2\n\nimage = cv2.imread(&#39;image.jpg&#39;)\nh, w, _ = image.shape\ncv2.floodFill(image, None, (50, 50), (0, 255, 0))  # \u4ece(50, 50)\u5f00\u59cb\u586b\u5145\u7eff\u8272\ncv2.imshow(&#39;Filled Image&#39;, image)\ncv2.waitKey(0)\ncv2.destroyAllWindows()\n<\/code><\/pre>\n<p>\u8fd9\u79cd\u65b9\u6cd5\u53ef\u4ee5\u6709\u6548\u5730\u5bf9\u56fe\u50cf\u4e2d\u7684\u7279\u5b9a\u533a\u57df\u8fdb\u884c\u586b\u5145\u64cd\u4f5c\uff0c\u9002\u5408\u4e8e\u56fe\u50cf\u7f16\u8f91\u548c\u5904\u7406\u9700\u6c42\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\u586b\u5145\u989c\u8272\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u5f0f\u5b9e\u73b0\uff0c\u5177\u4f53\u53d6\u51b3\u4e8e\u6240\u4f7f\u7528\u7684\u5e93\u548c\u5e94\u7528\u573a\u666f\u3002\u5e38\u7528\u7684\u65b9\u6cd5\u5305\u62ec\u4f7f\u7528Matplot [&hellip;]","protected":false},"author":3,"featured_media":995335,"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\/995331"}],"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=995331"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/995331\/revisions"}],"predecessor-version":[{"id":995336,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/995331\/revisions\/995336"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/995335"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=995331"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=995331"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=995331"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}