screen = pygame.display.mode([1000, 600])
clock = pygame.time.Clock()
p1x = 10
p1y = 250
p1score = 0
p2x = 950
p2y = 250
p2score = 0
AttributeError:'module'对象没有属性'mode'
答案 0 :(得分:1)
方法是set_mode。所以将第一行改为:
screen = pygame.display.set_mode([1000, 600])