1.NoSuchElementException异常 提前Scanner.close,关闭后续还有new Scanner; 将zodiac()下的input.close()删掉就好了 (26条消息) NoSuchElementException异常的处理_何日可揽月捉鳖的博客-CSDN博客