一个改进的小要求--限定随机数的个数,生成的随机数总和在一定范围内

这个可以应用在很多场合的,你猜? import random time_seconds = 18000 time_seconds_float = 1800 number = 500 print "this range of limit is between %s and %s" % (time_seconds, time_seconds + time_seconds_float) while
相关文章
相关标签/搜索