python 线程模块
Python threading.current_thread()方法 (Python threading.current_thread() Method)
current_thread() is an inbuilt method of the threading module in Python. It is used to return the current Thread object, which corresponds to the caller's thread of control.
current_thread()是Python中线程模块的内置方法。 它用于返回当前Thread对象,该对象对应于调用者的控制线程。
Module:
模块:
import threading
Syntax:
句法:
current_thread()
Parameter(s):
参数:
None
没有
Return value:
返回值&#x