用户交互scanner:人与程序交互 java.util.Scanner 通过scanner获取用户的输入
scanner.hasnext()以空格结束 scanner.hasnextline()以回车结束