可以参考一下下面文章
https://www.cnblogs.com/sddai/p/5898004.html
https://wenku.baidu.com/view/cb921a4f6c85ec3a87c2c5e3.html