{"id":1139245,"date":"2025-01-08T22:08:14","date_gmt":"2025-01-08T14:08:14","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1139245.html"},"modified":"2025-01-08T22:08:18","modified_gmt":"2025-01-08T14:08:18","slug":"%e5%a6%82%e4%bd%95%e7%94%a8python%e7%94%bb%e5%a4%9a%e4%b8%aa%e4%b8%89%e8%a7%92%e5%bd%a2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1139245.html","title":{"rendered":"\u5982\u4f55\u7528python\u753b\u591a\u4e2a\u4e09\u89d2\u5f62"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25102611\/a7e091fd-9f6d-43cb-92c8-5b3e9f0518a9.webp\" alt=\"\u5982\u4f55\u7528python\u753b\u591a\u4e2a\u4e09\u89d2\u5f62\" \/><\/p>\n<p><p> <strong>\u5982\u4f55\u7528Python\u753b\u591a\u4e2a\u4e09\u89d2\u5f62<\/strong><\/p>\n<\/p>\n<p><p>\u4f7f\u7528Python\u7ed8\u5236\u591a\u4e2a\u4e09\u89d2\u5f62\u7684\u65b9\u6cd5\u6709\u5f88\u591a\u79cd\uff0c\u5176\u4e2d\u6700\u5e38\u89c1\u7684\u662f\u4f7f\u7528\u56fe\u5f62\u7ed8\u5236\u5e93\u5982Matplotlib\u3001Turtle\u548cPygame\u3002\u8fd9\u4e9b\u5e93\u63d0\u4f9b\u4e86\u7b80\u4fbf\u7684\u65b9\u6cd5\u6765\u521b\u5efa\u548c\u663e\u793a\u56fe\u5f62\u3002<strong>Matplotlib\u3001Turtle\u3001Pygame<\/strong>\u662f\u6700\u5e38\u7528\u7684\u4e09\u79cd\u5e93\uff0c\u5176\u4e2dMatplotlib\u9002\u5408\u7ed8\u5236\u9759\u6001\u56fe\u5f62\uff0cTurtle\u9002\u5408\u7ed8\u5236\u7b80\u5355\u56fe\u5f62\uff0cPygame\u9002\u5408\u7ed8\u5236\u590d\u6742\u548c\u52a8\u6001\u56fe\u5f62\u3002\u5728\u8fd9\u7bc7\u6587\u7ae0\u4e2d\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528\u8fd9\u4e09\u79cd\u5e93\u6765\u7ed8\u5236\u591a\u4e2a\u4e09\u89d2\u5f62\uff0c\u5e76\u63d0\u4f9b\u4ee3\u7801\u793a\u4f8b\u548c\u8be6\u7ec6\u7684\u89e3\u91ca\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001Matplotlib\u7ed8\u5236\u591a\u4e2a\u4e09\u89d2\u5f62<\/h3>\n<\/p>\n<p><p>Matplotlib\u662f\u4e00\u4e2a\u7528\u4e8e\u521b\u5efa\u9759\u6001\u3001\u4ea4\u4e92\u548c\u52a8\u753b\u53ef\u89c6\u5316\u7684\u5e93\u3002\u5b83\u975e\u5e38\u9002\u5408\u7ed8\u52362D\u56fe\u5f62\uff0c\u5305\u62ec\u6298\u7ebf\u56fe\u3001\u6563\u70b9\u56fe\u3001\u6761\u5f62\u56fe\u7b49\u3002\u4f7f\u7528Matplotlib\u7ed8\u5236\u591a\u4e2a\u4e09\u89d2\u5f62\u975e\u5e38\u7b80\u5355\uff0c\u53ea\u9700\u8981\u5b9a\u4e49\u4e09\u89d2\u5f62\u7684\u9876\u70b9\uff0c\u7136\u540e\u4f7f\u7528<code>fill<\/code>\u51fd\u6570\u586b\u5145\u591a\u8fb9\u5f62\u3002<\/p>\n<\/p>\n<p><h4>1.1 \u5b89\u88c5Matplotlib<\/h4>\n<\/p>\n<p><p>\u5728\u4f7f\u7528Matplotlib\u4e4b\u524d\uff0c\u9700\u8981\u786e\u4fdd\u5df2\u7ecf\u5b89\u88c5\u4e86\u8fd9\u4e2a\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><h4>1.2 \u4f7f\u7528Matplotlib\u7ed8\u5236\u591a\u4e2a\u4e09\u89d2\u5f62<\/h4>\n<\/p>\n<p><p>\u4e0b\u9762\u662f\u4e00\u4e2a\u4f7f\u7528Matplotlib\u7ed8\u5236\u591a\u4e2a\u4e09\u89d2\u5f62\u7684\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import matplotlib.pyplot as plt<\/p>\n<h2><strong>\u5b9a\u4e49\u591a\u4e2a\u4e09\u89d2\u5f62\u7684\u9876\u70b9<\/strong><\/h2>\n<p>triangles = [<\/p>\n<p>    [(1, 1), (3, 1), (2, 3)],<\/p>\n<p>    [(4, 4), (6, 4), (5, 6)],<\/p>\n<p>    [(7, 7), (9, 7), (8, 9)]<\/p>\n<p>]<\/p>\n<h2><strong>\u521b\u5efa\u56fe\u5f62\u548c\u5750\u6807\u8f74<\/strong><\/h2>\n<p>fig, ax = plt.subplots()<\/p>\n<h2><strong>\u7ed8\u5236\u6bcf\u4e2a\u4e09\u89d2\u5f62<\/strong><\/h2>\n<p>for triangle in triangles:<\/p>\n<p>    polygon = plt.Polygon(triangle, closed=True, fill=None, edgecolor=&#39;r&#39;)<\/p>\n<p>    ax.add_patch(polygon)<\/p>\n<h2><strong>\u8bbe\u7f6e\u5750\u6807\u8f74\u8303\u56f4<\/strong><\/h2>\n<p>ax.set_xlim(0, 10)<\/p>\n<p>ax.set_ylim(0, 10)<\/p>\n<h2><strong>\u663e\u793a\u56fe\u5f62<\/strong><\/h2>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u9996\u5148\u5b9a\u4e49\u4e86\u591a\u4e2a\u4e09\u89d2\u5f62\u7684\u9876\u70b9\uff0c\u7136\u540e\u4f7f\u7528<code>plt.Polygon<\/code>\u51fd\u6570\u521b\u5efa\u591a\u8fb9\u5f62\u5bf9\u8c61\uff0c\u5e76\u6dfb\u52a0\u5230\u5750\u6807\u8f74\u4e2d\u3002\u6700\u540e\uff0c\u8bbe\u7f6e\u5750\u6807\u8f74\u8303\u56f4\u5e76\u663e\u793a\u56fe\u5f62\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001Turtle\u7ed8\u5236\u591a\u4e2a\u4e09\u89d2\u5f62<\/h3>\n<\/p>\n<p><p>Turtle\u662fPython\u5185\u7f6e\u7684\u4e00\u4e2a\u7b80\u5355\u7684\u56fe\u5f62\u7ed8\u5236\u5e93\uff0c\u975e\u5e38\u9002\u5408\u521d\u5b66\u8005\u5b66\u4e60\u56fe\u5f62\u7f16\u7a0b\u3002\u4f7f\u7528Turtle\u53ef\u4ee5\u975e\u5e38\u65b9\u4fbf\u5730\u7ed8\u5236\u7b80\u5355\u7684\u56fe\u5f62\uff0c\u5982\u4e09\u89d2\u5f62\u3001\u77e9\u5f62\u3001\u5706\u5f62\u7b49\u3002<\/p>\n<\/p>\n<p><h4>2.1 \u4f7f\u7528Turtle\u7ed8\u5236\u591a\u4e2a\u4e09\u89d2\u5f62<\/h4>\n<\/p>\n<p><p>\u4e0b\u9762\u662f\u4e00\u4e2a\u4f7f\u7528Turtle\u7ed8\u5236\u591a\u4e2a\u4e09\u89d2\u5f62\u7684\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import turtle<\/p>\n<h2><strong>\u521b\u5efaTurtle\u5bf9\u8c61<\/strong><\/h2>\n<p>t = turtle.Turtle()<\/p>\n<h2><strong>\u5b9a\u4e49\u7ed8\u5236\u4e09\u89d2\u5f62\u7684\u51fd\u6570<\/strong><\/h2>\n<p>def draw_triangle(vertices):<\/p>\n<p>    t.penup()<\/p>\n<p>    t.goto(vertices[0])<\/p>\n<p>    t.pendown()<\/p>\n<p>    t.goto(vertices[1])<\/p>\n<p>    t.goto(vertices[2])<\/p>\n<p>    t.goto(vertices[0])<\/p>\n<h2><strong>\u5b9a\u4e49\u591a\u4e2a\u4e09\u89d2\u5f62\u7684\u9876\u70b9<\/strong><\/h2>\n<p>triangles = [<\/p>\n<p>    [(0, 0), (100, 0), (50, 86)],<\/p>\n<p>    [(200, 200), (300, 200), (250, 286)],<\/p>\n<p>    [(400, 400), (500, 400), (450, 486)]<\/p>\n<p>]<\/p>\n<h2><strong>\u7ed8\u5236\u6bcf\u4e2a\u4e09\u89d2\u5f62<\/strong><\/h2>\n<p>for triangle in triangles:<\/p>\n<p>    draw_triangle(triangle)<\/p>\n<h2><strong>\u5b8c\u6210\u7ed8\u5236<\/strong><\/h2>\n<p>turtle.done()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u9996\u5148\u521b\u5efa\u4e86\u4e00\u4e2aTurtle\u5bf9\u8c61\uff0c\u7136\u540e\u5b9a\u4e49\u4e86\u4e00\u4e2a\u7ed8\u5236\u4e09\u89d2\u5f62\u7684\u51fd\u6570<code>draw_triangle<\/code>\uff0c\u8fd9\u4e2a\u51fd\u6570\u63a5\u53d7\u4e00\u4e2a\u4e09\u89d2\u5f62\u7684\u9876\u70b9\u5217\u8868\u4f5c\u4e3a\u53c2\u6570\u3002\u63a5\u7740\uff0c\u6211\u4eec\u5b9a\u4e49\u4e86\u591a\u4e2a\u4e09\u89d2\u5f62\u7684\u9876\u70b9\uff0c\u5e76\u4f7f\u7528<code>draw_triangle<\/code>\u51fd\u6570\u7ed8\u5236\u6bcf\u4e2a\u4e09\u89d2\u5f62\u3002\u6700\u540e\uff0c\u8c03\u7528<code>turtle.done()<\/code>\u5b8c\u6210\u7ed8\u5236\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001Pygame\u7ed8\u5236\u591a\u4e2a\u4e09\u89d2\u5f62<\/h3>\n<\/p>\n<p><p>Pygame\u662f\u4e00\u4e2a\u7528\u4e8e\u5f00\u53d12D\u6e38\u620f\u7684\u5e93\uff0c\u5b83\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u56fe\u5f62\u7ed8\u5236\u529f\u80fd\uff0c\u53ef\u4ee5\u7528\u4e8e\u7ed8\u5236\u590d\u6742\u548c\u52a8\u6001\u7684\u56fe\u5f62\u3002\u4f7f\u7528Pygame\u7ed8\u5236\u591a\u4e2a\u4e09\u89d2\u5f62\u76f8\u5bf9\u590d\u6742\u4e00\u4e9b\uff0c\u4f46\u662f\u5b83\u63d0\u4f9b\u4e86\u66f4\u5f3a\u5927\u7684\u529f\u80fd\u548c\u7075\u6d3b\u6027\u3002<\/p>\n<\/p>\n<p><h4>3.1 \u5b89\u88c5Pygame<\/h4>\n<\/p>\n<p><p>\u5728\u4f7f\u7528Pygame\u4e4b\u524d\uff0c\u9700\u8981\u786e\u4fdd\u5df2\u7ecf\u5b89\u88c5\u4e86\u8fd9\u4e2a\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 pygame<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3.2 \u4f7f\u7528Pygame\u7ed8\u5236\u591a\u4e2a\u4e09\u89d2\u5f62<\/h4>\n<\/p>\n<p><p>\u4e0b\u9762\u662f\u4e00\u4e2a\u4f7f\u7528Pygame\u7ed8\u5236\u591a\u4e2a\u4e09\u89d2\u5f62\u7684\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pygame<\/p>\n<p>import sys<\/p>\n<h2><strong>\u521d\u59cb\u5316Pygame<\/strong><\/h2>\n<p>pygame.init()<\/p>\n<h2><strong>\u8bbe\u7f6e\u5c4f\u5e55\u5927\u5c0f<\/strong><\/h2>\n<p>screen = pygame.display.set_mode((800, 600))<\/p>\n<h2><strong>\u5b9a\u4e49\u591a\u4e2a\u4e09\u89d2\u5f62\u7684\u9876\u70b9<\/strong><\/h2>\n<p>triangles = [<\/p>\n<p>    [(100, 100), (200, 100), (150, 200)],<\/p>\n<p>    [(300, 300), (400, 300), (350, 400)],<\/p>\n<p>    [(500, 500), (600, 500), (550, 600)]<\/p>\n<p>]<\/p>\n<h2><strong>\u5b9a\u4e49\u989c\u8272<\/strong><\/h2>\n<p>color = (255, 0, 0)<\/p>\n<h2><strong>\u4e3b\u5faa\u73af<\/strong><\/h2>\n<p>running = True<\/p>\n<p>while running:<\/p>\n<p>    for event in pygame.event.get():<\/p>\n<p>        if event.type == pygame.QUIT:<\/p>\n<p>            running = False<\/p>\n<p>    # \u586b\u5145\u80cc\u666f\u8272<\/p>\n<p>    screen.fill((255, 255, 255))<\/p>\n<p>    # \u7ed8\u5236\u6bcf\u4e2a\u4e09\u89d2\u5f62<\/p>\n<p>    for triangle in triangles:<\/p>\n<p>        pygame.draw.polygon(screen, color, triangle, 1)<\/p>\n<p>    # \u66f4\u65b0\u5c4f\u5e55<\/p>\n<p>    pygame.display.flip()<\/p>\n<h2><strong>\u9000\u51faPygame<\/strong><\/h2>\n<p>pygame.quit()<\/p>\n<p>sys.exit()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u9996\u5148\u521d\u59cb\u5316\u4e86Pygame\u5e76\u8bbe\u7f6e\u4e86\u5c4f\u5e55\u5927\u5c0f\u3002\u7136\u540e\u5b9a\u4e49\u4e86\u591a\u4e2a\u4e09\u89d2\u5f62\u7684\u9876\u70b9\u548c\u989c\u8272\u3002\u5728\u4e3b\u5faa\u73af\u4e2d\uff0c\u6211\u4eec\u5904\u7406\u4e8b\u4ef6\uff08\u5982\u7a97\u53e3\u5173\u95ed\u4e8b\u4ef6\uff09\uff0c\u586b\u5145\u80cc\u666f\u8272\uff0c\u5e76\u4f7f\u7528<code>pygame.draw.polygon<\/code>\u51fd\u6570\u7ed8\u5236\u6bcf\u4e2a\u4e09\u89d2\u5f62\u3002\u6700\u540e\uff0c\u66f4\u65b0\u5c4f\u5e55\u5e76\u9000\u51faPygame\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u4f7f\u7528Python\u7ed8\u5236\u591a\u4e2a\u4e09\u89d2\u5f62\u6709\u591a\u79cd\u65b9\u6cd5\uff0c\u5176\u4e2d<strong>Matplotlib\u3001Turtle\u3001Pygame<\/strong>\u662f\u6700\u5e38\u7528\u7684\u4e09\u79cd\u5e93\u3002<strong>Matplotlib<\/strong>\u9002\u5408\u7ed8\u5236\u9759\u6001\u56fe\u5f62\uff0c<strong>Turtle<\/strong>\u9002\u5408\u7ed8\u5236\u7b80\u5355\u56fe\u5f62\uff0c<strong>Pygame<\/strong>\u9002\u5408\u7ed8\u5236\u590d\u6742\u548c\u52a8\u6001\u56fe\u5f62\u3002\u9009\u62e9\u54ea\u79cd\u65b9\u6cd5\u53d6\u51b3\u4e8e\u5177\u4f53\u9700\u6c42\u548c\u5e94\u7528\u573a\u666f\u3002<\/p>\n<\/p>\n<p><p>\u65e0\u8bba\u9009\u62e9\u54ea\u79cd\u65b9\u6cd5\uff0c\u90fd\u9700\u8981\u7406\u89e3\u6bcf\u4e2a\u5e93\u7684\u57fa\u672c\u7528\u6cd5\uff0c\u5e76\u6839\u636e\u9700\u6c42\u8fdb\u884c\u7075\u6d3b\u5e94\u7528\u3002\u5e0c\u671b\u8fd9\u7bc7\u6587\u7ae0\u80fd\u5e2e\u52a9\u4f60\u638c\u63e1\u5982\u4f55\u4f7f\u7528Python\u7ed8\u5236\u591a\u4e2a\u4e09\u89d2\u5f62\uff0c\u5e76\u4e3a\u4f60\u63d0\u4f9b\u4e00\u4e9b\u6709\u7528\u7684\u4ee3\u7801\u793a\u4f8b\u548c\u8be6\u7ec6\u7684\u89e3\u91ca\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u4f7f\u7528\u5e93\u7ed8\u5236\u591a\u4e2a\u4e09\u89d2\u5f62\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u591a\u4e2a\u56fe\u5f62\u5e93\u6765\u7ed8\u5236\u4e09\u89d2\u5f62\uff0c\u4f8b\u5982Matplotlib\u548cPygame\u3002Matplotlib\u662f\u4e00\u4e2a\u5e7f\u6cdb\u4f7f\u7528\u7684\u7ed8\u56fe\u5e93\uff0c\u53ef\u4ee5\u901a\u8fc7\u7b80\u5355\u7684\u4ee3\u7801\u7ed8\u5236\u591a\u4e2a\u4e09\u89d2\u5f62\u3002\u4f7f\u7528Pygame\u65f6\uff0c\u60a8\u53ef\u4ee5\u66f4\u597d\u5730\u5904\u7406\u56fe\u5f62\u548c\u52a8\u753b\u3002\u9009\u62e9\u9002\u5408\u60a8\u9700\u6c42\u7684\u5e93\uff0c\u5e76\u53c2\u8003\u5176\u6587\u6863\u8fdb\u884c\u8be6\u7ec6\u8bbe\u7f6e\u3002<\/p>\n<p><strong>\u7ed8\u5236\u591a\u4e2a\u4e09\u89d2\u5f62\u65f6\u9700\u8981\u6ce8\u610f\u54ea\u4e9b\u53c2\u6570\u8bbe\u7f6e\uff1f<\/strong><br \/>\u5728\u7ed8\u5236\u591a\u4e2a\u4e09\u89d2\u5f62\u65f6\uff0c\u91cd\u8981\u7684\u53c2\u6570\u5305\u62ec\u4e09\u89d2\u5f62\u7684\u9876\u70b9\u5750\u6807\u3001\u989c\u8272\u3001\u8fb9\u6846\u6837\u5f0f\u4ee5\u53ca\u900f\u660e\u5ea6\u3002\u786e\u4fdd\u5728\u7ed8\u5236\u65f6\u5408\u7406\u8bbe\u7f6e\u8fd9\u4e9b\u53c2\u6570\uff0c\u4ee5\u4fbf\u4f7f\u4e09\u89d2\u5f62\u7684\u89c6\u89c9\u6548\u679c\u66f4\u4f73\u3002\u6b64\u5916\uff0c\u8003\u8651\u4e0d\u540c\u7684\u5750\u6807\u7cfb\u548c\u6bd4\u4f8b\uff0c\u53ef\u4ee5\u4f7f\u56fe\u5f62\u66f4\u52a0\u534f\u8c03\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728Python\u4e2d\u5b9e\u73b0\u968f\u673a\u751f\u6210\u591a\u4e2a\u4e09\u89d2\u5f62\u7684\u6548\u679c\uff1f<\/strong><br \/>\u8981\u5b9e\u73b0\u968f\u673a\u751f\u6210\u591a\u4e2a\u4e09\u89d2\u5f62\uff0c\u53ef\u4ee5\u5229\u7528Python\u7684random\u5e93\u751f\u6210\u968f\u673a\u5750\u6807\u548c\u989c\u8272\u3002\u901a\u8fc7\u5faa\u73af\u521b\u5efa\u591a\u4e2a\u4e09\u89d2\u5f62\uff0c\u5e76\u5728\u6bcf\u6b21\u8fed\u4ee3\u4e2d\u751f\u6210\u4e0d\u540c\u7684\u9876\u70b9\u4f4d\u7f6e\u548c\u989c\u8272\uff0c\u60a8\u5c06\u80fd\u770b\u5230\u4e30\u5bcc\u591a\u5f69\u7684\u4e09\u89d2\u5f62\u7ec4\u5408\u3002\u8fd9\u6837\u4e0d\u4ec5\u589e\u52a0\u4e86\u8da3\u5473\u6027\uff0c\u8fd8\u80fd\u5e2e\u52a9\u60a8\u66f4\u597d\u5730\u7406\u89e3\u56fe\u5f62\u7684\u7ed8\u5236\u548c\u968f\u673a\u6570\u7684\u5e94\u7528\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5982\u4f55\u7528Python\u753b\u591a\u4e2a\u4e09\u89d2\u5f62 \u4f7f\u7528Python\u7ed8\u5236\u591a\u4e2a\u4e09\u89d2\u5f62\u7684\u65b9\u6cd5\u6709\u5f88\u591a\u79cd\uff0c\u5176\u4e2d\u6700\u5e38\u89c1\u7684\u662f\u4f7f\u7528\u56fe\u5f62\u7ed8\u5236\u5e93\u5982M [&hellip;]","protected":false},"author":3,"featured_media":1139248,"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\/1139245"}],"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=1139245"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1139245\/revisions"}],"predecessor-version":[{"id":1139249,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1139245\/revisions\/1139249"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1139248"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1139245"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1139245"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1139245"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}