|
|
发表于 2011-3-22 19:35:16
|
显示全部楼层
本帖最后由 wc726842270 于 2011-3-23 13:17 编辑
个人感觉思路有些像GB2312的编码机制,算上一种伪代码吧
- @echo off&setlocal enabledelayedexpansion 2>nul 3>nul
- (more +13 %0) >#1#.txt
- color 0a
- set /a a=0,b=0
- for /f "delims=" %%i in (#1#.txt) do call :1 %%i
- echo !2,7! !2,18!!3,8!!3,22!!3,2! !2,5!!3,8!!3,6! !1,0!!1,1!!1,2!
- del #1#.txt
- pause>nul&exit
- :1
- set /a a+=1
- set str=%1
- :2
- if "!str:~%b%,1!" neq "" (set %a%,%b%=!str:~%b%,1!&&set /a b+=1&goto :2) else set b=0
- 批处理是一种简化的脚本语言
- QWERTYUIOPASDFGHJKLZXCVBNM
- qwertyuiopasdfghjklzxcvbnm
复制代码 |
|