def main():
for i in range(random.randint(2,50)):
thread = threading.Thread(target=myThread, args=(i,))
thread.start()
time.sleep(4)
print("Total Number of Active Threads: {}".format(threading.active_count()))
totalThreads.py 文件源码
python
阅读 26
收藏 0
点赞 0
评论 0
评论列表
文章目录