热线电话:13121318867

登录
2020-04-24 阅读量: 3859
jupyter notebook报name xx is not defined的错误

L1=[1200,1398,2200,1100,1521]

L2=[1340,1211,1460,1121,1609]

a1=np.array(L1)

a2=np.array(L2)

a1+a2

上图中报name 'a1' is not defined的错误,报次错误的原因是因为a1在运行a1+a2这行代码之前没有被定义,要想解决上图中的错误,需要先执行定义a1的代码,也就是下图红色框中的代码

61.4826
2
关注作者
收藏
评论(0)

发表评论

暂无数据
推荐帖子