要用到摄像头,需要导入 cv2

win + R , cmd命令进入,输入:

pip install opencv-python

Python import cv2 ,安装 cv2_python

下载完即可