Python 中的__new__和__init__的区别
https://zhuanlan.zhihu.com/p/58139772
https://www.cnblogs.com/shenxiaolin/p/9307496.html#:~:text=Python%20%E4%B8%AD%E7%9A%84__new__%E5%92%8C__init__%E7%9A%84%E5%8C%BA%E5%88%AB.%20%E4%BA%8C%E8%80%85%E5%9D%87%E6%98%AFPython%E9%9D%A2%E5%90%91%E5%AF%B9%E8%B1%A1%E8%AF%AD%E8%A8%80%E4%B8%AD%E7%9A%84%E5%87%BD%E6%95%B0%EF%BC%8C__new__%E6%AF%94%E8%BE%83%E5%B0%91%E7%94%A8%EF%BC%8C__init__%E5%88%99%E7%94%A8%E7%9A%84%E6%AF%94%E8%BE%83%E5%A4%9A%E3%80%82.%20__new__%E6%98%AF%E5%9C%A8%E5%AE%9E%E4%BE%8B%E5%88%9B%E5%BB%BA%20%E4%B9%8B%E5%89%8D%20%E8%A2%AB%E8%B0%83%E7%94%A8%E7%9A%84%EF%BC%8C%E5%9B%A0%E4%B8%BA%E5%AE%83%E7%9A%84%E4%BB%BB%E5%8A%A1%E5%B0%B1%E6%98%AF%E5%88%9B%E5%BB%BA%E5%AE%9E%E4%BE%8B%E7%84%B6%E5%90%8E%E8%BF%94%E5%9B%9E%E8%AF%A5%E5%AE%9E%E4%BE%8B%E5%AF%B9%E8%B1%A1%EF%BC%8C%E6%98%AF%E4%B8%AA,%E9%9D%99%E6%80%81%E6%96%B9%E6%B3%95%E3%80%82.%20__init__%E6%98%AF%E5%BD%93%E5%AE%9E%E4%BE%8B%E5%AF%B9%E8%B1%A1%E5%88%9B%E5%BB%BA%E5%AE%8C%E6%88%90%E5%90%8E%E8%A2%AB%E8%B0%83%E7%94%A8%E7%9A%84%EF%BC%8C%E7%84%B6%E5%90%8E%E8%AE%BE%E7%BD%AE%E5%AF%B9%E8%B1%A1%E5%B1%9E%E6%80%A7%E7%9A%84%E4%B8%80%E4%BA%9B%E5%88%9D%E5%A7%8B%E5%80%BC%EF%BC%8C%E9%80%9A%E5%B8%B8%E7%94%A8%E5%9C%A8%E5%88%9D%E5%A7%8B%E5%8C%96%E4%B8%80%E4%B8%AA%E7%B1%BB%E5%AE%9E%E4%BE%8B%E7%9A%84%E6%97%B6%E5%80%99%E3%80%82.%20%E6%98%AF%E4%B8%80%E4%B8%AA%20%E5%AE%9E%E4%BE%8B%E6%96%B9%E6%B3%95%E3%80%82.%20%E4%B9%9F%E5%B0%B1%E6%98%AF%EF%BC%9A%20__new__%E5%85%88%E8%A2%AB%E8%B0%83%E7%94%A8%EF%BC%8C__init__%E5%90%8E%E8%A2%AB%E8%B0%83%E7%94%A8%EF%BC%8C__new__%E7%9A%84%E8%BF%94%E5%9B%9E%E5%80%BC%EF%BC%88%E5%AE%9E%E4%BE%8B%EF%BC%89%E5%B0%86%E4%BC%A0%E9%80%92%E7%BB%99__init__%E6%96%B9%E6%B3%95%E7%9A%84%E7%AC%AC%E4%B8%80%E4%B8%AA%E5%8F%82%E6%95%B0%EF%BC%8C%E7%84%B6%E5%90%8E__init__%E7%BB%99%E8%BF%99%E4%B8%AA%E5%AE%9E%E4%BE%8B%E8%AE%BE%E7%BD%AE%E4%B8%80%E4%BA%9B%E5%8F%82%E6%95%B0%E3%80%82.%202%E3%80%81__new__%E8%87%B3%E5%B0%91%E8%A6%81%E6%9C%89%E4%B8%80%E4%B8%AA%E5%8F%82%E6%95%B0cls%EF%BC%8C%E4%BB%A3%E8%A1%A8%E5%BD%93%E5%89%8D%E7%B1%BB%EF%BC%8C%E6%AD%A4%E5%8F%82%E6%95%B0%E5%9C%A8%E5%AE%9E%E4%BE%8B%E5%8C%96%E6%97%B6%E7%94%B1Python%E8%A7%A3%E9%87%8A%E5%99%A8%E8%87%AA%E5%8A%A8%E8%AF%86%E5%88%AB.