《python核心编程》笔记——系统限制

输出当前系统关于数字的范围

 1 import sys
 2 l = {}
 3 maxint = sys.maxint
 4 minint = -maxint
 5 
 6 maxlong = sys.maxsize
 7 minlong = -maxlong
 8 
 9 maxfloat = sys.float_info.max
10 minfloat = sys.float_info.min
11 
12  
原文地址:https://www.cnblogs.com/Real-Ying/p/4659145.html