首页 > 解决方案 > 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)

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

标签: python

解决方案


推荐阅读