CODE: [Copy to clipboard]@echo off set /p input= echo %input%|findstr "^[0-9]*$">nul &&echo 输入为数字字符||echo 输入包含非数字字符 pause