{"id":1114207,"date":"2025-01-08T17:55:04","date_gmt":"2025-01-08T09:55:04","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1114207.html"},"modified":"2025-01-08T17:55:07","modified_gmt":"2025-01-08T09:55:07","slug":"python%e5%a6%82%e4%bd%95%e7%94%a8%e4%b8%89%e7%a7%8d%e9%a2%9c%e8%89%b2%e7%94%bb%e5%9c%86","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1114207.html","title":{"rendered":"python\u5982\u4f55\u7528\u4e09\u79cd\u989c\u8272\u753b\u5706"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25075512\/b6f1f93b-ed3f-45ef-9143-30b673557781.webp\" alt=\"python\u5982\u4f55\u7528\u4e09\u79cd\u989c\u8272\u753b\u5706\" \/><\/p>\n<p><p> <strong>Python\u4f7f\u7528\u4e09\u79cd\u989c\u8272\u753b\u5706\u7684\u65b9\u6cd5<\/strong><\/p>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u591a\u79cd\u65b9\u5f0f\u6765\u7ed8\u5236\u5f69\u8272\u5706\uff0c\u5305\u62ec\u4f7f\u7528Pygame\u3001Matplotlib\u548cPillow (PIL)\u5e93\u3002\u8fd9\u4e9b\u5e93\u5404\u81ea\u6709\u4e0d\u540c\u7684\u7279\u70b9\u548c\u5e94\u7528\u573a\u666f\u3002<strong>\u4f7f\u7528Pygame\u7ed8\u5236\u52a8\u6001\u56fe\u5f62\u3001\u4f7f\u7528Matplotlib\u7ed8\u5236\u56fe\u8868\u548c\u6570\u636e\u53ef\u89c6\u5316\u3001\u4f7f\u7528Pillow\u5904\u7406\u548c\u751f\u6210\u56fe\u50cf<\/strong>\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u6bcf\u4e00\u79cd\u65b9\u6cd5\u7684\u5b9e\u73b0\u6b65\u9aa4\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001Pygame\u7ed8\u5236\u5f69\u8272\u5706<\/h3>\n<\/p>\n<p><p>Pygame\u662f\u4e00\u4e2a\u9002\u7528\u4e8e\u5236\u4f5c\u6e38\u620f\u548c\u591a\u5a92\u4f53\u7a0b\u5e8f\u7684\u5e93\uff0c\u5b83\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u56fe\u5f62\u529f\u80fd\u3002<\/p>\n<\/p>\n<p><h4>\u5b89\u88c5Pygame<\/h4>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u786e\u4fdd\u5df2\u5b89\u88c5Pygame\u5e93\u3002\u5982\u679c\u6ca1\u6709\u5b89\u88c5\uff0c\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>\u4f7f\u7528Pygame\u7ed8\u5236\u5f69\u8272\u5706<\/h4>\n<\/p>\n<p><p>\u4ee5\u4e0b\u662f\u4e00\u4e2a\u4f7f\u7528Pygame\u7ed8\u5236\u4e09\u4e2a\u4e0d\u540c\u989c\u8272\u5706\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\u7a97\u53e3\u5927\u5c0f<\/strong><\/h2>\n<p>screen = pygame.display.set_mode((600, 400))<\/p>\n<p>pygame.display.set_caption(&quot;Draw Circles with Three Colors&quot;)<\/p>\n<h2><strong>\u5b9a\u4e49\u989c\u8272<\/strong><\/h2>\n<p>red = (255, 0, 0)<\/p>\n<p>green = (0, 255, 0)<\/p>\n<p>blue = (0, 0, 255)<\/p>\n<h2><strong>\u5706\u7684\u53c2\u6570\uff08\u4f4d\u7f6e\u548c\u534a\u5f84\uff09<\/strong><\/h2>\n<p>circles = [<\/p>\n<p>    {&quot;color&quot;: red, &quot;position&quot;: (150, 200), &quot;radius&quot;: 50},<\/p>\n<p>    {&quot;color&quot;: green, &quot;position&quot;: (300, 200), &quot;radius&quot;: 50},<\/p>\n<p>    {&quot;color&quot;: blue, &quot;position&quot;: (450, 200), &quot;radius&quot;: 50},<\/p>\n<p>]<\/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\u5706<\/p>\n<p>    for circle in circles:<\/p>\n<p>        pygame.draw.circle(screen, circle[&quot;color&quot;], circle[&quot;position&quot;], circle[&quot;radius&quot;])<\/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><strong>\u8be6\u7ec6\u63cf\u8ff0\uff1a<\/strong><\/p>\n<p>\u5728\u4e0a\u9762\u7684\u4ee3\u7801\u4e2d\uff0c\u9996\u5148\u521d\u59cb\u5316Pygame\u5e76\u8bbe\u7f6e\u7a97\u53e3\u5927\u5c0f\u548c\u6807\u9898\u3002\u7136\u540e\u5b9a\u4e49\u4e09\u79cd\u989c\u8272\uff08\u7ea2\u8272\u3001\u7eff\u8272\u548c\u84dd\u8272\uff09\u548c\u6bcf\u4e2a\u5706\u7684\u53c2\u6570\uff08\u4f4d\u7f6e\u548c\u534a\u5f84\uff09\u3002\u5728\u4e3b\u5faa\u73af\u4e2d\uff0c\u5904\u7406\u9000\u51fa\u4e8b\u4ef6\uff0c\u6e05\u5c4f\u5e76\u7ed8\u5236\u5706\uff0c\u6700\u540e\u66f4\u65b0\u5c4f\u5e55\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001Matplotlib\u7ed8\u5236\u5f69\u8272\u5706<\/h3>\n<\/p>\n<p><p>Matplotlib\u662f\u4e00\u4e2a\u5e7f\u6cdb\u4f7f\u7528\u7684\u7ed8\u56fe\u5e93\uff0c\u9002\u7528\u4e8e\u79d1\u5b66\u8ba1\u7b97\u548c\u6570\u636e\u53ef\u89c6\u5316\u3002<\/p>\n<\/p>\n<p><h4>\u5b89\u88c5Matplotlib<\/h4>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u786e\u4fdd\u5df2\u5b89\u88c5Matplotlib\u5e93\u3002\u5982\u679c\u6ca1\u6709\u5b89\u88c5\uff0c\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>\u4f7f\u7528Matplotlib\u7ed8\u5236\u5f69\u8272\u5706<\/h4>\n<\/p>\n<p><p>\u4ee5\u4e0b\u662f\u4e00\u4e2a\u4f7f\u7528Matplotlib\u7ed8\u5236\u4e09\u4e2a\u4e0d\u540c\u989c\u8272\u5706\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\u989c\u8272\u548c\u5706\u7684\u53c2\u6570<\/strong><\/h2>\n<p>colors = [&#39;red&#39;, &#39;green&#39;, &#39;blue&#39;]<\/p>\n<p>positions = [(0.2, 0.5), (0.5, 0.5), (0.8, 0.5)]<\/p>\n<p>radius = 0.1<\/p>\n<h2><strong>\u521b\u5efa\u56fe\u5f62\u548c\u8f74<\/strong><\/h2>\n<p>fig, ax = plt.subplots()<\/p>\n<h2><strong>\u7ed8\u5236\u5706<\/strong><\/h2>\n<p>for color, position in zip(colors, positions):<\/p>\n<p>    circle = plt.Circle(position, radius, color=color, fill=True)<\/p>\n<p>    ax.add_artist(circle)<\/p>\n<h2><strong>\u8bbe\u7f6e\u8f74\u7684\u8303\u56f4\u548c\u4fdd\u6301\u6bd4\u4f8b<\/strong><\/h2>\n<p>ax.set_xlim(0, 1)<\/p>\n<p>ax.set_ylim(0, 1)<\/p>\n<p>ax.set_aspect(&#39;equal&#39;)<\/p>\n<h2><strong>\u663e\u793a\u56fe\u5f62<\/strong><\/h2>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u8be6\u7ec6\u63cf\u8ff0\uff1a<\/strong><\/p>\n<p>\u5728\u4e0a\u9762\u7684\u4ee3\u7801\u4e2d\uff0c\u9996\u5148\u5b9a\u4e49\u989c\u8272\u548c\u5706\u7684\u53c2\u6570\uff08\u4f4d\u7f6e\u548c\u534a\u5f84\uff09\u3002\u7136\u540e\u521b\u5efa\u56fe\u5f62\u548c\u8f74\uff0c\u901a\u8fc7\u5faa\u73af\u7ed8\u5236\u5706\uff0c\u5e76\u6dfb\u52a0\u5230\u8f74\u4e0a\u3002\u6700\u540e\uff0c\u8bbe\u7f6e\u8f74\u7684\u8303\u56f4\u548c\u4fdd\u6301\u6bd4\u4f8b\uff0c\u663e\u793a\u56fe\u5f62\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001Pillow (PIL)\u7ed8\u5236\u5f69\u8272\u5706<\/h3>\n<\/p>\n<p><p>Pillow\u662fPython Imaging Library (PIL)\u7684\u4e00\u4e2a\u5206\u652f\uff0c\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u56fe\u50cf\u5904\u7406\u529f\u80fd\u3002<\/p>\n<\/p>\n<p><h4>\u5b89\u88c5Pillow<\/h4>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u786e\u4fdd\u5df2\u5b89\u88c5Pillow\u5e93\u3002\u5982\u679c\u6ca1\u6709\u5b89\u88c5\uff0c\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 pillow<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>\u4f7f\u7528Pillow\u7ed8\u5236\u5f69\u8272\u5706<\/h4>\n<\/p>\n<p><p>\u4ee5\u4e0b\u662f\u4e00\u4e2a\u4f7f\u7528Pillow\u7ed8\u5236\u4e09\u4e2a\u4e0d\u540c\u989c\u8272\u5706\u7684\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from PIL import Image, ImageDraw<\/p>\n<h2><strong>\u521b\u5efa\u7a7a\u767d\u56fe\u50cf<\/strong><\/h2>\n<p>image = Image.new(&#39;RGB&#39;, (600, 400), &#39;white&#39;)<\/p>\n<p>draw = ImageDraw.Draw(image)<\/p>\n<h2><strong>\u5b9a\u4e49\u989c\u8272\u548c\u5706\u7684\u53c2\u6570<\/strong><\/h2>\n<p>colors = [&#39;red&#39;, &#39;green&#39;, &#39;blue&#39;]<\/p>\n<p>positions = [(150, 200), (300, 200), (450, 200)]<\/p>\n<p>radius = 50<\/p>\n<h2><strong>\u7ed8\u5236\u5706<\/strong><\/h2>\n<p>for color, position in zip(colors, positions):<\/p>\n<p>    left_up_point = (position[0] - radius, position[1] - radius)<\/p>\n<p>    right_down_point = (position[0] + radius, position[1] + radius)<\/p>\n<p>    draw.ellipse([left_up_point, right_down_point], fill=color)<\/p>\n<h2><strong>\u4fdd\u5b58\u56fe\u50cf<\/strong><\/h2>\n<p>image.save(&#39;circles.png&#39;)<\/p>\n<h2><strong>\u663e\u793a\u56fe\u50cf<\/strong><\/h2>\n<p>image.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u8be6\u7ec6\u63cf\u8ff0\uff1a<\/strong><\/p>\n<p>\u5728\u4e0a\u9762\u7684\u4ee3\u7801\u4e2d\uff0c\u9996\u5148\u521b\u5efa\u4e00\u4e2a\u7a7a\u767d\u56fe\u50cf\uff0c\u5e76\u5b9a\u4e49\u989c\u8272\u548c\u5706\u7684\u53c2\u6570\uff08\u4f4d\u7f6e\u548c\u534a\u5f84\uff09\u3002\u7136\u540e\u901a\u8fc7\u5faa\u73af\u7ed8\u5236\u5706\uff0c\u6700\u540e\u4fdd\u5b58\u5e76\u663e\u793a\u56fe\u50cf\u3002<\/p>\n<\/p>\n<p><h3>\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u901a\u8fc7\u4f7f\u7528Pygame\u3001Matplotlib\u548cPillow\uff0c\u53ef\u4ee5\u8f7b\u677e\u5b9e\u73b0\u7528\u4e09\u79cd\u989c\u8272\u7ed8\u5236\u5706\u7684\u529f\u80fd\u3002<strong>Pygame\u9002\u7528\u4e8e\u52a8\u6001\u56fe\u5f62\u548c\u6e38\u620f\u5f00\u53d1\u3001Matplotlib\u9002\u7528\u4e8e\u79d1\u5b66\u8ba1\u7b97\u548c\u6570\u636e\u53ef\u89c6\u5316\u3001Pillow\u9002\u7528\u4e8e\u56fe\u50cf\u5904\u7406\u548c\u751f\u6210<\/strong>\u3002\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u5e93\uff0c\u53ef\u4ee5\u5b9e\u73b0\u9ad8\u6548\u4e14\u7f8e\u89c2\u7684\u56fe\u5f62\u7ed8\u5236\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u7ed8\u5236\u5e26\u6709\u4e0d\u540c\u989c\u8272\u7684\u5706\u5f62\uff1f<\/strong><\/p>\n<p>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u591a\u79cd\u5e93\u6765\u7ed8\u5236\u5706\u5f62\uff0c\u5176\u4e2d\u5e38\u7528\u7684\u5305\u62ecMatplotlib\u548cPygame\u7b49\u3002\u901a\u8fc7\u8fd9\u4e9b\u5e93\uff0c\u53ef\u4ee5\u8f7b\u677e\u5730\u4e3a\u5706\u5f62\u5e94\u7528\u4e0d\u540c\u7684\u989c\u8272\u3002\u4ee5Matplotlib\u4e3a\u4f8b\uff0c\u53ef\u4ee5\u4f7f\u7528<code>Circle<\/code>\u7c7b\u521b\u5efa\u5706\u5f62\uff0c\u5e76\u901a\u8fc7\u8bbe\u7f6e\u5176\u989c\u8272\u5c5e\u6027\u6765\u6539\u53d8\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\n# \u521b\u5efa\u4e00\u4e2a\u56fe\u5f62\u548c\u5750\u6807\u8f74\nfig, ax = plt.subplots()\n\n# \u6dfb\u52a0\u4e09\u4e2a\u4e0d\u540c\u989c\u8272\u7684\u5706\u5f62\ncircle1 = plt.Circle((0.2, 0.5), 0.1, color=&#39;red&#39;)\ncircle2 = plt.Circle((0.5, 0.5), 0.1, color=&#39;green&#39;)\ncircle3 = plt.Circle((0.8, 0.5), 0.1, color=&#39;blue&#39;)\n\n# \u5c06\u5706\u5f62\u6dfb\u52a0\u5230\u5750\u6807\u8f74\nax.add_artist(circle1)\nax.add_artist(circle2)\nax.add_artist(circle3)\n\n# \u8bbe\u7f6e\u5750\u6807\u8f74\u7684\u9650\u5236\nax.set_xlim(0, 1)\nax.set_ylim(0, 1)\nax.set_aspect(&#39;equal&#39;)\n\n# \u663e\u793a\u56fe\u5f62\nplt.show()\n<\/code><\/pre>\n<p><strong>\u5728Python\u4e2d\u4f7f\u7528\u54ea\u4e9b\u5e93\u53ef\u4ee5\u7ed8\u5236\u5706\u5f62\uff1f<\/strong><\/p>\n<p>\u5728Python\u4e2d\uff0c\u6709\u591a\u79cd\u5e93\u53ef\u4ee5\u7528\u6765\u7ed8\u5236\u5706\u5f62\u3002\u6700\u5e38\u7528\u7684\u5305\u62ec\uff1a<\/p>\n<ul>\n<li><strong>Matplotlib<\/strong>\uff1a\u7528\u4e8e2D\u56fe\u5f62\u7ed8\u5236\uff0c\u529f\u80fd\u5f3a\u5927\u4e14\u6613\u4e8e\u4f7f\u7528\uff0c\u9002\u5408\u4e8e\u6570\u636e\u53ef\u89c6\u5316\u3002<\/li>\n<li><strong>Pygame<\/strong>\uff1a\u4e00\u4e2a\u9002\u5408\u6e38\u620f\u5f00\u53d1\u7684\u5e93\uff0c\u652f\u6301\u7ed8\u5236\u57fa\u672c\u5f62\u72b6\u548c\u5904\u7406\u56fe\u5f62\u3002<\/li>\n<li><strong>Turtle<\/strong>\uff1a\u4e00\u4e2a\u7b80\u5355\u6613\u7528\u7684\u5e93\uff0c\u9002\u5408\u521d\u5b66\u8005\uff0c\u901a\u8fc7\u7b80\u5355\u7684\u547d\u4ee4\u7ed8\u5236\u56fe\u5f62\u3002<\/li>\n<\/ul>\n<p>\u6bcf\u4e2a\u5e93\u90fd\u6709\u5176\u72ec\u7279\u7684\u4f18\u52bf\uff0c\u53ef\u4ee5\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u5e93\u8fdb\u884c\u7ed8\u56fe\u3002<\/p>\n<p><strong>\u5728\u7ed8\u5236\u5706\u5f62\u65f6\u5982\u4f55\u9009\u62e9\u989c\u8272\uff1f<\/strong><\/p>\n<p>\u9009\u62e9\u989c\u8272\u65f6\uff0c\u53ef\u4ee5\u8003\u8651\u4ee5\u4e0b\u51e0\u4e2a\u65b9\u9762\uff1a<\/p>\n<ul>\n<li><strong>\u989c\u8272\u5bf9\u6bd4<\/strong>\uff1a\u786e\u4fdd\u5706\u5f62\u989c\u8272\u4e0e\u80cc\u666f\u6709\u8db3\u591f\u7684\u5bf9\u6bd4\uff0c\u4ee5\u63d0\u9ad8\u53ef\u89c6\u6027\u3002<\/li>\n<li><strong>\u8272\u5f69\u642d\u914d<\/strong>\uff1a\u4f7f\u7528\u4e92\u8865\u8272\u6216\u76f8\u4f3c\u8272\u6765\u5b9e\u73b0\u7f8e\u89c2\u7684\u89c6\u89c9\u6548\u679c\u3002<\/li>\n<li><strong>\u8272\u5f69\u5fc3\u7406<\/strong>\uff1a\u4e0d\u540c\u989c\u8272\u4f1a\u4f20\u8fbe\u4e0d\u540c\u7684\u60c5\u611f\u548c\u4fe1\u606f\uff0c\u4f8b\u5982\u7ea2\u8272\u901a\u5e38\u4ee3\u8868\u70ed\u60c5\uff0c\u84dd\u8272\u5219\u4f20\u8fbe\u51b7\u9759\u3002<\/li>\n<\/ul>\n<p>\u4f7f\u7528Python\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7RGB\u503c\u6216\u989c\u8272\u540d\u79f0\u6765\u6307\u5b9a\u989c\u8272\uff0c\u786e\u4fdd\u7ed8\u5236\u51fa\u6765\u7684\u5706\u5f62\u7b26\u5408\u8bbe\u8ba1\u9700\u6c42\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u4f7f\u7528\u4e09\u79cd\u989c\u8272\u753b\u5706\u7684\u65b9\u6cd5 \u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u591a\u79cd\u65b9\u5f0f\u6765\u7ed8\u5236\u5f69\u8272\u5706\uff0c\u5305\u62ec\u4f7f\u7528Pygame\u3001Ma [&hellip;]","protected":false},"author":3,"featured_media":1114217,"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\/1114207"}],"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=1114207"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1114207\/revisions"}],"predecessor-version":[{"id":1114221,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1114207\/revisions\/1114221"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1114217"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1114207"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1114207"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1114207"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}