你安装numpy了吗,如果没安装,就在命令行使用pip install numpy安装不过你是怎么运行的,你这第一行好像没运行欸
感觉是没运行import numpy as np这行的原因
打开cmd切换到你的python环境运行:pip install numpy再执行你的程序