1. 首页
  2. 数据库
  3. 其它
  4. python threading(多线程)模块

python threading(多线程)模块

上传者: 2020-12-22 22:10:01上传 PDF文件 143KB 热度 24次
命令提示符如何打开并运行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
下载地址
用户评论