numpy.set_printoptions()
numpy.set_printoptions
-
numpy.set_printoptions(precision=None, threshold=None, edgeitems=None, linewidth=None, suppress=None, nanstr=None, infstr=None, formatter=None)
[source] -
Set printing options.
These options determine the way floating point numbers, arrays and other NumPy objects are displayed.
Parameters: precision : int, optional
Number of digits of precision for floating point output (default 8).
threshold登录查看完整内容