public function handle(){//接收用户名
$name = $this->ask('what is you name?');//选择年龄段
$age = $this->choice('how old are you?',[10,20,30,40,50],0);//输入密码
$password = $this->secret('please input a password');//判断密码是否正确if($password !='123456'){
$this->info($password);
$this->error('password error!');exit(-1);}//是否继续if($this->confirm('are you sure?')){
$this->info($name .':'. $age);}else{exit(0);}}