내가 튜토리얼에서 이것을 사용할 때. 내가 v3.3.1을 사용하고 3.3 파이 게임있어
파이썬 : 파이 게임이 작동하는 데 문제가 있습니다. PC에서
Traceback (most recent call last):
File "C:\Users\Jonathan\Desktop\Pygame\Example.py", line 2, in <module>
import pygame
ImportError: No module named 'pygame'
:
import pygame
pygame.init()
black = ( 0, 0, 0)
white = (255, 255, 255)
green = ( 0, 255, 0)
red = (255, 0, 0)
size=[700,500]
screen=pygame.display.set_mode(size)
pygame.display.set_caption("jons cool game")
나는이 오류가 발생합니다.
Python 3 또는 Python 2를 설치 했습니까? 이 스크립트를 Python 3에서 실행하고 있습니까? – Blender