show me the code
import sys
# 1. 最大整数
max_size = sys.max_size
# 2. 最大浮点数
max_float = sys.float_info.max
# 3. 无穷大、无穷小
a = float("inf") # 无穷大, 大小写均可
b = float("-inf") # 无穷小
c = -float("inf") # 无穷小
使用:
show me the code
import sys
# 1. 最大整数
max_size = sys.max_size
# 2. 最大浮点数
max_float = sys.float_info.max
# 3. 无穷大、无穷小
a = float("inf") # 无穷大, 大小写均可
b = float("-inf") # 无穷小
c = -float("inf") # 无穷小
使用: