{"id":1135660,"date":"2025-01-08T21:27:45","date_gmt":"2025-01-08T13:27:45","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1135660.html"},"modified":"2025-01-08T21:27:48","modified_gmt":"2025-01-08T13:27:48","slug":"python%e5%a6%82%e4%bd%95%e7%94%bb%e4%b8%80%e4%b8%aa%e5%88%86%e5%bd%a2%e5%87%a0%e4%bd%95%e5%9b%be%e5%bd%a2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1135660.html","title":{"rendered":"python\u5982\u4f55\u753b\u4e00\u4e2a\u5206\u5f62\u51e0\u4f55\u56fe\u5f62"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25104243\/794f0e24-652b-463b-a831-0f005d0be7ea.webp\" alt=\"python\u5982\u4f55\u753b\u4e00\u4e2a\u5206\u5f62\u51e0\u4f55\u56fe\u5f62\" \/><\/p>\n<p><p> <strong>Python\u5982\u4f55\u753b\u4e00\u4e2a\u5206\u5f62\u51e0\u4f55\u56fe\u5f62<\/strong><\/p>\n<\/p>\n<p><p>Python\u753b\u5206\u5f62\u51e0\u4f55\u56fe\u5f62\u7684\u65b9\u6cd5\u6709\u5f88\u591a\uff0c<strong>\u4f7f\u7528\u6807\u51c6\u5e93Turtle\u3001\u4f7f\u7528Pygame\u5e93\u3001\u4f7f\u7528Matplotlib\u5e93<\/strong>\u3002\u672c\u6587\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u4f7f\u7528\u8fd9\u4e9b\u65b9\u6cd5\u6765\u7ed8\u5236\u5206\u5f62\u51e0\u4f55\u56fe\u5f62\uff0c\u5e76\u63d0\u4f9b\u4ee3\u7801\u793a\u4f8b\u548c\u8be6\u7ec6\u89e3\u91ca\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528Turtle\u5e93\u7ed8\u5236\u5206\u5f62\u51e0\u4f55\u56fe\u5f62<\/h3>\n<\/p>\n<p><p>Turtle\u5e93\u662fPython\u7684\u6807\u51c6\u5e93\u4e4b\u4e00\uff0c\u975e\u5e38\u9002\u5408\u7528\u6765\u7ed8\u5236\u7b80\u5355\u7684\u56fe\u5f62\u548c\u5206\u5f62\u51e0\u4f55\u56fe\u5f62\u3002<\/p>\n<\/p>\n<p><h4>1. \u5b89\u88c5\u548c\u5bfc\u5165Turtle\u5e93<\/h4>\n<\/p>\n<p><p>Turtle\u5e93\u662fPython\u7684\u6807\u51c6\u5e93\uff0c\u4e0d\u9700\u8981\u989d\u5916\u5b89\u88c5\u3002\u53ea\u9700\u8981\u5728\u4ee3\u7801\u4e2d\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. \u7ed8\u5236\u5206\u5f62\u6811<\/h4>\n<\/p>\n<p><p>\u5206\u5f62\u6811\u662f\u4e00\u4e2a\u5178\u578b\u7684\u5206\u5f62\u56fe\u5f62\uff0c\u53ef\u4ee5\u901a\u8fc7\u9012\u5f52\u51fd\u6570\u5b9e\u73b0\u3002\u4e0b\u9762\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u5206\u5f62\u6811\u7ed8\u5236\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import turtle<\/p>\n<p>def draw_branch(branch_length, t):<\/p>\n<p>    if branch_length &gt; 5:<\/p>\n<p>        t.forward(branch_length)<\/p>\n<p>        t.right(20)<\/p>\n<p>        draw_branch(branch_length - 15, t)<\/p>\n<p>        t.left(40)<\/p>\n<p>        draw_branch(branch_length - 15, t)<\/p>\n<p>        t.right(20)<\/p>\n<p>        t.backward(branch_length)<\/p>\n<p>def m<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>n():<\/p>\n<p>    t = turtle.Turtle()<\/p>\n<p>    my_win = turtle.Screen()<\/p>\n<p>    t.left(90)<\/p>\n<p>    t.up()<\/p>\n<p>    t.backward(100)<\/p>\n<p>    t.down()<\/p>\n<p>    t.color(&quot;green&quot;)<\/p>\n<p>    draw_branch(75, t)<\/p>\n<p>    my_win.exitonclick()<\/p>\n<p>if __name__ == &quot;__main__&quot;:<\/p>\n<p>    main()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u51fd\u6570<code>draw_branch<\/code>\u662f\u4e00\u4e2a\u9012\u5f52\u51fd\u6570\uff0c\u6bcf\u6b21\u8c03\u7528\u81ea\u5df1\u6765\u7ed8\u5236\u5206\u652f\uff0c\u76f4\u5230\u5206\u652f\u957f\u5ea6\u5c0f\u4e8e\u7b49\u4e8e5\u3002\u901a\u8fc7\u8c03\u6574\u53c2\u6570\uff0c\u53ef\u4ee5\u7ed8\u5236\u51fa\u4e0d\u540c\u5f62\u72b6\u7684\u5206\u5f62\u6811\u3002<\/p>\n<\/p>\n<p><h4>3. \u7ed8\u5236Sierpinski\u4e09\u89d2\u5f62<\/h4>\n<\/p>\n<p><p>Sierpinski\u4e09\u89d2\u5f62\u662f\u53e6\u4e00\u79cd\u5e38\u89c1\u7684\u5206\u5f62\u56fe\u5f62\u3002\u53ef\u4ee5\u4f7f\u7528\u9012\u5f52\u65b9\u6cd5\u6765\u7ed8\u5236\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import turtle<\/p>\n<p>def draw_triangle(points, color, t):<\/p>\n<p>    t.fillcolor(color)<\/p>\n<p>    t.up()<\/p>\n<p>    t.goto(points[0][0], points[0][1])<\/p>\n<p>    t.down()<\/p>\n<p>    t.begin_fill()<\/p>\n<p>    t.goto(points[1][0], points[1][1])<\/p>\n<p>    t.goto(points[2][0], points[2][1])<\/p>\n<p>    t.goto(points[0][0], points[0][1])<\/p>\n<p>    t.end_fill()<\/p>\n<p>def get_mid(p1, p2):<\/p>\n<p>    return ((p1[0] + p2[0]) \/ 2, (p1[1] + p2[1]) \/ 2)<\/p>\n<p>def sierpinski(points, degree, t):<\/p>\n<p>    colormap = [&#39;blue&#39;, &#39;red&#39;, &#39;green&#39;, &#39;white&#39;, &#39;yellow&#39;, &#39;violet&#39;, &#39;orange&#39;]<\/p>\n<p>    draw_triangle(points, colormap[degree], t)<\/p>\n<p>    if degree &gt; 0:<\/p>\n<p>        sierpinski([points[0],<\/p>\n<p>                    get_mid(points[0], points[1]),<\/p>\n<p>                    get_mid(points[0], points[2])],<\/p>\n<p>                   degree-1, t)<\/p>\n<p>        sierpinski([points[1],<\/p>\n<p>                    get_mid(points[0], points[1]),<\/p>\n<p>                    get_mid(points[1], points[2])],<\/p>\n<p>                   degree-1, t)<\/p>\n<p>        sierpinski([points[2],<\/p>\n<p>                    get_mid(points[2], points[1]),<\/p>\n<p>                    get_mid(points[0], points[2])],<\/p>\n<p>                   degree-1, t)<\/p>\n<p>def main():<\/p>\n<p>    t = turtle.Turtle()<\/p>\n<p>    my_win = turtle.Screen()<\/p>\n<p>    my_points = [[-200, -100], [0, 200], [200, -100]]<\/p>\n<p>    sierpinski(my_points, 3, t)<\/p>\n<p>    my_win.exitonclick()<\/p>\n<p>if __name__ == &quot;__main__&quot;:<\/p>\n<p>    main()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u91cc\uff0c<code>draw_triangle<\/code>\u51fd\u6570\u7ed8\u5236\u4e00\u4e2a\u4e09\u89d2\u5f62\uff0c<code>sierpinski<\/code>\u51fd\u6570\u9012\u5f52\u5730\u8c03\u7528\u81ea\u5df1\u6765\u7ed8\u5236Sierpinski\u4e09\u89d2\u5f62\u3002\u901a\u8fc7\u8c03\u6574\u9012\u5f52\u6df1\u5ea6\uff0c\u53ef\u4ee5\u7ed8\u5236\u51fa\u4e0d\u540c\u5c42\u6b21\u7684Sierpinski\u4e09\u89d2\u5f62\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528Pygame\u5e93\u7ed8\u5236\u5206\u5f62\u51e0\u4f55\u56fe\u5f62<\/h3>\n<\/p>\n<p><p>Pygame\u662f\u4e00\u4e2a\u8de8\u5e73\u53f0\u7684Python\u6a21\u5757\uff0c\u7528\u4e8e\u5f00\u53d1\u89c6\u9891\u6e38\u620f\u3002\u5b83\u5305\u62ec\u8ba1\u7b97\u673a\u56fe\u5f62\u548c\u58f0\u97f3\u5e93\uff0c\u9002\u5408\u7ed8\u5236\u590d\u6742\u7684\u5206\u5f62\u51e0\u4f55\u56fe\u5f62\u3002<\/p>\n<\/p>\n<p><h4>1. \u5b89\u88c5\u548c\u5bfc\u5165Pygame\u5e93<\/h4>\n<\/p>\n<p><p>\u9996\u5148\u9700\u8981\u5b89\u88c5Pygame\u5e93\uff0c\u53ef\u4ee5\u4f7f\u7528pip\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><p>\u7136\u540e\u5728\u4ee3\u7801\u4e2d\u5bfc\u5165Pygame\u5e93\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pygame<\/p>\n<p>import math<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u7ed8\u5236Mandelbrot\u96c6\u5408<\/h4>\n<\/p>\n<p><p>Mandelbrot\u96c6\u5408\u662f\u8457\u540d\u7684\u5206\u5f62\u56fe\u5f62\uff0c\u53ef\u4ee5\u4f7f\u7528Pygame\u6765\u7ed8\u5236\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pygame<\/p>\n<p>import numpy as np<\/p>\n<h2><strong>Initialize Pygame<\/strong><\/h2>\n<p>pygame.init()<\/p>\n<h2><strong>Set up display<\/strong><\/h2>\n<p>width, height = 800, 800<\/p>\n<p>window = pygame.display.set_mode((width, height))<\/p>\n<p>pygame.display.set_caption(&quot;Mandelbrot Set&quot;)<\/p>\n<h2><strong>Define colors<\/strong><\/h2>\n<p>black = (0, 0, 0)<\/p>\n<p>white = (255, 255, 255)<\/p>\n<h2><strong>Mandelbrot parameters<\/strong><\/h2>\n<p>max_iter = 256<\/p>\n<p>zoom = 1<\/p>\n<p>move_x = 0<\/p>\n<p>move_y = 0<\/p>\n<p>def mandelbrot(c, max_iter):<\/p>\n<p>    z = c<\/p>\n<p>    for n in range(max_iter):<\/p>\n<p>        if abs(z) &gt; 2:<\/p>\n<p>            return n<\/p>\n<p>        z = z * z + c<\/p>\n<p>    return max_iter<\/p>\n<p>def draw_mandelbrot():<\/p>\n<p>    for x in range(width):<\/p>\n<p>        for y in range(height):<\/p>\n<p>            c = complex((x - width\/2) * 4\/width * zoom + move_x,<\/p>\n<p>                        (y - height\/2) * 4\/height * zoom + move_y)<\/p>\n<p>            m = mandelbrot(c, max_iter)<\/p>\n<p>            color = 255 - int(m * 255 \/ max_iter)<\/p>\n<p>            window.set_at((x, y), (color, color, color))<\/p>\n<h2><strong>Main loop<\/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>    draw_mandelbrot()<\/p>\n<p>    pygame.display.update()<\/p>\n<p>pygame.quit()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u51fd\u6570<code>mandelbrot<\/code>\u8ba1\u7b97Mandelbrot\u96c6\u5408\u4e2d\u7684\u70b9\uff0c<code>draw_mandelbrot<\/code>\u51fd\u6570\u7ed8\u5236\u56fe\u5f62\u3002\u901a\u8fc7\u8c03\u6574\u53c2\u6570\uff0c\u53ef\u4ee5\u751f\u6210\u4e0d\u540c\u7684Mandelbrot\u56fe\u5f62\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u4f7f\u7528Matplotlib\u5e93\u7ed8\u5236\u5206\u5f62\u51e0\u4f55\u56fe\u5f62<\/h3>\n<\/p>\n<p><p>Matplotlib\u662f\u4e00\u4e2a\u7ed8\u56fe\u5e93\uff0c\u5b83\u63d0\u4f9b\u4e86\u4e00\u79cd\u7b80\u5355\u7684\u65b9\u6cd5\u6765\u7ed8\u5236\u5206\u5f62\u51e0\u4f55\u56fe\u5f62\u3002<\/p>\n<\/p>\n<p><h4>1. \u5b89\u88c5\u548c\u5bfc\u5165Matplotlib\u5e93<\/h4>\n<\/p>\n<p><p>\u9996\u5148\u9700\u8981\u5b89\u88c5Matplotlib\u5e93\uff0c\u53ef\u4ee5\u4f7f\u7528pip\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\u5728\u4ee3\u7801\u4e2d\u5bfc\u5165Matplotlib\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. \u7ed8\u5236Julia\u96c6\u5408<\/h4>\n<\/p>\n<p><p>Julia\u96c6\u5408\u662f\u53e6\u4e00\u79cd\u8457\u540d\u7684\u5206\u5f62\u56fe\u5f62\uff0c\u53ef\u4ee5\u4f7f\u7528Matplotlib\u6765\u7ed8\u5236\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<h2><strong>Define the function to generate Julia set<\/strong><\/h2>\n<p>def julia_set(width, height, zoom, move_x, move_y, c, max_iter):<\/p>\n<p>    x = np.linspace(-1.5, 1.5, width)<\/p>\n<p>    y = np.linspace(-1.5, 1.5, height)<\/p>\n<p>    X, Y = np.meshgrid(x, y)<\/p>\n<p>    Z = X + 1j * Y<\/p>\n<p>    img = np.zeros(Z.shape, dtype=int)<\/p>\n<p>    for i in range(max_iter):<\/p>\n<p>        Z = Z * Z + c<\/p>\n<p>        mask = np.abs(Z) &lt; 10<\/p>\n<p>        img += mask<\/p>\n<p>    return img<\/p>\n<h2><strong>Parameters<\/strong><\/h2>\n<p>width, height = 800, 800<\/p>\n<p>zoom = 1<\/p>\n<p>move_x = 0<\/p>\n<p>move_y = 0<\/p>\n<p>c = complex(-0.7, 0.27015)<\/p>\n<p>max_iter = 256<\/p>\n<h2><strong>Generate Julia set and plot<\/strong><\/h2>\n<p>img = julia_set(width, height, zoom, move_x, move_y, c, max_iter)<\/p>\n<p>plt.imshow(img, extent=[-1.5, 1.5, -1.5, 1.5], cmap=&#39;inferno&#39;)<\/p>\n<p>plt.colorbar()<\/p>\n<p>plt.title(&quot;Julia Set&quot;)<\/p>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u51fd\u6570<code>julia_set<\/code>\u751f\u6210Julia\u96c6\u5408\u7684\u70b9\uff0c\u5e76\u8fd4\u56de\u4e00\u4e2a\u56fe\u50cf\u6570\u7ec4\u3002\u901a\u8fc7\u8c03\u6574\u53c2\u6570\uff0c\u53ef\u4ee5\u751f\u6210\u4e0d\u540c\u7684Julia\u56fe\u5f62\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u672c\u6587\u4ecb\u7ecd\u4e86\u5982\u4f55\u4f7f\u7528Python\u7ed8\u5236\u5206\u5f62\u51e0\u4f55\u56fe\u5f62\uff0c\u5206\u522b\u4f7f\u7528\u4e86Turtle\u3001Pygame\u548cMatplotlib\u5e93\u3002\u6bcf\u79cd\u65b9\u6cd5\u90fd\u6709\u5176\u72ec\u7279\u7684\u4f18\u52bf\u548c\u9002\u7528\u573a\u666f\uff0c\u8bfb\u8005\u53ef\u4ee5\u6839\u636e\u81ea\u5df1\u7684\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u6765\u7ed8\u5236\u5206\u5f62\u51e0\u4f55\u56fe\u5f62\u3002\u5e0c\u671b\u672c\u6587\u5bf9\u4f60\u6709\u6240\u5e2e\u52a9\uff0c\u795d\u4f60\u5728\u5206\u5f62\u51e0\u4f55\u56fe\u5f62\u7684\u7ed8\u5236\u4e2d\u53d6\u5f97\u6210\u529f\uff01<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>Python\u53ef\u4ee5\u7528\u4ec0\u4e48\u5e93\u6765\u7ed8\u5236\u5206\u5f62\u51e0\u4f55\u56fe\u5f62\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u5e38\u7528\u7684\u5e93\u6709Matplotlib\u548cTurtle\u3002Matplotlib\u975e\u5e38\u9002\u5408\u751f\u6210\u9759\u6001\u7684\u5206\u5f62\u56fe\u5f62\uff0c\u6bd4\u5982\u66fc\u5fb7\u5c14\u5e03\u7f57\u7279\u96c6\uff0c\u800cTurtle\u5219\u9002\u5408\u52a8\u6001\u7ed8\u5236\u5206\u5f62\uff0c\u5982\u79d1\u8d6b\u96ea\u82b1\u6216\u8c22\u5c14\u5bbe\u65af\u57fa\u4e09\u89d2\u5f62\u3002\u9009\u62e9\u5408\u9002\u7684\u5e93\u53ef\u4ee5\u5e2e\u52a9\u4f60\u66f4\u597d\u5730\u5b9e\u73b0\u4f60\u7684\u7ed8\u56fe\u9700\u6c42\u3002<\/p>\n<p><strong>\u5982\u4f55\u8bbe\u7f6e\u5206\u5f62\u56fe\u5f62\u7684\u9012\u5f52\u6df1\u5ea6\uff1f<\/strong><br \/>\u5206\u5f62\u56fe\u5f62\u7684\u590d\u6742\u5ea6\u901a\u5e38\u7531\u9012\u5f52\u6df1\u5ea6\u51b3\u5b9a\u3002\u5728\u7ed8\u5236\u5206\u5f62\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7\u4e00\u4e2a\u53c2\u6570\u6765\u63a7\u5236\u9012\u5f52\u7684\u5c42\u6570\u3002\u4f8b\u5982\uff0c\u5728\u751f\u6210\u8c22\u5c14\u5bbe\u65af\u57fa\u4e09\u89d2\u5f62\u65f6\uff0c\u53ef\u4ee5\u8bbe\u7f6e\u4e00\u4e2a\u53d8\u91cf\u6765\u63a7\u5236\u9012\u5f52\u8c03\u7528\u7684\u6b21\u6570\uff0c\u8d8a\u9ad8\u7684\u5c42\u6570\u4f1a\u5bfc\u81f4\u56fe\u5f62\u8d8a\u590d\u6742\uff0c\u7ec6\u8282\u4e5f\u8d8a\u4e30\u5bcc\u3002<\/p>\n<p><strong>\u5206\u5f62\u51e0\u4f55\u56fe\u5f62\u7684\u5e94\u7528\u573a\u666f\u6709\u54ea\u4e9b\uff1f<\/strong><br \/>\u5206\u5f62\u51e0\u4f55\u4e0d\u4ec5\u5728\u827a\u672f\u521b\u4f5c\u4e2d\u5e7f\u53d7\u6b22\u8fce\uff0c\u8fd8\u5728\u81ea\u7136\u754c\u3001\u8ba1\u7b97\u673a\u56fe\u5f62\u5b66\u3001\u6570\u636e\u538b\u7f29\u3001\u751f\u6001\u6a21\u578b\u7b49\u9886\u57df\u6709\u5e7f\u6cdb\u5e94\u7528\u3002\u4f8b\u5982\uff0c\u6a21\u62df\u81ea\u7136\u666f\u89c2\u3001\u751f\u6210\u590d\u6742\u7684\u56fe\u50cf\u7eb9\u7406\uff0c\u751a\u81f3\u7528\u4e8e\u63cf\u8ff0\u4e00\u4e9b\u751f\u7269\u751f\u957f\u7684\u6a21\u578b\u3002\u4e86\u89e3\u8fd9\u4e9b\u5e94\u7528\u573a\u666f\u53ef\u4ee5\u6fc0\u53d1\u4f60\u5bf9\u5206\u5f62\u51e0\u4f55\u7684\u66f4\u6df1\u5c42\u6b21\u63a2\u7d22\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u5982\u4f55\u753b\u4e00\u4e2a\u5206\u5f62\u51e0\u4f55\u56fe\u5f62 Python\u753b\u5206\u5f62\u51e0\u4f55\u56fe\u5f62\u7684\u65b9\u6cd5\u6709\u5f88\u591a\uff0c\u4f7f\u7528\u6807\u51c6\u5e93Turtle\u3001\u4f7f\u7528Pyg [&hellip;]","protected":false},"author":3,"featured_media":1135671,"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\/1135660"}],"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=1135660"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1135660\/revisions"}],"predecessor-version":[{"id":1135675,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1135660\/revisions\/1135675"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1135671"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1135660"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1135660"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1135660"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}