{"id":1083733,"date":"2025-01-08T13:00:53","date_gmt":"2025-01-08T05:00:53","guid":{"rendered":""},"modified":"2025-01-08T13:00:55","modified_gmt":"2025-01-08T05:00:55","slug":"%e7%94%a8python%e5%a6%82%e4%bd%95%e5%81%9a%e7%8e%af%e4%bf%9d%e5%b0%8f%e6%b8%b8%e6%88%8f-2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1083733.html","title":{"rendered":"\u7528python\u5982\u4f55\u505a\u73af\u4fdd\u5c0f\u6e38\u620f"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24194138\/91b57675-0d4f-46c5-a20d-33917affe5a0.webp\" alt=\"\u7528python\u5982\u4f55\u505a\u73af\u4fdd\u5c0f\u6e38\u620f\" \/><\/p>\n<p><p> <strong>\u7528python\u505a\u73af\u4fdd\u5c0f\u6e38\u620f\u7684\u65b9\u6cd5\u5305\u62ec\uff1a\u9009\u62e9\u5408\u9002\u7684\u6e38\u620f\u5f00\u53d1\u6846\u67b6\u3001\u8bbe\u8ba1\u6e38\u620f\u903b\u8f91\u3001\u5f00\u53d1\u6e38\u620f\u754c\u9762\u548c\u529f\u80fd\u3001\u6d4b\u8bd5\u548c\u4f18\u5316\u6e38\u620f\u6027\u80fd\u3001\u6dfb\u52a0\u73af\u4fdd\u6559\u80b2\u5185\u5bb9\u3002\u5728\u5f00\u53d1\u8fc7\u7a0b\u4e2d\uff0c\u53ef\u4ee5\u9009\u62e9Pygame\u5e93\u4f5c\u4e3a\u4e3b\u8981\u5de5\u5177\u3002<\/strong><\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u9009\u62e9\u5408\u9002\u7684\u6e38\u620f\u5f00\u53d1\u6846\u67b6<\/h3>\n<\/p>\n<p><p>Python\u6709\u591a\u4e2a\u6e38\u620f\u5f00\u53d1\u6846\u67b6\u53ef\u4f9b\u9009\u62e9\uff0c\u5176\u4e2dPygame\u662f\u6700\u53d7\u6b22\u8fce\u7684\u4e00\u4e2a\u3002Pygame\u662f\u4e00\u4e2a\u5f00\u6e90\u7684\u5e93\uff0c\u63d0\u4f9b\u4e86\u7b80\u5355\u7684\u63a5\u53e3\u6765\u5f00\u53d1\u591a\u5a92\u4f53\u5e94\u7528\uff0c\u5982\u89c6\u9891\u6e38\u620f\u3002<\/p>\n<\/p>\n<p><h4>1.1 \u5b89\u88c5Pygame<\/h4>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u4f60\u9700\u8981\u5b89\u88c5Pygame\u5e93\uff0c\u53ef\u4ee5\u4f7f\u7528pip\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>1.2 \u521d\u59cb\u8bbe\u7f6e<\/h4>\n<\/p>\n<p><p>\u4e00\u65e6\u5b89\u88c5\u5b8c\u6210\uff0c\u5c31\u53ef\u4ee5\u5f00\u59cb\u521b\u5efa\u6e38\u620f\u7684\u57fa\u672c\u6846\u67b6\u3002\u4e00\u4e2a\u7b80\u5355\u7684Pygame\u7a0b\u5e8f\u7684\u57fa\u672c\u7ed3\u6784\u5982\u4e0b\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((800, 600))<\/p>\n<h2><strong>\u8bbe\u7f6e\u7a97\u53e3\u6807\u9898<\/strong><\/h2>\n<p>pygame.display.set_caption(&#39;\u73af\u4fdd\u5c0f\u6e38\u620f&#39;)<\/p>\n<h2><strong>\u6e38\u620f\u4e3b\u5faa\u73af<\/strong><\/h2>\n<p>while True:<\/p>\n<p>    for event in pygame.event.get():<\/p>\n<p>        if event.type == pygame.QUIT:<\/p>\n<p>            pygame.quit()<\/p>\n<p>            sys.exit()<\/p>\n<p>    # \u66f4\u65b0\u663e\u793a<\/p>\n<p>    pygame.display.flip()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e8c\u3001\u8bbe\u8ba1\u6e38\u620f\u903b\u8f91<\/h3>\n<\/p>\n<p><p>\u8bbe\u8ba1\u6e38\u620f\u7684\u903b\u8f91\u662f\u5f00\u53d1\u73af\u4fdd\u5c0f\u6e38\u620f\u7684\u6838\u5fc3\u90e8\u5206\u3002\u4f60\u9700\u8981\u8003\u8651\u6e38\u620f\u7684\u76ee\u6807\u3001\u73a9\u5bb6\u7684\u884c\u4e3a\u4ee5\u53ca\u5982\u4f55\u901a\u8fc7\u6e38\u620f\u4f20\u9012\u73af\u4fdd\u6559\u80b2\u7684\u4fe1\u606f\u3002<\/p>\n<\/p>\n<p><h4>2.1 \u6e38\u620f\u76ee\u6807\u548c\u73a9\u6cd5<\/h4>\n<\/p>\n<p><p>\u5047\u8bbe\u6211\u4eec\u7684\u73af\u4fdd\u5c0f\u6e38\u620f\u662f\u4e00\u4e2a\u5783\u573e\u5206\u7c7b\u7684\u6e38\u620f\u3002\u73a9\u5bb6\u9700\u8981\u5c06\u4e0d\u540c\u7c7b\u578b\u7684\u5783\u573e\u62d6\u653e\u5230\u76f8\u5e94\u7684\u5783\u573e\u6876\u4e2d\uff0c\u4ee5\u6b64\u6765\u5b66\u4e60\u5982\u4f55\u6b63\u786e\u5206\u7c7b\u5783\u573e\u3002<\/p>\n<\/p>\n<p><h4>2.2 \u521b\u5efa\u6e38\u620f\u5143\u7d20<\/h4>\n<\/p>\n<p><p>\u6e38\u620f\u7684\u57fa\u672c\u5143\u7d20\u5305\u62ec\u5783\u573e\u3001\u5783\u573e\u6876\u548c\u80cc\u666f\u3002\u4f60\u9700\u8981\u4e3a\u6bcf\u4e2a\u5143\u7d20\u521b\u5efa\u5bf9\u5e94\u7684\u7c7b\uff0c\u5e76\u5b9e\u73b0\u5176\u884c\u4e3a\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">class Trash:<\/p>\n<p>    def __init__(self, image, x, y, trash_type):<\/p>\n<p>        self.image = image<\/p>\n<p>        self.x = x<\/p>\n<p>        self.y = y<\/p>\n<p>        self.trash_type = trash_type<\/p>\n<p>        self.rect = self.image.get_rect(topleft=(self.x, self.y))<\/p>\n<p>    def draw(self, screen):<\/p>\n<p>        screen.blit(self.image, (self.x, self.y))<\/p>\n<p>    def is_collided_with(self, sprite):<\/p>\n<p>        return self.rect.colliderect(sprite.rect)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001\u5f00\u53d1\u6e38\u620f\u754c\u9762\u548c\u529f\u80fd<\/h3>\n<\/p>\n<p><p>\u6e38\u620f\u754c\u9762\u548c\u529f\u80fd\u5305\u62ec\u80cc\u666f\u3001\u5783\u573e\u6876\u3001\u5783\u573e\u7684\u7ed8\u5236\u548c\u62d6\u653e\u529f\u80fd\u3002\u8fd9\u4e9b\u529f\u80fd\u53ef\u4ee5\u901a\u8fc7Pygame\u7684\u7ed8\u5236\u548c\u4e8b\u4ef6\u5904\u7406\u673a\u5236\u6765\u5b9e\u73b0\u3002<\/p>\n<\/p>\n<p><h4>3.1 \u7ed8\u5236\u80cc\u666f\u548c\u5783\u573e\u6876<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">background = pygame.image.load(&#39;background.png&#39;)<\/p>\n<p>trash_bin_images = {<\/p>\n<p>    &#39;recyclable&#39;: pygame.image.load(&#39;recyclable_bin.png&#39;),<\/p>\n<p>    &#39;non-recyclable&#39;: pygame.image.load(&#39;non_recyclable_bin.png&#39;)<\/p>\n<p>}<\/p>\n<p>class TrashBin:<\/p>\n<p>    def __init__(self, image, x, y, bin_type):<\/p>\n<p>        self.image = image<\/p>\n<p>        self.x = x<\/p>\n<p>        self.y = y<\/p>\n<p>        self.bin_type = bin_type<\/p>\n<p>        self.rect = self.image.get_rect(topleft=(self.x, self.y))<\/p>\n<p>    def draw(self, screen):<\/p>\n<p>        screen.blit(self.image, (self.x, self.y))<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3.2 \u5b9e\u73b0\u5783\u573e\u62d6\u653e\u529f\u80fd<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">dragging = False<\/p>\n<p>selected_trash = None<\/p>\n<p>def handle_trash_drag(events, trashes):<\/p>\n<p>    global dragging, selected_trash<\/p>\n<p>    for event in events:<\/p>\n<p>        if event.type == pygame.MOUSEBUTTONDOWN:<\/p>\n<p>            for trash in trashes:<\/p>\n<p>                if trash.rect.collidepoint(event.pos):<\/p>\n<p>                    dragging = True<\/p>\n<p>                    selected_trash = trash<\/p>\n<p>                    break<\/p>\n<p>        elif event.type == pygame.MOUSEBUTTONUP:<\/p>\n<p>            dragging = False<\/p>\n<p>            selected_trash = None<\/p>\n<p>        elif event.type == pygame.MOUSEMOTION:<\/p>\n<p>            if dragging and selected_trash:<\/p>\n<p>                selected_trash.x, selected_trash.y = event.pos<\/p>\n<p>                selected_trash.rect.topleft = event.pos<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u6d4b\u8bd5\u548c\u4f18\u5316\u6e38\u620f\u6027\u80fd<\/h3>\n<\/p>\n<p><p>\u6d4b\u8bd5\u548c\u4f18\u5316\u662f\u6e38\u620f\u5f00\u53d1\u8fc7\u7a0b\u4e2d\u4e0d\u53ef\u5ffd\u89c6\u7684\u4e00\u90e8\u5206\u3002\u4f60\u9700\u8981\u786e\u4fdd\u6e38\u620f\u5728\u4e0d\u540c\u8bbe\u5907\u4e0a\u8fd0\u884c\u6d41\u7545\uff0c\u5e76\u4e14\u6ca1\u6709\u660e\u663e\u7684bug\u3002<\/p>\n<\/p>\n<p><h4>4.1 \u6d4b\u8bd5\u6e38\u620f\u6027\u80fd<\/h4>\n<\/p>\n<p><p>\u4f60\u53ef\u4ee5\u4f7f\u7528Pygame\u7684\u65f6\u95f4\u6a21\u5757\u6765\u6d4b\u91cf\u6e38\u620f\u7684\u5e27\u7387\uff0c\u5e76\u6839\u636e\u9700\u8981\u8fdb\u884c\u4f18\u5316\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">clock = pygame.time.Clock()<\/p>\n<p>while True:<\/p>\n<p>    handle_trash_drag(pygame.event.get(), trashes)<\/p>\n<p>    # \u7ed8\u5236\u80cc\u666f\u548c\u6e38\u620f\u5143\u7d20<\/p>\n<p>    screen.blit(background, (0, 0))<\/p>\n<p>    for bin in bins:<\/p>\n<p>        bin.draw(screen)<\/p>\n<p>    for trash in trashes:<\/p>\n<p>        trash.draw(screen)<\/p>\n<p>    pygame.display.flip()<\/p>\n<p>    # \u63a7\u5236\u5e27\u7387<\/p>\n<p>    clock.tick(60)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>4.2 \u4f18\u5316\u6e38\u620f\u6027\u80fd<\/h4>\n<\/p>\n<p><p>\u4f18\u5316\u6027\u80fd\u53ef\u4ee5\u901a\u8fc7\u51cf\u5c11\u4e0d\u5fc5\u8981\u7684\u8ba1\u7b97\u548c\u7ed8\u5236\u64cd\u4f5c\u6765\u5b9e\u73b0\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528Pygame\u7684\u77e9\u5f62\u64cd\u4f5c\u6765\u68c0\u6d4b\u548c\u5904\u7406\u78b0\u649e\uff0c\u4ece\u800c\u63d0\u9ad8\u6e38\u620f\u7684\u6548\u7387\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u6dfb\u52a0\u73af\u4fdd\u6559\u80b2\u5185\u5bb9<\/h3>\n<\/p>\n<p><p>\u6700\u540e\uff0c\u4e5f\u662f\u6700\u91cd\u8981\u7684\u4e00\u6b65\uff0c\u5c31\u662f\u5728\u6e38\u620f\u4e2d\u6dfb\u52a0\u73af\u4fdd\u6559\u80b2\u5185\u5bb9\u3002\u4f60\u53ef\u4ee5\u5728\u6e38\u620f\u4e2d\u52a0\u5165\u4e00\u4e9b\u5173\u4e8e\u5783\u573e\u5206\u7c7b\u7684\u5c0f\u77e5\u8bc6\uff0c\u5f53\u73a9\u5bb6\u6b63\u786e\u5206\u7c7b\u5783\u573e\u65f6\uff0c\u663e\u793a\u76f8\u5173\u7684\u63d0\u793a\u4fe1\u606f\u3002<\/p>\n<\/p>\n<p><h4>5.1 \u663e\u793a\u63d0\u793a\u4fe1\u606f<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">font = pygame.font.Font(None, 36)<\/p>\n<p>def show_message(screen, message, x, y):<\/p>\n<p>    text = font.render(message, True, (0, 255, 0))<\/p>\n<p>    screen.blit(text, (x, y))<\/p>\n<p>while True:<\/p>\n<p>    handle_trash_drag(pygame.event.get(), trashes)<\/p>\n<p>    # \u68c0\u6d4b\u5783\u573e\u662f\u5426\u653e\u5165\u6b63\u786e\u7684\u5783\u573e\u6876<\/p>\n<p>    for trash in trashes:<\/p>\n<p>        for bin in bins:<\/p>\n<p>            if trash.is_collided_with(bin) and trash.trash_type == bin.bin_type:<\/p>\n<p>                show_message(screen, &#39;\u6b63\u786e\u5206\u7c7b\uff01&#39;, 100, 100)<\/p>\n<p>                break<\/p>\n<p>    # \u7ed8\u5236\u80cc\u666f\u548c\u6e38\u620f\u5143\u7d20<\/p>\n<p>    screen.blit(background, (0, 0))<\/p>\n<p>    for bin in bins:<\/p>\n<p>        bin.draw(screen)<\/p>\n<p>    for trash in trashes:<\/p>\n<p>        trash.draw(screen)<\/p>\n<p>    pygame.display.flip()<\/p>\n<p>    clock.tick(60)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528Python\u548cPygame\u5f00\u53d1\u4e00\u4e2a\u7b80\u5355\u7684\u73af\u4fdd\u5c0f\u6e38\u620f\u3002\u5728\u5f00\u53d1\u8fc7\u7a0b\u4e2d\uff0c\u4e0d\u4ec5\u53ef\u4ee5\u5b66\u4e60\u5230\u7f16\u7a0b\u548c\u6e38\u620f\u5f00\u53d1\u7684\u77e5\u8bc6\uff0c\u8fd8\u53ef\u4ee5\u901a\u8fc7\u6e38\u620f\u5411\u73a9\u5bb6\u4f20\u9012\u73af\u4fdd\u6559\u80b2\u7684\u4fe1\u606f\u3002\u5e0c\u671b\u8fd9\u7bc7\u6587\u7ae0\u80fd\u5bf9\u4f60\u6709\u6240\u5e2e\u52a9\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u7528Python\u521b\u5efa\u4e00\u4e2a\u73af\u4fdd\u4e3b\u9898\u7684\u5c0f\u6e38\u620f\uff1f<\/strong><br \/>\u5728\u521b\u5efa\u4e00\u4e2a\u73af\u4fdd\u4e3b\u9898\u7684\u5c0f\u6e38\u620f\u65f6\uff0c\u53ef\u4ee5\u8003\u8651\u4f7f\u7528Pygame\u5e93\uff0c\u8fd9\u662f\u4e00\u4e2a\u975e\u5e38\u9002\u5408\u5236\u4f5c2D\u6e38\u620f\u7684Python\u5e93\u3002\u60a8\u53ef\u4ee5\u8bbe\u8ba1\u4e00\u4e2a\u6e38\u620f\u573a\u666f\uff0c\u4f8b\u5982\u8ba9\u73a9\u5bb6\u901a\u8fc7\u6536\u96c6\u53ef\u56de\u6536\u7269\u54c1\u6765\u5f97\u5206\uff0c\u540c\u65f6\u907f\u514d\u78b0\u5230\u6c61\u67d3\u7269\u3002\u901a\u8fc7\u7b80\u5355\u7684\u56fe\u5f62\u548c\u52a8\u753b\uff0c\u53ef\u4ee5\u4f7f\u6e38\u620f\u66f4\u5177\u5438\u5f15\u529b\u3002<\/p>\n<p><strong>\u6709\u4ec0\u4e48\u5efa\u8bae\u53ef\u4ee5\u63d0\u9ad8\u6e38\u620f\u7684\u73af\u4fdd\u6559\u80b2\u610f\u4e49\uff1f<\/strong><br \/>\u53ef\u4ee5\u5728\u6e38\u620f\u4e2d\u52a0\u5165\u73af\u4fdd\u77e5\u8bc6\u7684\u63d0\u793a\uff0c\u6bd4\u5982\u5728\u73a9\u5bb6\u6210\u529f\u6536\u96c6\u7269\u54c1\u540e\u5f39\u51fa\u5c0f\u77e5\u8bc6\u5361\u7247\uff0c\u4ecb\u7ecd\u8be5\u7269\u54c1\u7684\u56de\u6536\u65b9\u5f0f\u6216\u5176\u5bf9\u73af\u5883\u7684\u5f71\u54cd\u3002\u6b64\u5916\uff0c\u8bbe\u7f6e\u5173\u5361\u4e2d\u51fa\u73b0\u7684\u7269\u54c1\u4e0e\u73b0\u5b9e\u4e2d\u7684\u73af\u4fdd\u95ee\u9898\u76f8\u7ed3\u5408\uff0c\u4f8b\u5982\u5851\u6599\u74f6\u3001\u7eb8\u5f20\u3001\u7535\u5b50\u5783\u573e\u7b49\uff0c\u8ba9\u73a9\u5bb6\u5728\u4eab\u53d7\u6e38\u620f\u7684\u540c\u65f6\u5b66\u4e60\u73af\u4fdd\u77e5\u8bc6\u3002<\/p>\n<p><strong>\u5982\u4f55\u8ba9\u6211\u7684\u6e38\u620f\u9002\u5408\u4e0d\u540c\u5e74\u9f84\u6bb5\u7684\u73a9\u5bb6\uff1f<\/strong><br \/>\u53ef\u4ee5\u901a\u8fc7\u8c03\u6574\u6e38\u620f\u7684\u96be\u5ea6\u548c\u754c\u9762\u8bbe\u8ba1\u6765\u6ee1\u8db3\u4e0d\u540c\u5e74\u9f84\u6bb5\u7684\u9700\u6c42\u3002\u4f8b\u5982\uff0c\u8bbe\u5b9a\u7b80\u5355\u7684\u64cd\u4f5c\u65b9\u5f0f\u548c\u660e\u4eae\u7684\u8272\u5f69\u6765\u5438\u5f15\u513f\u7ae5\uff0c\u540c\u65f6\u4e3a\u6210\u5e74\u4eba\u8bbe\u8ba1\u66f4\u590d\u6742\u7684\u5173\u5361\u548c\u7b56\u7565\u5143\u7d20\u3002\u6b64\u5916\uff0c\u63d0\u4f9b\u4e0d\u540c\u7684\u6e38\u620f\u6a21\u5f0f\uff0c\u6bd4\u5982\u5feb\u901f\u6a21\u5f0f\u548c\u6311\u6218\u6a21\u5f0f\uff0c\u4ee5\u4fbf\u8ba9\u4e0d\u540c\u6c34\u5e73\u7684\u73a9\u5bb6\u90fd\u80fd\u627e\u5230\u4e50\u8da3\u3002<\/p>\n<p><strong>\u6211\u53ef\u4ee5\u5728\u54ea\u91cc\u627e\u5230Python\u6e38\u620f\u5f00\u53d1\u7684\u5b66\u4e60\u8d44\u6e90\uff1f<\/strong><br \/>\u7f51\u7edc\u4e0a\u6709\u8bb8\u591a\u4f18\u8d28\u8d44\u6e90\u4f9b\u5b66\u4e60Python\u6e38\u620f\u5f00\u53d1\uff0c\u4f8b\u5982\u5b98\u65b9Pygame\u6587\u6863\u3001YouTube\u4e0a\u7684\u6559\u7a0b\u89c6\u9891\u3001\u4ee5\u53ca\u4e00\u4e9b\u4e13\u95e8\u7684\u7f16\u7a0b\u5b66\u4e60\u5e73\u53f0\u5982Codecademy\u3001Coursera\u548cUdemy\u3002\u6b64\u5916\uff0c\u52a0\u5165\u4e00\u4e9b\u7f16\u7a0b\u793e\u533a\u548c\u8bba\u575b\uff0c\u5982Stack Overflow\u548cReddit\u7684\u76f8\u5173\u677f\u5757\uff0c\u53ef\u4ee5\u83b7\u53d6\u66f4\u591a\u7684\u5e2e\u52a9\u548c\u7075\u611f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u7528python\u505a\u73af\u4fdd\u5c0f\u6e38\u620f\u7684\u65b9\u6cd5\u5305\u62ec\uff1a\u9009\u62e9\u5408\u9002\u7684\u6e38\u620f\u5f00\u53d1\u6846\u67b6\u3001\u8bbe\u8ba1\u6e38\u620f\u903b\u8f91\u3001\u5f00\u53d1\u6e38\u620f\u754c\u9762\u548c\u529f\u80fd\u3001\u6d4b\u8bd5\u548c\u4f18\u5316\u6e38\u620f [&hellip;]","protected":false},"author":3,"featured_media":1083740,"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\/1083733"}],"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=1083733"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1083733\/revisions"}],"predecessor-version":[{"id":1083742,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1083733\/revisions\/1083742"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1083740"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1083733"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1083733"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1083733"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}