http://www.cnblogs.com/jncpp/archive/2012/07/24/snake.html 转载于:https://www.cnblogs.com/aspirant/p/3394184.html