What is the fastest way to instantiate this Python class a million times?

前端 未结 0 843
再見小時候
再見小時候 2021-01-15 03:43

Given I have a class:

class C:
    def __init__(self, flag=None):
        self.a = list()
        self.b = {}
        s         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题