Почему при запуске этого кода
import pygame
BLACK = (0, 0, 0)
WHITE = (255, 255, 255)
GREEN = (0, 255, 0)
RED = (255, 0, 0)
pygame.init()
size = (700, 500)
screen = pygame.display.set_mode(size)
pygame.display.set_caption("My Game")
done = False
clock = pygame.time.Clock()
while not done:
for event in pygame.event.get():
if event.type == pygame.QUIT:
done = True
screen.fill(WHITE)
pygame.display.flip()
clock.tick(60)
pygame.quit()
возникает ошибка
Traceback (most recent call last):
File "C:\IoR\Game About Tanks Python\test.py", line 9, in <module>
pygame.init()
builtins.AttributeError: 'module' object has no attribute 'init'