我在做一个分位数的问题,我需要做些类似的事情
间隔时间:
150-155 155-160 160-165 165-170 170-175 175-180 180-185
这些是变量 我需要这个因为我在做一个表的间隔
>> width = range/number_of_intervals
>> while inferior_limit <= superior_limit
# there is my problem
>> inferior_limit += width
>> print inferior_limit
这是你的意思吗?在
更有效的方法是使用
^{pr2}$itertools
成对配方。在这里还有一个使用
itertools.starmap
的解决方案,因为从来没有人使用过它!在相关问题 更多 >
编程相关推荐