大家都知道在Python 中可以用如下方式表示正負無窮: float("inf") # 正無窮float("-inf") # 負無窮利用inf(infinite) 乘以0 會得到not-a-number(NaN) ...
確定! 回上一頁