本帖最后由 ppll2030 于 2024-8-29 15:31 编辑
- @echo off &setlocal enabledelayedexpansion
- (for /f "delims=" %%a in (1.txt) do (
- set str=%%a
- echo !random! !str!
- ))>$
- for /f "tokens=1* delims= " %%b in ('type $ ^| sort') do (
- set /a n+=1 &set c=%%c !c!
- set /a m=n%%3
- if !m! == 0 echo, !c!&set c=
- if !n! == 50 echo, !c!
- )
- del /q $&pause
复制代码
|