像这样?- @echo off
-
- set "#大写=ABCDEFGHIJKLMNOPQRSTUVWXYZ"
-
- setlocal enabledelayedexpansion
- set "str= a b c d e f g h i j k l m n o p q r s t u v w x y z"
- for %%a in (%str%) do set #小写==!#小写!!str: =%%a!
- endlocal&set "str="&set #小写==%#小写%
-
- (for /f "delims=" %%a in (编号测试.txt) do (
- set "text=%%a"
- setlocal enabledelayedexpansion
- for /l %%a in (1 1 10) do (
- set /a rl=!random!%%676*2,rn=!random!*!random!%%10000+10000,ru=!random!%%26
- for /f "delims=" %%b in ("^!#小写:~!rl!,2^!!rn:~-4!^!#大写:~!ru!,1^!") do echo %%b !text!
- )
- endlocal
- ))>输出.txt
- pause
复制代码
|