第一种:https://www.cnblogs.com/huangjianxin/p/6341256.html
第二种:https://www.cnblogs.com/la-fe/p/7835252.html