https://blog.csdn.net/wozuihaole/article/details/78591954 认真理解一下逻辑,这个代码有注释
http://t.csdn.cn/BaG0X读这篇文章,保证解决问题,有斜杠标记。望采纳