>>> (float('inf')+0j)*1 (inf+nanj)
为什么?这在我的代码中造成了一个讨厌的错误。
为什么1乘法身份不给(inf + 0j)?
1
(inf + 0j)
python nan ieee-754
ieee-754 ×1
nan ×1
python ×1