I don't know exactly what it means. First of all, I will explain the reason why the error.
In this way, the return value of the
loop function passes the return value of the
loop(u).Reshape(10,10) is the same as
None.reshape(10,10). However, since
None does not have a method called
reshape, the error
'NoneType' object has no attribute 'reshape' occurred.
I think it's a difficult explanation for the questioner, but read it 10 times.
© 2022 pinfo. All rights reserved.