{"id":1146401,"date":"2025-01-08T23:16:38","date_gmt":"2025-01-08T15:16:38","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1146401.html"},"modified":"2025-01-08T23:16:40","modified_gmt":"2025-01-08T15:16:40","slug":"python%e5%a6%82%e4%bd%95%e5%b0%86%e4%b8%80%e4%b8%aa%e4%b8%89%e8%a7%92%e5%bd%a2%e6%97%8b%e8%bd%ac","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1146401.html","title":{"rendered":"python\u5982\u4f55\u5c06\u4e00\u4e2a\u4e09\u89d2\u5f62\u65cb\u8f6c"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24182458\/5c0d5451-340b-4196-ab0e-39a93b7a8ae4.webp\" alt=\"python\u5982\u4f55\u5c06\u4e00\u4e2a\u4e09\u89d2\u5f62\u65cb\u8f6c\" \/><\/p>\n<p><p> <strong>Python\u5982\u4f55\u5c06\u4e00\u4e2a\u4e09\u89d2\u5f62\u65cb\u8f6c\uff1a\u4f7f\u7528\u6570\u5b66\u65cb\u8f6c\u516c\u5f0f\u3001\u5229\u7528\u65cb\u8f6c\u77e9\u9635\u3001\u4f7f\u7528Pygame\u5e93<\/strong><\/p>\n<\/p>\n<p><p><strong>\u4f7f\u7528\u6570\u5b66\u65cb\u8f6c\u516c\u5f0f<\/strong>\u662f\u6700\u57fa\u7840\u7684\u65b9\u6cd5\u4e4b\u4e00\uff0c\u5b83\u76f4\u63a5\u6d89\u53ca\u5230\u6570\u5b66\u516c\u5f0f\u7684\u5e94\u7528\u6765\u5b9e\u73b0\u65cb\u8f6c\u3002<strong>\u5229\u7528\u65cb\u8f6c\u77e9\u9635<\/strong>\u53ef\u4ee5\u901a\u8fc7\u7ebf\u6027\u4ee3\u6570\u7684\u65b9\u5f0f\u6765\u5904\u7406\u65cb\u8f6c\u95ee\u9898\uff0c\u8fd9\u5728\u8ba1\u7b97\u673a\u56fe\u5f62\u5b66\u4e2d\u662f\u975e\u5e38\u5e38\u89c1\u7684\u3002<strong>\u4f7f\u7528Pygame\u5e93<\/strong>\u5219\u662f\u901a\u8fc7\u4e00\u4e2a\u9ad8\u5c42\u6b21\u7684\u5e93\u6765\u5b9e\u73b0\u65cb\u8f6c\uff0c\u8fd9\u79cd\u65b9\u6cd5\u66f4\u4e3a\u4fbf\u6377\u4e14\u9002\u5408\u56fe\u5f62\u5e94\u7528\u5f00\u53d1\u3002<\/p>\n<\/p>\n<p><p>\u4e0b\u9762\u6211\u4eec\u5c06\u8be6\u7ec6\u63a2\u8ba8\u8fd9\u4e09\u79cd\u65b9\u6cd5\uff0c\u5e76\u63d0\u4f9b\u76f8\u5173\u793a\u4f8b\u4ee3\u7801\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528\u6570\u5b66\u65cb\u8f6c\u516c\u5f0f<\/h3>\n<\/p>\n<p><p>\u5728\u4e8c\u7ef4\u5e73\u9762\u4e0a\u65cb\u8f6c\u4e00\u4e2a\u70b9\uff0c\u901a\u5e38\u4f7f\u7528\u65cb\u8f6c\u77e9\u9635\u7684\u5f62\u5f0f\u3002\u5047\u8bbe\u6211\u4eec\u6709\u4e00\u4e2a\u70b9 ((x, y))\uff0c\u8981\u5c06\u5176\u7ed5\u539f\u70b9\u65cb\u8f6c (\\theta) \u89d2\u5ea6\uff0c\u65b0\u7684\u5750\u6807 ((x&#39;, y&#39;)) \u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u516c\u5f0f\u8ba1\u7b97\uff1a<\/p>\n<\/p>\n<p><p>[ x&#39; = x \\cdot \\cos(\\theta) &#8211; y \\cdot \\sin(\\theta) ]<\/p>\n<p>[ y&#39; = x \\cdot \\sin(\\theta) + y \\cdot \\cos(\\theta) ]<\/p>\n<\/p>\n<p><h4>1.1\u3001\u8ba1\u7b97\u65b0\u7684\u9876\u70b9\u5750\u6807<\/h4>\n<\/p>\n<p><p>\u5047\u8bbe\u6211\u4eec\u6709\u4e00\u4e2a\u4e09\u89d2\u5f62\u7684\u4e09\u4e2a\u9876\u70b9 ((x1, y1)), ((x2, y2)), ((x3, y3))\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u4e0a\u8ff0\u516c\u5f0f\u8ba1\u7b97\u51fa\u65cb\u8f6c\u540e\u7684\u65b0\u9876\u70b9\u5750\u6807\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import math<\/p>\n<p>def rotate_point(x, y, angle):<\/p>\n<p>    rad = math.radians(angle)<\/p>\n<p>    x_new = x * math.cos(rad) - y * math.sin(rad)<\/p>\n<p>    y_new = x * math.sin(rad) + y * math.cos(rad)<\/p>\n<p>    return x_new, y_new<\/p>\n<h2><strong>\u4e09\u89d2\u5f62\u9876\u70b9<\/strong><\/h2>\n<p>triangle = [(0, 0), (1, 0), (0, 1)]<\/p>\n<h2><strong>\u65cb\u8f6c\u89d2\u5ea6<\/strong><\/h2>\n<p>angle = 45<\/p>\n<h2><strong>\u65cb\u8f6c\u540e\u7684\u65b0\u9876\u70b9<\/strong><\/h2>\n<p>rotated_triangle = [rotate_point(x, y, angle) for x, y in triangle]<\/p>\n<p>print(rotated_triangle)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>1.2\u3001\u5b9e\u73b0\u65cb\u8f6c\u51fd\u6570<\/h4>\n<\/p>\n<p><p>\u6211\u4eec\u53ef\u4ee5\u5c06\u4e0a\u8ff0\u4ee3\u7801\u5c01\u88c5\u5230\u4e00\u4e2a\u51fd\u6570\u4e2d\uff0c\u65b9\u4fbf\u8c03\u7528\u548c\u590d\u7528\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def rotate_triangle(triangle, angle):<\/p>\n<p>    return [rotate_point(x, y, angle) for x, y in triangle]<\/p>\n<h2><strong>\u4f7f\u7528\u793a\u4f8b<\/strong><\/h2>\n<p>original_triangle = [(0, 0), (1, 0), (0, 1)]<\/p>\n<p>rotated_triangle = rotate_triangle(original_triangle, 45)<\/p>\n<p>print(rotated_triangle)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e8c\u3001\u5229\u7528\u65cb\u8f6c\u77e9\u9635<\/h3>\n<\/p>\n<p><p>\u65cb\u8f6c\u77e9\u9635\u662f\u4e00\u79cd\u7ebf\u6027\u4ee3\u6570\u5de5\u5177\uff0c\u5b83\u53ef\u4ee5\u7b80\u5316\u4e8c\u7ef4\u56fe\u5f62\u7684\u65cb\u8f6c\u64cd\u4f5c\u3002\u65cb\u8f6c\u77e9\u9635\u7684\u5f62\u5f0f\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><p>[ R(\\theta) = \\begin{bmatrix} \\cos(\\theta) &amp; -\\sin(\\theta) \\ \\sin(\\theta) &amp; \\cos(\\theta) \\end{bmatrix} ]<\/p>\n<\/p>\n<p><h4>2.1\u3001\u4f7f\u7528\u65cb\u8f6c\u77e9\u9635\u8fdb\u884c\u65cb\u8f6c<\/h4>\n<\/p>\n<p><p>\u6211\u4eec\u53ef\u4ee5\u5c06\u65cb\u8f6c\u77e9\u9635\u4e0e\u5411\u91cf\u76f8\u4e58\u6765\u5b9e\u73b0\u9876\u70b9\u7684\u65cb\u8f6c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import numpy as np<\/p>\n<p>def rotate_point_matrix(x, y, angle):<\/p>\n<p>    rad = np.radians(angle)<\/p>\n<p>    rotation_matrix = np.array([<\/p>\n<p>        [np.cos(rad), -np.sin(rad)],<\/p>\n<p>        [np.sin(rad), np.cos(rad)]<\/p>\n<p>    ])<\/p>\n<p>    point = np.array([x, y])<\/p>\n<p>    rotated_point = rotation_matrix.dot(point)<\/p>\n<p>    return rotated_point[0], rotated_point[1]<\/p>\n<h2><strong>\u4e09\u89d2\u5f62\u9876\u70b9<\/strong><\/h2>\n<p>triangle = [(0, 0), (1, 0), (0, 1)]<\/p>\n<h2><strong>\u65cb\u8f6c\u89d2\u5ea6<\/strong><\/h2>\n<p>angle = 45<\/p>\n<h2><strong>\u65cb\u8f6c\u540e\u7684\u65b0\u9876\u70b9<\/strong><\/h2>\n<p>rotated_triangle = [rotate_point_matrix(x, y, angle) for x, y in triangle]<\/p>\n<p>print(rotated_triangle)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2.2\u3001\u5b9e\u73b0\u65cb\u8f6c\u51fd\u6570<\/h4>\n<\/p>\n<p><p>\u540c\u6837\uff0c\u6211\u4eec\u53ef\u4ee5\u5c06\u4e0a\u8ff0\u4ee3\u7801\u5c01\u88c5\u5230\u4e00\u4e2a\u51fd\u6570\u4e2d\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def rotate_triangle_matrix(triangle, angle):<\/p>\n<p>    return [rotate_point_matrix(x, y, angle) for x, y in triangle]<\/p>\n<h2><strong>\u4f7f\u7528\u793a\u4f8b<\/strong><\/h2>\n<p>original_triangle = [(0, 0), (1, 0), (0, 1)]<\/p>\n<p>rotated_triangle = rotate_triangle_matrix(original_triangle, 45)<\/p>\n<p>print(rotated_triangle)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001\u4f7f\u7528Pygame\u5e93<\/h3>\n<\/p>\n<p><p>Pygame\u662f\u4e00\u4e2a\u975e\u5e38\u6d41\u884c\u7684\u5e93\uff0c\u7528\u4e8e\u7f16\u5199\u56fe\u5f62\u548c\u591a\u5a92\u4f53\u5e94\u7528\u3002\u5728Pygame\u4e2d\uff0c\u53ef\u4ee5\u5f88\u5bb9\u6613\u5730\u5b9e\u73b0\u65cb\u8f6c\u6548\u679c\u3002<\/p>\n<\/p>\n<p><h4>3.1\u3001\u5b89\u88c5Pygame\u5e93<\/h4>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u6211\u4eec\u9700\u8981\u5b89\u88c5Pygame\u5e93\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\u3001\u4f7f\u7528Pygame\u7ed8\u5236\u548c\u65cb\u8f6c\u4e09\u89d2\u5f62<\/h4>\n<\/p>\n<p><p>\u901a\u8fc7Pygame\uff0c\u6211\u4eec\u53ef\u4ee5\u66f4\u76f4\u89c2\u5730\u770b\u5230\u65cb\u8f6c\u540e\u7684\u6548\u679c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pygame<\/p>\n<p>import math<\/p>\n<h2><strong>\u521d\u59cb\u5316Pygame<\/strong><\/h2>\n<p>pygame.init()<\/p>\n<h2><strong>\u5c4f\u5e55\u5c3a\u5bf8<\/strong><\/h2>\n<p>screen = pygame.display.set_mode((600, 600))<\/p>\n<h2><strong>\u989c\u8272<\/strong><\/h2>\n<p>WHITE = (255, 255, 255)<\/p>\n<p>BLACK = (0, 0, 0)<\/p>\n<h2><strong>\u4e09\u89d2\u5f62\u9876\u70b9<\/strong><\/h2>\n<p>triangle = [(300, 300), (350, 300), (300, 350)]<\/p>\n<h2><strong>\u65cb\u8f6c\u89d2\u5ea6<\/strong><\/h2>\n<p>angle = 45<\/p>\n<p>def rotate_point(x, y, cx, cy, angle):<\/p>\n<p>    rad = math.radians(angle)<\/p>\n<p>    x -= cx<\/p>\n<p>    y -= cy<\/p>\n<p>    x_new = x * math.cos(rad) - y * math.sin(rad)<\/p>\n<p>    y_new = x * math.sin(rad) + y * math.cos(rad)<\/p>\n<p>    x_new += cx<\/p>\n<p>    y_new += cy<\/p>\n<p>    return x_new, y_new<\/p>\n<p>def rotate_triangle(triangle, angle):<\/p>\n<p>    cx = sum([x for x, y in triangle]) \/ len(triangle)<\/p>\n<p>    cy = sum([y for x, y in triangle]) \/ len(triangle)<\/p>\n<p>    return [rotate_point(x, y, cx, cy, angle) for x, y in triangle]<\/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>    screen.fill(WHITE)<\/p>\n<p>    # \u65cb\u8f6c\u4e09\u89d2\u5f62<\/p>\n<p>    rotated_triangle = rotate_triangle(triangle, angle)<\/p>\n<p>    # \u7ed8\u5236\u65cb\u8f6c\u540e\u7684\u4e09\u89d2\u5f62<\/p>\n<p>    pygame.draw.polygon(screen, BLACK, rotated_triangle)<\/p>\n<p>    pygame.display.flip()<\/p>\n<p>pygame.quit()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3.3\u3001\u52a8\u6001\u65cb\u8f6c<\/h4>\n<\/p>\n<p><p>\u4e3a\u4e86\u5b9e\u73b0\u52a8\u6001\u65cb\u8f6c\uff0c\u6211\u4eec\u53ef\u4ee5\u589e\u52a0\u4e00\u4e2a\u89d2\u5ea6\u53d8\u91cf\uff0c\u5e76\u5728\u6bcf\u6b21\u5faa\u73af\u4e2d\u589e\u52a0\u8fd9\u4e2a\u89d2\u5ea6\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u589e\u52a0\u89d2\u5ea6\u53d8\u91cf<\/p>\n<p>angle = 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>    screen.fill(WHITE)<\/p>\n<p>    # \u65cb\u8f6c\u4e09\u89d2\u5f62<\/p>\n<p>    rotated_triangle = rotate_triangle(triangle, angle)<\/p>\n<p>    # \u7ed8\u5236\u65cb\u8f6c\u540e\u7684\u4e09\u89d2\u5f62<\/p>\n<p>    pygame.draw.polygon(screen, BLACK, rotated_triangle)<\/p>\n<p>    # \u66f4\u65b0\u663e\u793a<\/p>\n<p>    pygame.display.flip()<\/p>\n<p>    # \u589e\u52a0\u89d2\u5ea6<\/p>\n<p>    angle += 1<\/p>\n<p>pygame.quit()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u901a\u8fc7\u4e0a\u8ff0\u4e09\u79cd\u65b9\u6cd5\uff0c\u6211\u4eec\u53ef\u4ee5\u770b\u5230\uff0c<strong>\u4f7f\u7528\u6570\u5b66\u65cb\u8f6c\u516c\u5f0f<\/strong>\u9002\u5408\u7406\u89e3\u5e95\u5c42\u539f\u7406\u548c\u7b80\u5355\u7684\u8ba1\u7b97\uff0c<strong>\u5229\u7528\u65cb\u8f6c\u77e9\u9635<\/strong>\u5219\u63d0\u4f9b\u4e86\u4e00\u79cd\u66f4\u4e3a\u6570\u5b66\u5316\u548c\u9ad8\u6548\u7684\u65b9\u5f0f\uff0c<strong>\u4f7f\u7528Pygame\u5e93<\/strong>\u5219\u9002\u5408\u5728\u56fe\u5f62\u548c\u6e38\u620f\u5f00\u53d1\u4e2d\u8fdb\u884c\u5b9e\u65f6\u7684\u56fe\u5f62\u65cb\u8f6c\u3002\u4e0d\u540c\u7684\u65b9\u6cd5\u6709\u4e0d\u540c\u7684\u5e94\u7528\u573a\u666f\uff0c\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u53ef\u4ee5\u63d0\u9ad8\u5f00\u53d1\u6548\u7387\u548c\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u65cb\u8f6c\u4e00\u4e2a\u4e09\u89d2\u5f62\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u56fe\u5f62\u5e93\u5982Pygame\u6216Matplotlib\u6765\u5b9e\u73b0\u4e09\u89d2\u5f62\u7684\u65cb\u8f6c\u3002\u9996\u5148\uff0c\u60a8\u9700\u8981\u5b9a\u4e49\u4e09\u89d2\u5f62\u7684\u4e09\u4e2a\u9876\u70b9\uff0c\u7136\u540e\u901a\u8fc7\u65cb\u8f6c\u77e9\u9635\u6216\u4f7f\u7528\u5e93\u63d0\u4f9b\u7684\u65cb\u8f6c\u529f\u80fd\u6765\u6539\u53d8\u5176\u4f4d\u7f6e\u3002\u5177\u4f53\u65b9\u6cd5\u5305\u62ec\u5c06\u6bcf\u4e2a\u9876\u70b9\u5750\u6807\u4e58\u4ee5\u65cb\u8f6c\u77e9\u9635\uff0c\u6216\u4f7f\u7528\u5e93\u51fd\u6570\u76f4\u63a5\u65cb\u8f6c\u56fe\u5f62\u3002<\/p>\n<p><strong>\u6211\u9700\u8981\u5b89\u88c5\u54ea\u4e9b\u5e93\u624d\u80fd\u5728Python\u4e2d\u65cb\u8f6c\u4e09\u89d2\u5f62\uff1f<\/strong><br \/>\u8981\u65cb\u8f6c\u4e09\u89d2\u5f62\uff0c\u60a8\u53ef\u4ee5\u9009\u62e9\u5b89\u88c5Pygame\u6216Matplotlib\u3002Pygame\u9002\u5408\u5f00\u53d1\u6e38\u620f\u7c7b\u5e94\u7528\uff0c\u800cMatplotlib\u5219\u9002\u5408\u6570\u636e\u53ef\u89c6\u5316\u3002\u901a\u8fc7\u4f7f\u7528\u547d\u4ee4\u884c\u4e2d\u7684<code>pip install pygame<\/code>\u6216<code>pip install matplotlib<\/code>\uff0c\u5373\u53ef\u8f7b\u677e\u5b89\u88c5\u8fd9\u4e9b\u5e93\u3002<\/p>\n<p><strong>\u5982\u4f55\u9a8c\u8bc1\u4e09\u89d2\u5f62\u7684\u65cb\u8f6c\u662f\u5426\u6210\u529f\uff1f<\/strong><br \/>\u65cb\u8f6c\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7\u7ed8\u5236\u539f\u59cb\u4e09\u89d2\u5f62\u548c\u65cb\u8f6c\u540e\u7684\u4e09\u89d2\u5f62\u6765\u8fdb\u884c\u9a8c\u8bc1\u3002\u786e\u4fdd\u5728\u540c\u4e00\u5750\u6807\u7cfb\u4e2d\u663e\u793a\u4e24\u8005\uff0c\u4ee5\u4fbf\u60a8\u53ef\u4ee5\u76f4\u89c2\u5730\u6bd4\u8f83\u5b83\u4eec\u7684\u4f4d\u7f6e\u53d8\u5316\u3002\u6b64\u5916\uff0c\u60a8\u4e5f\u53ef\u4ee5\u8f93\u51fa\u65cb\u8f6c\u540e\u7684\u9876\u70b9\u5750\u6807\uff0c\u4ee5\u786e\u8ba4\u5b83\u4eec\u76f8\u5bf9\u4e8e\u539f\u70b9\u7684\u53d8\u5316\u662f\u5426\u7b26\u5408\u9884\u671f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u5982\u4f55\u5c06\u4e00\u4e2a\u4e09\u89d2\u5f62\u65cb\u8f6c\uff1a\u4f7f\u7528\u6570\u5b66\u65cb\u8f6c\u516c\u5f0f\u3001\u5229\u7528\u65cb\u8f6c\u77e9\u9635\u3001\u4f7f\u7528Pygame\u5e93 \u4f7f\u7528\u6570\u5b66\u65cb\u8f6c\u516c\u5f0f\u662f\u6700\u57fa\u7840 [&hellip;]","protected":false},"author":3,"featured_media":1146413,"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\/1146401"}],"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=1146401"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1146401\/revisions"}],"predecessor-version":[{"id":1146414,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1146401\/revisions\/1146414"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1146413"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1146401"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1146401"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1146401"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}