Before: `threshold=np.nan` 
After : `threshold=float("inf")`

`np.nan` may fail in latest version.
This commit is contained in:
Yifan 2020-07-01 08:53:43 +08:00 committed by GitHub
parent c889812457
commit 4c9a228d49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -604,7 +604,7 @@ How to print all the values of an array? (★★☆)
hint: np.set_printoptions
< a49
np.set_printoptions(threshold=np.nan)
np.set_printoptions(threshold=float("inf"))
Z = np.zeros((16,16))
print(Z)