float('nan')

numpy判断

import numpy as np

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