Deprecated: parse_url(): Passing null to parameter #1 ($url) of type string is deprecated in /www/wwwroot/blog_qqvbc_com/usr/plugins/Access/Access_Core.php on line 339

Deprecated: parse_url(): Passing null to parameter #1 ($url) of type string is deprecated in /www/wwwroot/blog_qqvbc_com/usr/plugins/Access/Access_Core.php on line 392

Deprecated: parse_url(): Passing null to parameter #1 ($url) of type string is deprecated in /www/wwwroot/blog_qqvbc_com/usr/plugins/Access/Access_Core.php on line 394
tensorflow numpy 不想输出时显示科学计算法表示,e的x次方 - Joyber 的博客

import numpy as np
import pandas as pd

np.set_printoptions(suppress=True, threshold=np.nan)
#其中,suppress=True 表示取消科学记数法,threshold=np.nan 完整输出(没有省略号)

pd.set_option('display.float_format',lambda x : '%.3f' % x)
#禁用科学计数法,小数保留3位

标签: none

添加新评论