Python+Pygame飞机大战(待完善)
import pygameimport timeimport sysimport randomfrom pygame.locals import *# 子弹类class Bullet(pygame.sprite.Sprite): def __init__(self): super().__init__() self.image = pygame.image.load("D:/bullets.png") width, height