@echo offsetlocal EnableDelayedExpansion:1set n=set /p n=请输入行数:set x=for /f "delims="%%a in ('type 1.txt') do (set /a x+=1if !x!==!n! echo/%%a)pause&cls&goto 1将要显示的文件保存为1.txt文件含特殊符号 展开
@echo offsetlocal EnableDelayedExpansion:1set n=set /p n=请输入行数:set x=for /f "delims="%%a in ('type 1.txt') do (set /a x+=1if !x!==!n! echo/%%a)pause&cls&goto 1将要显示的文件保存为1.txt文件含特殊符号可能显示错误 收起