float('nan')

numpy判断

import numpy as np

nan = float('nan')
print(np.isnan(nan))
posted @ 2024-07-05 10:38  papering  阅读(3)  评论(0编辑  收藏  举报