Real-Ying

《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  

 

posted on 2015-07-19 18:20  Real-Ying  阅读(286)  评论(0编辑  收藏  举报

导航