import threading
def ThFun(start, stop):
for item in range(start, stop):
print item
for n in range(0, 1000, 100):
stop = n + 100 if n + 100 <= 1000 else 1000
threading.Thread(target = ThFun, args = (n, stop)).start()
05-07
5410
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
05-05