import math
a = float('inf')
b = float('-inf')
c = a - b
d = a + b
print(math.isinf(c), math.isinf(d), math.isnan(c), math.isnan(d))
Post #1286
2.49K
Что выведет код?