import sys
one = []
print('At start :', sys.getrefcount(one))
two = one
print('Second reference :', sys.getrefcount(one))
del two
print('After del :', sys.getrefcount(one))
import sys
print('maxsize :', sys.maxsize)
# 列表、字典、字符串等数据结构的最大长度
print('maxunicode:', sys.maxunicode)
# 支持的最大Unicode整数
print('Smallest difference (epsilon):', sys.float_info.epsilon)
# 最小的差值
print('Maximum (max):', sys.float_info.max)
print('Minimum (min):', sys.float_info.min)
# 最大浮点数和最小浮点数
print('Maximum exponent for radix (max_exp):',
sys.float_info.max_exp)
print('Minimum exponent for radix (min_exp):',
sys.float_info.min_exp)
# 指数的最大和最小值
print('Max. exponent power of 10 (max_10_exp):',
sys.float_info.max_10_exp)
print('Min. exponent power of 10 (min_10_exp):',
sys.float_info.min_10_exp)
# 科学计数法也就是10的指数幂的最大和最小值
print('Number of bits used to hold each digit:',
sys.int_info.bits_per_digit)
# 保存每个数字的位数
print('Size in bytes of C type used to hold each digit:',
sys.int_info.sizeof_digit)
# 保存每个数字的C类型字节大小