最近在做机器学习的时候,对未知对webshell检测,发现代码提示:ValueError: operands could not be broadcast together with shapes (1,3) (37660,) 查阅了很多资料都在提示shape不一致,违反了ufunc机制. 但是初学,不是很了解,查阅了大量的资料还是很不了解. 查看官网文档后,有了很好的理解. 6.4. Broadcasting Another powerful feature of Numpy is broad…