无穷大:float('inf')
无穷小:float('-inf')
In [1]: a = float('inf')
In [2]: 1 < a
Out[2]: True
In [3]: 10000000 > a
Out[3]: False
In [4]: b = float('-inf')
In [5]: b < a
Out[5]: True
In [6]: b > a
Out[6]: False
In [7]: b == a
Out[7]: False
In [8]: c = float('inf')
In [9]: c == a
Out[9]: True