python threading(多线程)模块

mybush 20 0 PDF 2020-12-22 22:12:01

命令提示符如何打开并运行python文件链接 一、 1.active_count() , activeConut() 方法 功能 active_count() , activeConut() 返回处于alive状态的Thread对象数量 用法: import time import threading def sing(): print("---singing---") time.sleep(10) print(threading.active_count()) 输出:2 当前处于alive的Thread对象为:[, ] 下面给他添加线程对象: impor

用户评论
请输入评论内容
评分:
暂无评论