在Python 中建议不要用is 和== 来判断一个对象是否是inf 和nan. ... float("inf") # 正无穷float("-inf") # 负无穷. 利用inf(infinite) 乘以0 会得到 ...
確定! 回上一頁