![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python bug修改
修改报错,不一定适合所有
乱七八糟2333
菜菜籽的升级打怪之路~
展开
-
Python np.loadtxt()错误信息:ValueError: Wrong number of columns at line 3
运行代码:import numpy as npf = np.loadtxt('a.txt')文件内容:0.0 0.5 9.79289321881345 0.500000000000000 17.6464466094067 8.35355339059330 18.0 8.50000000000000 28.0 8.50000000000000 28.3535533905933 8.35355339059329 36.207106781..原创 2022-01-20 06:00:45 · 4746 阅读 · 0 评论 -
Python local variable ‘x2‘ referenced before assignment
出现这种报错,是因为局部变量。需要改成全局变量。添加global x2 即可原创 2022-01-12 04:19:24 · 384 阅读 · 0 评论