Python初始化线程的最佳方法是什么?

时间:2019-06-11 13:53:17

标签: python

我发现了两种不同的初始化线程的方法。

我想知道什么是最好的:

class Class_name(Thread):

    """docstring for the class"""

    def __init__(self):
        super(Class_name, self).__init__()

class Class_name(Thread):

    """docstring for the class"""

    def __init__(self):
        Thread.__init__(self)

如果有人知道哪个是最好的,以及它有什么不同,那将帮助我选择。

0 个答案:

没有答案
相关问题