CODE: [Copy to clipboard]@echo off :start set /p a=please input number: echo %a%|findstr "[^1-5afx]" &&echo 输入错误&&goto start echo 输入正确 pause