多线程threading 的使用

在Python3中,通过threading模块提供线程的功能。原来的thread模块已废弃。但是threading模块中有个Thread类(大写的T,类名),是模块中最主要的线程类,一定要分清楚了,千万不要搞混了。 threading模块提供了一些比较实用的方法或者属性,例如: 方法与属性 描述 current_thread() 返回当前线程 active_count() 返回当前活跃的线程数,1
相关文章
相关标签/搜索