python的静态方法 描述: 比如,一个类只能被创建3次。这种实现方法; 产生问题的原因: 在leetcode答案提交中,用打表的方法,在类实例化的时候,生成的数据保存,这样以后再创建这个类的时候,就不需要重新生成数据了。