我今天在看 Django 源代码,我注意到了这一点:
class DjangoTestSuiteRunner(object):
def __init__(self, verbosity=1, interactive=True, failfast=True, **kwargs):
self.verbosity = verbosity
self.interactive = interactive
self.failfast = failfast
为什么他们会在构造函数中接受 kwargs 而对它们不做任何事情?