https://codingnote.cc/p/683947/
一个案例搞懂工厂模式和单例模式