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