@echo off:beginset /p str=输入数字(1-3)if %str% leq 3 (if %str% geq 1 (echo %str%)) else (echo 你输入%str% 超出范围报错并且返回重新输入&pause>nul&goto begin)pause