Форум сайта python.su
Высвечивается проблема в первой строчке: “line 1, in <module> import pygame”, пробовали записать по другому, типа “ from python import pygame * ”, но все равно ошибка.
Вот код программы:
import pygame import random WIDTH = 480 HEIGHT = 600 FPS = 60 black = (0,0,0) white = (255,255,255) red = (255,0,0) green = (0,255,0) blue = (0,0,255) pygame.init() pygame.mixer.init() screen = pygame.display.set_mode((WIDTH,HEIGHT)) pygame.display.set_caption("My Game") clock = pygame.time.Clock() running = True while running: clock.tick(FPS) for event in pygame.event.get(): if event.type == pygame.QUIT: running = False screen.fill(red) pygame.display.flip() pygame.quit()
Офлайн
ZeroKiryuне должно, приведите полностью текст ошибки.
Высвечивается проблема в первой строчке
[code python][/code]
Офлайн