Filling numpy array using [:,:] crashes python?
问题 Greetings, I have come across an interesting error and was wondering if anyone knew the cause. I create several numpy arrays of dtype object and wish to initialize them with empty strings, so I did the following to create them: txtInputs=empty((7,12), dtype=object) txtInputs[:, :]='' repeated... How they are used after is not relevant other than that these variables are local to the function and are gone when it returns. However, I have discovered that when I call the function that does this