python2 the apply () how to modify the syntax python3

Today encountered an example, is python2 override for multi-threaded class, this is the original code

 

 As people only learned of python3, read this apply a hell ah, Baidu for a long time found

 

So to re-code has been modified as follows:

 

Successful, happy, ha ha.

 

In fact, this means that apply to unpacking args as a parameter returns fun fun (args)

 

Guess you like

Origin www.cnblogs.com/rightlight/p/11599655.html