@
quietin python 线程是可以设置 name 的 最简单的就是启动线程的时候 设置 运行期获取就可以
具体可以参考:
http://www.tutorialspoint.com/python/python_multithreading.htmlIn addition to the methods, the threading module has the Thread class that implements threading. The methods provided by the Thread class are as follows:
run(): The run() method is the entry point for a thread.
start(): The start() method starts a thread by calling the run method.
join([time]): The join() waits for threads to terminate.
isAlive(): The isAlive() method checks whether a thread is still executing.
getName(): The getName() method returns the name of a thread.
setName(): The setName() method sets the name of a thread.