()
my_object.my_new_attribute = "Hello world!"# Now it has this attribute and I can use it:
print(my_object.my_new_attribute) 此命令运行时没有错误,并打印Hello world# Verify it is indeed of the `numpy.ndarray<
"neural_network.py", line 57, in <module>AttributeError: 'numpy.ndarray' objecthas no attribute 'set_printoptions'
显然,并不是所有的numpy数组都是相同的,对常规numpy.array起作用的东西对numpy.ndarray如何设置<