Skip to content

Latest commit

 

History

History
9 lines (5 loc) · 305 Bytes

QAQ.md

File metadata and controls

9 lines (5 loc) · 305 Bytes
  • python的静态方法

描述:

比如,一个类只能被创建3次。这种实现方法;

产生问题的原因:

在leetcode答案提交中,用打表的方法,在类实例化的时候,生成的数据保存,这样以后再创建这个类的时候,就不需要重新生成数据了。