python 正负无穷

python学习网 2020-10-26 16:12:03
#表示正无穷
float('inf') 

#表示负无穷
-float('inf')
float('-inf')

#inf 可以写成 Inf

 

阅读(2380) 评论(0)