{"id":3144,"date":"2025-06-03T12:00:14","date_gmt":"2025-06-03T04:00:14","guid":{"rendered":"https:\/\/www.wunen.com\/index.php\/2025\/06\/03\/%e4%b8%80%e4%b8%aapython%e7%ae%80%e5%8d%95%e7%9a%84%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/"},"modified":"2025-06-03T12:00:14","modified_gmt":"2025-06-03T04:00:14","slug":"%e4%b8%80%e4%b8%aapython%e7%ae%80%e5%8d%95%e7%9a%84%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f","status":"publish","type":"post","link":"http:\/\/www.wunen.com\/index.php\/2025\/06\/03\/%e4%b8%80%e4%b8%aapython%e7%ae%80%e5%8d%95%e7%9a%84%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/","title":{"rendered":"\u4e00\u4e2apython\u7b80\u5355\u7684\u5c04\u51fb\u6e38\u620f"},"content":{"rendered":"<div class=\"article_content clearfix\" id=\"article_content\">\n <link href=\"https:\/\/csdnimg.cn\/release\/blogv2\/dist\/mdeditor\/css\/editerView\/kdoc_html_views-1a98987dfd.css\" rel=\"stylesheet\"\/>\n <link href=\"https:\/\/csdnimg.cn\/release\/blogv2\/dist\/mdeditor\/css\/editerView\/ck_htmledit_views-704d5b9767.css\" rel=\"stylesheet\"\/>\n<div class=\"htmledit_views atom-one-light\" id=\"content_views\">\n<pre><code>import pygame\nimport random\nimport sys\n\n# \u521d\u59cb\u5316\npygame.init()\nscreen = pygame.display.set_mode((800, 600))\npygame.display.set_caption(\"\u7b80\u5355\u5c04\u51fb\u6e38\u620f\")\nclock = pygame.time.Clock()\n\n# \u73a9\u5bb6\nclass Player(pygame.sprite.Sprite):\n    def __init__(self):\n        super().__init__()\n        self.image = pygame.Surface((50, 40))\n        self.image.fill((0, 255, 0))\n        self.rect = self.image.get_rect()\n        self.rect.centerx = screen.get_width() \/\/ 2\n        self.rect.bottom = screen.get_height() - 10\n        self.speed = 8\n    \n    def update(self):\n        keys = pygame.key.get_pressed()\n        if keys[pygame.K_LEFT] and self.rect.left &gt; 0:\n            self.rect.x -= self.speed\n        if keys[pygame.K_RIGHT] and self.rect.right &lt; screen.get_width():\n            self.rect.x += self.speed\n    \n    def shoot(self):\n        bullet = Bullet(self.rect.centerx, self.rect.top)\n        all_sprites.add(bullet)\n        bullets.add(bullet)\n\n# \u5b50\u5f39\nclass Bullet(pygame.sprite.Sprite):\n    def __init__(self, x, y):\n        super().__init__()\n        self.image = pygame.Surface((5, 10))\n        self.image.fill((255, 255, 0))\n        self.rect = self.image.get_rect()\n        self.rect.centerx = x\n        self.rect.bottom = y\n        self.speed = -10\n    \n    def update(self):\n        self.rect.y += self.speed\n        if self.rect.bottom &lt; 0:\n            self.kill()\n\n# \u654c\u673a\nclass Enemy(pygame.sprite.Sprite):\n    def __init__(self):\n        super().__init__()\n        self.image = pygame.Surface((30, 30))\n        self.image.fill((255, 0, 0))\n        self.rect = self.image.get_rect()\n        self.rect.x = random.randrange(screen.get_width() - self.rect.width)\n        self.rect.y = random.randrange(-100, -40)\n        self.speedy = random.randrange(1, 4)\n    \n    def update(self):\n        self.rect.y += self.speedy\n        if self.rect.top &gt; screen.get_height():\n            self.rect.x = random.randrange(screen.get_width() - self.rect.width)\n            self.rect.y = random.randrange(-100, -40)\n            self.speedy = random.randrange(1, 4)\n\n# \u521b\u5efa\u7cbe\u7075\u7ec4\nall_sprites = pygame.sprite.Group()\nenemies = pygame.sprite.Group()\nbullets = pygame.sprite.Group()\nplayer = Player()\nall_sprites.add(player)\n\n# \u751f\u6210\u654c\u673a\nfor i in range(8):\n    e = Enemy()\n    all_sprites.add(e)\n    enemies.add(e)\n\n# \u5206\u6570\nscore = 0\nfont = pygame.font.SysFont(None, 36)\n\n# \u6e38\u620f\u4e3b\u5faa\u73af\nrunning = True\nwhile running:\n    # \u4fdd\u6301\u6e38\u620f\u8fd0\u884c\u901f\u5ea6\n    clock.tick(60)\n    \n    # \u4e8b\u4ef6\u5904\u7406\n    for event in pygame.event.get():\n        if event.type == pygame.QUIT:\n            running = False\n        elif event.type == pygame.KEYDOWN:\n            if event.key == pygame.K_SPACE:\n                player.shoot()\n    \n    # \u66f4\u65b0\n    all_sprites.update()\n    \n    # \u68c0\u6d4b\u5b50\u5f39\u548c\u654c\u673a\u7684\u78b0\u649e\n    hits = pygame.sprite.groupcollide(bullets, enemies, True, True)\n    for hit in hits:\n        score += 1\n        e = Enemy()\n        all_sprites.add(e)\n        enemies.add(e)\n    \n    # \u68c0\u6d4b\u73a9\u5bb6\u548c\u654c\u673a\u7684\u78b0\u649e\n    hits = pygame.sprite.spritecollide(player, enemies, False)\n    if hits:\n        running = False\n    \n    # \u6e32\u67d3\n    screen.fill((0, 0, 0))\n    all_sprites.draw(screen)\n    \n    # \u663e\u793a\u5206\u6570\n    score_text = font.render(f\"\u5206\u6570: {score}\", True, (255, 255, 255))\n    screen.blit(score_text, (10, 10))\n    \n    # \u5237\u65b0\u5c4f\u5e55\n    pygame.display.flip()\n\n# \u9000\u51fa\u6e38\u620f\npygame.quit()\nsys.exit()<\/code><\/pre>\n<\/p><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>import pygame import random import sys # \u521d\u59cb\u5316 pygame.ini [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":215,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23],"tags":[],"class_list":["post-3144","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-23"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u4e00\u4e2apython\u7b80\u5355\u7684\u5c04\u51fb\u6e38\u620f - \u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wunen.com\/index.php\/2025\/06\/03\/\u4e00\u4e2apython\u7b80\u5355\u7684\u5c04\u51fb\u6e38\u620f\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u4e00\u4e2apython\u7b80\u5355\u7684\u5c04\u51fb\u6e38\u620f - \u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51\" \/>\n<meta property=\"og:description\" content=\"import pygame import random import sys # \u521d\u59cb\u5316 pygame.ini [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wunen.com\/index.php\/2025\/06\/03\/\u4e00\u4e2apython\u7b80\u5355\u7684\u5c04\u51fb\u6e38\u620f\/\" \/>\n<meta property=\"og:site_name\" content=\"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51\" \/>\n<meta property=\"article:published_time\" content=\"2025-06-03T04:00:14+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"260\" \/>\n\t<meta property=\"og:image:height\" content=\"180\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"admin@wunen\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin@wunen\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.wunen.com\/index.php\/2025\/06\/03\/%e4%b8%80%e4%b8%aapython%e7%ae%80%e5%8d%95%e7%9a%84%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.wunen.com\/index.php\/2025\/06\/03\/%e4%b8%80%e4%b8%aapython%e7%ae%80%e5%8d%95%e7%9a%84%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/\"},\"author\":{\"name\":\"admin@wunen\",\"@id\":\"https:\/\/www.wunen.com\/#\/schema\/person\/d5f7a6cf545656a9c90d507e64452db8\"},\"headline\":\"\u4e00\u4e2apython\u7b80\u5355\u7684\u5c04\u51fb\u6e38\u620f\",\"datePublished\":\"2025-06-03T04:00:14+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.wunen.com\/index.php\/2025\/06\/03\/%e4%b8%80%e4%b8%aapython%e7%ae%80%e5%8d%95%e7%9a%84%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/\"},\"wordCount\":1,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.wunen.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.wunen.com\/index.php\/2025\/06\/03\/%e4%b8%80%e4%b8%aapython%e7%ae%80%e5%8d%95%e7%9a%84%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg\",\"articleSection\":[\"\u5c04\u51fb\u6e38\u620f\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.wunen.com\/index.php\/2025\/06\/03\/%e4%b8%80%e4%b8%aapython%e7%ae%80%e5%8d%95%e7%9a%84%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wunen.com\/index.php\/2025\/06\/03\/%e4%b8%80%e4%b8%aapython%e7%ae%80%e5%8d%95%e7%9a%84%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/\",\"url\":\"https:\/\/www.wunen.com\/index.php\/2025\/06\/03\/%e4%b8%80%e4%b8%aapython%e7%ae%80%e5%8d%95%e7%9a%84%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/\",\"name\":\"\u4e00\u4e2apython\u7b80\u5355\u7684\u5c04\u51fb\u6e38\u620f - \u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51\",\"isPartOf\":{\"@id\":\"https:\/\/www.wunen.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.wunen.com\/index.php\/2025\/06\/03\/%e4%b8%80%e4%b8%aapython%e7%ae%80%e5%8d%95%e7%9a%84%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.wunen.com\/index.php\/2025\/06\/03\/%e4%b8%80%e4%b8%aapython%e7%ae%80%e5%8d%95%e7%9a%84%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg\",\"datePublished\":\"2025-06-03T04:00:14+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.wunen.com\/index.php\/2025\/06\/03\/%e4%b8%80%e4%b8%aapython%e7%ae%80%e5%8d%95%e7%9a%84%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wunen.com\/index.php\/2025\/06\/03\/%e4%b8%80%e4%b8%aapython%e7%ae%80%e5%8d%95%e7%9a%84%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wunen.com\/index.php\/2025\/06\/03\/%e4%b8%80%e4%b8%aapython%e7%ae%80%e5%8d%95%e7%9a%84%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/#primaryimage\",\"url\":\"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg\",\"contentUrl\":\"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg\",\"width\":260,\"height\":180},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wunen.com\/index.php\/2025\/06\/03\/%e4%b8%80%e4%b8%aapython%e7%ae%80%e5%8d%95%e7%9a%84%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wunen.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u4e00\u4e2apython\u7b80\u5355\u7684\u5c04\u51fb\u6e38\u620f\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wunen.com\/#website\",\"url\":\"https:\/\/www.wunen.com\/\",\"name\":\"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51\",\"description\":\"\u8f6f\u4ef6\u8d44\u8baf\u6765\u7269\u5ae9\",\"publisher\":{\"@id\":\"https:\/\/www.wunen.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wunen.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.wunen.com\/#organization\",\"name\":\"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51\",\"url\":\"https:\/\/www.wunen.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wunen.com\/#\/schema\/logo\/image\/\",\"url\":\"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/cropped-\u7269\u5ae9-1.png\",\"contentUrl\":\"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/cropped-\u7269\u5ae9-1.png\",\"width\":1024,\"height\":1024,\"caption\":\"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51\"},\"image\":{\"@id\":\"https:\/\/www.wunen.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wunen.com\/#\/schema\/person\/d5f7a6cf545656a9c90d507e64452db8\",\"name\":\"admin@wunen\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wunen.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d90ec1e3faf77c4d4e66e40c29b85ff6401161e0502f401dae2f0e25b38ce25e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d90ec1e3faf77c4d4e66e40c29b85ff6401161e0502f401dae2f0e25b38ce25e?s=96&d=mm&r=g\",\"caption\":\"admin@wunen\"},\"sameAs\":[\"http:\/\/www.wunen.com\"],\"url\":\"http:\/\/www.wunen.com\/index.php\/author\/adminwunen\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u4e00\u4e2apython\u7b80\u5355\u7684\u5c04\u51fb\u6e38\u620f - \u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wunen.com\/index.php\/2025\/06\/03\/\u4e00\u4e2apython\u7b80\u5355\u7684\u5c04\u51fb\u6e38\u620f\/","og_locale":"zh_CN","og_type":"article","og_title":"\u4e00\u4e2apython\u7b80\u5355\u7684\u5c04\u51fb\u6e38\u620f - \u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51","og_description":"import pygame import random import sys # \u521d\u59cb\u5316 pygame.ini [&hellip;]","og_url":"https:\/\/www.wunen.com\/index.php\/2025\/06\/03\/\u4e00\u4e2apython\u7b80\u5355\u7684\u5c04\u51fb\u6e38\u620f\/","og_site_name":"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51","article_published_time":"2025-06-03T04:00:14+00:00","og_image":[{"width":260,"height":180,"url":"https:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg","type":"image\/jpeg"}],"author":"admin@wunen","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin@wunen","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.wunen.com\/index.php\/2025\/06\/03\/%e4%b8%80%e4%b8%aapython%e7%ae%80%e5%8d%95%e7%9a%84%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/#article","isPartOf":{"@id":"https:\/\/www.wunen.com\/index.php\/2025\/06\/03\/%e4%b8%80%e4%b8%aapython%e7%ae%80%e5%8d%95%e7%9a%84%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/"},"author":{"name":"admin@wunen","@id":"https:\/\/www.wunen.com\/#\/schema\/person\/d5f7a6cf545656a9c90d507e64452db8"},"headline":"\u4e00\u4e2apython\u7b80\u5355\u7684\u5c04\u51fb\u6e38\u620f","datePublished":"2025-06-03T04:00:14+00:00","mainEntityOfPage":{"@id":"https:\/\/www.wunen.com\/index.php\/2025\/06\/03\/%e4%b8%80%e4%b8%aapython%e7%ae%80%e5%8d%95%e7%9a%84%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/"},"wordCount":1,"commentCount":0,"publisher":{"@id":"https:\/\/www.wunen.com\/#organization"},"image":{"@id":"https:\/\/www.wunen.com\/index.php\/2025\/06\/03\/%e4%b8%80%e4%b8%aapython%e7%ae%80%e5%8d%95%e7%9a%84%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/#primaryimage"},"thumbnailUrl":"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg","articleSection":["\u5c04\u51fb\u6e38\u620f"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.wunen.com\/index.php\/2025\/06\/03\/%e4%b8%80%e4%b8%aapython%e7%ae%80%e5%8d%95%e7%9a%84%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.wunen.com\/index.php\/2025\/06\/03\/%e4%b8%80%e4%b8%aapython%e7%ae%80%e5%8d%95%e7%9a%84%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/","url":"https:\/\/www.wunen.com\/index.php\/2025\/06\/03\/%e4%b8%80%e4%b8%aapython%e7%ae%80%e5%8d%95%e7%9a%84%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/","name":"\u4e00\u4e2apython\u7b80\u5355\u7684\u5c04\u51fb\u6e38\u620f - \u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51","isPartOf":{"@id":"https:\/\/www.wunen.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.wunen.com\/index.php\/2025\/06\/03\/%e4%b8%80%e4%b8%aapython%e7%ae%80%e5%8d%95%e7%9a%84%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/#primaryimage"},"image":{"@id":"https:\/\/www.wunen.com\/index.php\/2025\/06\/03\/%e4%b8%80%e4%b8%aapython%e7%ae%80%e5%8d%95%e7%9a%84%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/#primaryimage"},"thumbnailUrl":"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg","datePublished":"2025-06-03T04:00:14+00:00","breadcrumb":{"@id":"https:\/\/www.wunen.com\/index.php\/2025\/06\/03\/%e4%b8%80%e4%b8%aapython%e7%ae%80%e5%8d%95%e7%9a%84%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wunen.com\/index.php\/2025\/06\/03\/%e4%b8%80%e4%b8%aapython%e7%ae%80%e5%8d%95%e7%9a%84%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/"]}]},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wunen.com\/index.php\/2025\/06\/03\/%e4%b8%80%e4%b8%aapython%e7%ae%80%e5%8d%95%e7%9a%84%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/#primaryimage","url":"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg","contentUrl":"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg","width":260,"height":180},{"@type":"BreadcrumbList","@id":"https:\/\/www.wunen.com\/index.php\/2025\/06\/03\/%e4%b8%80%e4%b8%aapython%e7%ae%80%e5%8d%95%e7%9a%84%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wunen.com\/"},{"@type":"ListItem","position":2,"name":"\u4e00\u4e2apython\u7b80\u5355\u7684\u5c04\u51fb\u6e38\u620f"}]},{"@type":"WebSite","@id":"https:\/\/www.wunen.com\/#website","url":"https:\/\/www.wunen.com\/","name":"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51","description":"\u8f6f\u4ef6\u8d44\u8baf\u6765\u7269\u5ae9","publisher":{"@id":"https:\/\/www.wunen.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wunen.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-Hans"},{"@type":"Organization","@id":"https:\/\/www.wunen.com\/#organization","name":"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51","url":"https:\/\/www.wunen.com\/","logo":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wunen.com\/#\/schema\/logo\/image\/","url":"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/cropped-\u7269\u5ae9-1.png","contentUrl":"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/cropped-\u7269\u5ae9-1.png","width":1024,"height":1024,"caption":"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51"},"image":{"@id":"https:\/\/www.wunen.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.wunen.com\/#\/schema\/person\/d5f7a6cf545656a9c90d507e64452db8","name":"admin@wunen","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wunen.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d90ec1e3faf77c4d4e66e40c29b85ff6401161e0502f401dae2f0e25b38ce25e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d90ec1e3faf77c4d4e66e40c29b85ff6401161e0502f401dae2f0e25b38ce25e?s=96&d=mm&r=g","caption":"admin@wunen"},"sameAs":["http:\/\/www.wunen.com"],"url":"http:\/\/www.wunen.com\/index.php\/author\/adminwunen\/"}]}},"_links":{"self":[{"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/posts\/3144","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/comments?post=3144"}],"version-history":[{"count":0,"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/posts\/3144\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/media\/215"}],"wp:attachment":[{"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/media?parent=3144"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/categories?post=3144"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/tags?post=3144"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}