Python threading.enumerate()方法 (Python threading.enumerate() Method)
enumerate() is an inbuilt method of the threading module in Python. It is used to return the list of all the Thread class objects which are currently alive. It also includes daemonic threads, the main thread, and dummy thread objects created by current_thread(). It does not count the threads that have terminated or which have not started yet.
enumerate()是Python中线程模块的内置方法。 它用于返回当前仍处于活动状态的所有Thread类对象的列表。 它还包括由current_thread()创建的守护线程,