{"id":1041108,"date":"2024-12-31T12:46:38","date_gmt":"2024-12-31T04:46:38","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1041108.html"},"modified":"2024-12-31T12:46:41","modified_gmt":"2024-12-31T04:46:41","slug":"%e5%a6%82%e4%bd%95%e5%9c%a8python%e4%b8%ad%e5%88%b6%e4%bd%9c%e8%b6%85%e7%ba%a7%e7%8e%9b%e4%b8%bd","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1041108.html","title":{"rendered":"\u5982\u4f55\u5728python\u4e2d\u5236\u4f5c\u8d85\u7ea7\u739b\u4e3d"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2024\/12\/20a6f7d4-8d4b-4cdb-9de9-4c1ff00e8080.webp?x-oss-process=image\/auto-orient,1\/format,webp\" alt=\"\u5982\u4f55\u5728python\u4e2d\u5236\u4f5c\u8d85\u7ea7\u739b\u4e3d\" \/><\/p>\n<p><p> <strong>\u8981\u5728Python\u4e2d\u5236\u4f5c\u8d85\u7ea7\u739b\u4e3d\uff0c\u53ef\u4ee5\u4f7f\u7528Pygame\u5e93\u3001Sprite\u7c7b\u3001\u4e8b\u4ef6\u5904\u7406\u3001\u78b0\u649e\u68c0\u6d4b<\/strong>\u3002\u5176\u4e2d\uff0c\u4f7f\u7528Pygame\u5e93\u662f\u6700\u91cd\u8981\u7684\u4e00\u6b65\uff0c\u56e0\u4e3a\u5b83\u63d0\u4f9b\u4e86\u521b\u5efa\u6e38\u620f\u6240\u9700\u7684\u6240\u6709\u5de5\u5177\u548c\u529f\u80fd\u3002<\/p>\n<\/p>\n<p><p>\u5236\u4f5c\u8d85\u7ea7\u739b\u4e3d\u7684\u8be6\u7ec6\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><h2>\u4e00\u3001\u5b89\u88c5Pygame\u5e93<\/h2>\n<\/p>\n<p><p>\u5728\u5f00\u59cb\u5236\u4f5c\u6e38\u620f\u4e4b\u524d\uff0c\u60a8\u9700\u8981\u5148\u5b89\u88c5Pygame\u5e93\u3002\u60a8\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6765\u5b89\u88c5Pygame\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install pygame<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>Pygame\u662f\u4e00\u4e2a\u5f00\u6e90\u7684Python\u5e93\uff0c\u4e13\u95e8\u7528\u4e8e\u521b\u5efa\u89c6\u9891\u6e38\u620f\u3002\u5b83\u4e3a\u5f00\u53d1\u8005\u63d0\u4f9b\u4e86\u56fe\u50cf\u3001\u58f0\u97f3\u3001\u4e8b\u4ef6\u5904\u7406\u548c\u78b0\u649e\u68c0\u6d4b\u7b49\u529f\u80fd\u3002<\/p>\n<\/p>\n<p><h2>\u4e8c\u3001\u8bbe\u7f6e\u6e38\u620f\u7a97\u53e3\u548c\u57fa\u672c\u5143\u7d20<\/h2>\n<\/p>\n<ol>\n<li><strong>\u521d\u59cb\u5316Pygame\uff1a<\/strong><\/li>\n<\/ol>\n<p><pre><code class=\"language-python\">import pygame<\/p>\n<p>import sys<\/p>\n<p>pygame.init()<\/p>\n<p>screen = pygame.display.set_mode((800, 600))<\/p>\n<p>pygame.display.set_caption(&quot;\u8d85\u7ea7\u739b\u4e3d&quot;)<\/p>\n<p>clock = pygame.time.Clock()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u521b\u5efa\u6e38\u620f\u4e3b\u5faa\u73af\uff1a<\/strong><\/li>\n<\/ol>\n<p><pre><code class=\"language-python\">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((0, 0, 0))  # \u6e05\u5c4f<\/p>\n<p>    pygame.display.flip()<\/p>\n<p>    clock.tick(60)<\/p>\n<p>pygame.quit()<\/p>\n<p>sys.exit()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h2>\u4e09\u3001\u52a0\u8f7d\u548c\u663e\u793a\u6e38\u620f\u89d2\u8272<\/h2>\n<\/p>\n<ol>\n<li><strong>\u52a0\u8f7d\u56fe\u50cf\u8d44\u6e90\uff1a<\/strong><\/li>\n<\/ol>\n<p><pre><code class=\"language-python\">mario_image = pygame.image.load(&#39;mario.png&#39;).convert_alpha()<\/p>\n<p>mario_rect = mario_image.get_rect()<\/p>\n<p>mario_rect.topleft = (100, 100)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u7ed8\u5236\u89d2\u8272\u5230\u5c4f\u5e55\u4e0a\uff1a<\/strong><\/li>\n<\/ol>\n<p><pre><code class=\"language-python\">screen.blit(mario_image, mario_rect)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h2>\u56db\u3001\u5904\u7406\u7528\u6237\u8f93\u5165<\/h2>\n<\/p>\n<ol>\n<li><strong>\u6355\u83b7\u952e\u76d8\u4e8b\u4ef6\uff1a<\/strong><\/li>\n<\/ol>\n<p><pre><code class=\"language-python\">keys = pygame.key.get_pressed()<\/p>\n<p>if keys[pygame.K_LEFT]:<\/p>\n<p>    mario_rect.x -= 5<\/p>\n<p>if keys[pygame.K_RIGHT]:<\/p>\n<p>    mario_rect.x += 5<\/p>\n<p>if keys[pygame.K_UP]:<\/p>\n<p>    mario_rect.y -= 5<\/p>\n<p>if keys[pygame.K_DOWN]:<\/p>\n<p>    mario_rect.y += 5<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u5728\u4e3b\u5faa\u73af\u4e2d\u66f4\u65b0\u89d2\u8272\u4f4d\u7f6e\uff1a<\/strong><\/li>\n<\/ol>\n<p><pre><code class=\"language-python\">screen.blit(mario_image, mario_rect)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h2>\u4e94\u3001\u6dfb\u52a0\u80cc\u666f\u548c\u5e73\u53f0<\/h2>\n<\/p>\n<ol>\n<li><strong>\u52a0\u8f7d\u80cc\u666f\u56fe\u50cf\uff1a<\/strong><\/li>\n<\/ol>\n<p><pre><code class=\"language-python\">background_image = pygame.image.load(&#39;background.png&#39;).convert()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u7ed8\u5236\u80cc\u666f\uff1a<\/strong><\/li>\n<\/ol>\n<p><pre><code class=\"language-python\">screen.blit(background_image, (0, 0))<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"3\">\n<li><strong>\u521b\u5efa\u5e73\u53f0\u7c7b\uff1a<\/strong><\/li>\n<\/ol>\n<p><pre><code class=\"language-python\">class Platform(pygame.sprite.Sprite):<\/p>\n<p>    def __init__(self, x, y):<\/p>\n<p>        super().__init__()<\/p>\n<p>        self.image = pygame.image.load(&#39;platform.png&#39;).convert_alpha()<\/p>\n<p>        self.rect = self.image.get_rect()<\/p>\n<p>        self.rect.topleft = (x, y)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"4\">\n<li><strong>\u5b9e\u4f8b\u5316\u5e73\u53f0\u5e76\u6dfb\u52a0\u5230\u7ec4\u4e2d\uff1a<\/strong><\/li>\n<\/ol>\n<p><pre><code class=\"language-python\">platforms = pygame.sprite.Group()<\/p>\n<p>platforms.add(Platform(200, 500))<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"5\">\n<li><strong>\u7ed8\u5236\u5e73\u53f0\uff1a<\/strong><\/li>\n<\/ol>\n<p><pre><code class=\"language-python\">platforms.draw(screen)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h2>\u516d\u3001\u78b0\u649e\u68c0\u6d4b\u4e0e\u7269\u7406\u5f15\u64ce<\/h2>\n<\/p>\n<ol>\n<li><strong>\u91cd\u529b\u548c\u8df3\u8dc3\uff1a<\/strong><\/li>\n<\/ol>\n<p><pre><code class=\"language-python\">gravity = 0.5<\/p>\n<p>mario_speed_y = 0<\/p>\n<p>on_ground = False<\/p>\n<p>if not on_ground:<\/p>\n<p>    mario_speed_y += gravity<\/p>\n<p>    mario_rect.y += mario_speed_y<\/p>\n<p>if mario_rect.y &gt;= 500:<\/p>\n<p>    mario_rect.y = 500<\/p>\n<p>    on_ground = True<\/p>\n<p>    mario_speed_y = 0<\/p>\n<p>else:<\/p>\n<p>    on_ground = False<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u78b0\u649e\u68c0\u6d4b\uff1a<\/strong><\/li>\n<\/ol>\n<p><pre><code class=\"language-python\">hits = pygame.sprite.spritecollide(mario, platforms, False)<\/p>\n<p>if hits:<\/p>\n<p>    mario_rect.y = hits[0].rect.top - mario_rect.height<\/p>\n<p>    mario_speed_y = 0<\/p>\n<p>    on_ground = True<\/p>\n<p>else:<\/p>\n<p>    on_ground = False<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h2>\u4e03\u3001\u6dfb\u52a0\u654c\u4eba\u548c\u969c\u788d\u7269<\/h2>\n<\/p>\n<ol>\n<li><strong>\u521b\u5efa\u654c\u4eba\u7c7b\uff1a<\/strong><\/li>\n<\/ol>\n<p><pre><code class=\"language-python\">class Enemy(pygame.sprite.Sprite):<\/p>\n<p>    def __init__(self, x, y):<\/p>\n<p>        super().__init__()<\/p>\n<p>        self.image = pygame.image.load(&#39;enemy.png&#39;).convert_alpha()<\/p>\n<p>        self.rect = self.image.get_rect()<\/p>\n<p>        self.rect.topleft = (x, y)<\/p>\n<p>        self.speed_x = -2<\/p>\n<p>    def update(self):<\/p>\n<p>        self.rect.x += self.speed_x<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u5b9e\u4f8b\u5316\u654c\u4eba\u5e76\u6dfb\u52a0\u5230\u7ec4\u4e2d\uff1a<\/strong><\/li>\n<\/ol>\n<p><pre><code class=\"language-python\">enemies = pygame.sprite.Group()<\/p>\n<p>enemies.add(Enemy(600, 500))<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"3\">\n<li><strong>\u66f4\u65b0\u548c\u7ed8\u5236\u654c\u4eba\uff1a<\/strong><\/li>\n<\/ol>\n<p><pre><code class=\"language-python\">enemies.update()<\/p>\n<p>enemies.draw(screen)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h2>\u516b\u3001\u6dfb\u52a0\u6e38\u620f\u72b6\u6001\u548c\u5f97\u5206\u7cfb\u7edf<\/h2>\n<\/p>\n<ol>\n<li><strong>\u521d\u59cb\u5316\u5f97\u5206\u548c\u5b57\u4f53\uff1a<\/strong><\/li>\n<\/ol>\n<p><pre><code class=\"language-python\">score = 0<\/p>\n<p>font = pygame.font.Font(None, 36)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u663e\u793a\u5f97\u5206\uff1a<\/strong><\/li>\n<\/ol>\n<p><pre><code class=\"language-python\">score_text = font.render(f&quot;Score: {score}&quot;, True, (255, 255, 255))<\/p>\n<p>screen.blit(score_text, (10, 10))<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"3\">\n<li><strong>\u66f4\u65b0\u5f97\u5206\uff1a<\/strong><\/li>\n<\/ol>\n<p><pre><code class=\"language-python\">if mario_rect.colliderect(coin_rect):<\/p>\n<p>    score += 10<\/p>\n<p>    coin_rect.x = random.randint(0, 800)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h2>\u4e5d\u3001\u6dfb\u52a0\u58f0\u97f3\u6548\u679c\u548c\u80cc\u666f\u97f3\u4e50<\/h2>\n<\/p>\n<ol>\n<li><strong>\u52a0\u8f7d\u58f0\u97f3\u548c\u97f3\u4e50\uff1a<\/strong><\/li>\n<\/ol>\n<p><pre><code class=\"language-python\">jump_sound = pygame.mixer.Sound(&#39;jump.wav&#39;)<\/p>\n<p>pygame.mixer.music.load(&#39;background.mp3&#39;)<\/p>\n<p>pygame.mixer.music.play(-1)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u64ad\u653e\u8df3\u8dc3\u58f0\u97f3\uff1a<\/strong><\/li>\n<\/ol>\n<p><pre><code class=\"language-python\">if keys[pygame.K_UP] and on_ground:<\/p>\n<p>    jump_sound.play()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h2>\u5341\u3001\u4f18\u5316\u548c\u53d1\u5e03\u6e38\u620f<\/h2>\n<\/p>\n<ol>\n<li><strong>\u4f18\u5316\u6e38\u620f\u6027\u80fd\uff1a<\/strong><\/li>\n<\/ol>\n<ul>\n<li><strong>\u51cf\u5c11\u56fe\u50cf\u5927\u5c0f\u548c\u6570\u91cf<\/strong><\/li>\n<li><strong>\u4f7f\u7528\u66f4\u9ad8\u6548\u7684\u6570\u636e\u7ed3\u6784<\/strong><\/li>\n<li><strong>\u907f\u514d\u4e0d\u5fc5\u8981\u7684\u8ba1\u7b97<\/strong><\/li>\n<\/ul>\n<ol start=\"2\">\n<li><strong>\u6253\u5305\u6e38\u620f\uff1a<\/strong><\/li>\n<\/ol>\n<ul>\n<li><strong>\u4f7f\u7528pyinstaller\u6216cx_Freeze\u5c06Python\u811a\u672c\u6253\u5305\u6210\u53ef\u6267\u884c\u6587\u4ef6<\/strong><\/li>\n<\/ul>\n<p><pre><code class=\"language-bash\">pip install pyinstaller<\/p>\n<p>pyinstaller --onefile mario_game.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u4e0a\u8ff0\u6b65\u9aa4\uff0c\u60a8\u53ef\u4ee5\u5728Python\u4e2d\u521b\u5efa\u4e00\u4e2a\u7b80\u5355\u7684\u8d85\u7ea7\u739b\u4e3d\u6e38\u620f\u3002\u5f53\u7136\uff0c\u8fd9\u53ea\u662f\u4e00\u4e2a\u57fa\u7840\u793a\u4f8b\uff0c\u5b9e\u9645\u6e38\u620f\u5f00\u53d1\u4e2d\u8fd8\u6709\u5f88\u591a\u7ec6\u8282\u9700\u8981\u5904\u7406\uff0c\u6bd4\u5982\u66f4\u591a\u7684\u5173\u5361\u8bbe\u8ba1\u3001\u66f4\u590d\u6742\u7684\u78b0\u649e\u68c0\u6d4b\u3001\u52a8\u753b\u6548\u679c\u7b49\u3002\u5e0c\u671b\u672c\u6587\u80fd\u5e2e\u52a9\u60a8\u66f4\u597d\u5730\u7406\u89e3\u5982\u4f55\u5728Python\u4e2d\u5236\u4f5c\u8d85\u7ea7\u739b\u4e3d\uff0c\u5e76\u6fc0\u53d1\u60a8\u7684\u521b\u9020\u529b\u53bb\u5f00\u53d1\u66f4\u591a\u6709\u8da3\u7684\u6e38\u620f\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u521b\u5efa\u4e00\u4e2a\u7c7b\u4f3c\u8d85\u7ea7\u739b\u4e3d\u7684\u6e38\u620f\uff1f<\/strong><br \/>\u5728Python\u4e2d\u521b\u5efa\u4e00\u4e2a\u7c7b\u4f3c\u8d85\u7ea7\u739b\u4e3d\u7684\u6e38\u620f\uff0c\u9996\u5148\u9700\u8981\u9009\u62e9\u4e00\u4e2a\u5408\u9002\u7684\u6e38\u620f\u5f00\u53d1\u5e93\u3002Pygame\u662f\u4e00\u4e2a\u975e\u5e38\u6d41\u884c\u4e14\u6613\u4e8e\u4f7f\u7528\u7684\u5e93\uff0c\u9002\u5408\u521d\u5b66\u8005\u3002\u4f60\u9700\u8981\u5b66\u4e60\u5982\u4f55\u4f7f\u7528Pygame\u6765\u5904\u7406\u56fe\u5f62\u3001\u58f0\u97f3\u548c\u7528\u6237\u8f93\u5165\u3002\u63a5\u4e0b\u6765\uff0c\u8bbe\u8ba1\u6e38\u620f\u7684\u57fa\u672c\u6846\u67b6\uff0c\u5305\u62ec\u89d2\u8272\u3001\u654c\u4eba\u3001\u5173\u5361\u548c\u78b0\u649e\u68c0\u6d4b\u7b49\u903b\u8f91\u3002\u901a\u8fc7\u9010\u6b65\u6dfb\u52a0\u529f\u80fd\uff0c\u80fd\u591f\u9010\u6e10\u5b8c\u5584\u4f60\u7684\u6e38\u620f\u3002<\/p>\n<p><strong>\u6211\u8be5\u5982\u4f55\u5904\u7406\u6e38\u620f\u4e2d\u7684\u89d2\u8272\u52a8\u753b\uff1f<\/strong><br \/>\u89d2\u8272\u52a8\u753b\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528\u5e27\u52a8\u753b\u6765\u5b9e\u73b0\u3002\u5728Pygame\u4e2d\uff0c\u53ef\u4ee5\u5c06\u89d2\u8272\u7684\u4e0d\u540c\u72b6\u6001\uff08\u5982\u884c\u8d70\u3001\u8df3\u8dc3\u7b49\uff09\u5206\u6210\u4e0d\u540c\u7684\u56fe\u50cf\u5e27\uff0c\u5e76\u6839\u636e\u6e38\u620f\u4e2d\u7684\u6761\u4ef6\u5207\u6362\u8fd9\u4e9b\u5e27\u3002\u4f60\u9700\u8981\u7f16\u5199\u903b\u8f91\u6765\u68c0\u6d4b\u89d2\u8272\u7684\u72b6\u6001\uff0c\u5e76\u76f8\u5e94\u5730\u66f4\u65b0\u663e\u793a\u7684\u56fe\u50cf\u3002\u8fd9\u79cd\u65b9\u5f0f\u5c06\u4f7f\u89d2\u8272\u770b\u8d77\u6765\u66f4\u751f\u52a8\u548c\u771f\u5b9e\u3002<\/p>\n<p><strong>\u5728\u5236\u4f5c\u6e38\u620f\u65f6\uff0c\u5982\u4f55\u8bbe\u8ba1\u6e38\u620f\u5173\u5361\u548c\u654c\u4eba\uff1f<\/strong><br \/>\u8bbe\u8ba1\u6e38\u620f\u5173\u5361\u65f6\uff0c\u8003\u8651\u5230\u96be\u5ea6\u9010\u6e10\u589e\u52a0\u662f\u975e\u5e38\u91cd\u8981\u7684\u3002\u53ef\u4ee5\u5148\u4ece\u7b80\u5355\u7684\u969c\u788d\u548c\u654c\u4eba\u5f00\u59cb\uff0c\u7136\u540e\u9010\u6e10\u5f15\u5165\u66f4\u590d\u6742\u7684\u5143\u7d20\u3002\u5728Pygame\u4e2d\uff0c\u4f7f\u7528\u7f51\u683c\u7cfb\u7edf\u53ef\u4ee5\u5e2e\u52a9\u4f60\u5e03\u5c40\u5173\u5361\u3002\u654c\u4eba\u7684\u884c\u4e3a\u53ef\u4ee5\u901a\u8fc7\u7f16\u5199\u7b80\u5355\u7684<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>\u6765\u5b9e\u73b0\uff0c\u6bd4\u5982\u6cbf\u7740\u56fa\u5b9a\u8def\u5f84\u79fb\u52a8\u6216\u5bf9\u73a9\u5bb6\u7684\u4f4d\u7f6e\u505a\u51fa\u53cd\u5e94\u3002\u6d4b\u8bd5\u6bcf\u4e2a\u5173\u5361\u7684\u53ef\u73a9\u6027\u4e5f\u662f\u5173\u952e\uff0c\u786e\u4fdd\u73a9\u5bb6\u5728\u6311\u6218\u7684\u540c\u65f6\u4e0d\u4f1a\u611f\u5230\u6cae\u4e27\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u8981\u5728Python\u4e2d\u5236\u4f5c\u8d85\u7ea7\u739b\u4e3d\uff0c\u53ef\u4ee5\u4f7f\u7528Pygame\u5e93\u3001Sprite\u7c7b\u3001\u4e8b\u4ef6\u5904\u7406\u3001\u78b0\u649e\u68c0\u6d4b\u3002\u5176\u4e2d\uff0c\u4f7f\u7528Pyga [&hellip;]","protected":false},"author":3,"featured_media":1041126,"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\/1041108"}],"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=1041108"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1041108\/revisions"}],"predecessor-version":[{"id":1041127,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1041108\/revisions\/1041127"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1041126"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1041108"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1041108"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1041108"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}