Why did Python give me this strange Visible Deprecation Warning? Something to learn here?
问题 I couldn't remember if np.zeros(x) will automatically covert a float x to int or not, so I tried it in IDLE. What I got the first time was a Warning message that refers to the script I had run earlier in the same session, and then warns me "using a non-integer number instead of an integer will result in an error in the future". I tried it again, and the warning did not repeat, and the array was instantiated as expected with dtype=float . Why does the warning say there will be an error (as