level 1
import pygame.camera
from pygame.locals import *
pygame.init()
pygame.camera.init()
cam = pygame.camera.Camera("/dev/video0",(640,480))
cam.start()
image = cam.get_image()
这段代码的pygame官网上复制来的,但是编译会出错:
Traceback (most recent call last):
File "C:\Users\DENG\Desktop\pygame_Test\Cam.py", line 6, in <module>
pygame.camera.init()
File "D:\Program Files (x86)\Python\Python36-32\lib\site-packages\pygame\camera.py", line 42, in init
from pygame import _camera
ImportError: cannot import name '_camera'
无法导入 _camera
------------------------win7,python3.6----------------

