|
|
楼主 |
发表于 2008-8-19 07:52:00
|
显示全部楼层
哈哈,改进一下,大家看
@echo off
set no1=i like the bathome,because here is the batch of the world.
set code1=%no1%1010101010101010101010101010101010101010101010101010101010101010101010101010101010
set code2=%no1%a1a2a3a4a5a6a7a8a91011121314151617181920212223242526272829303132333435363738394041
set no2=%code2:~0,82%
call,set /a num=-%code1:~81,1%-2
call,set num=%%no2:~%num%,2%%
set /a n=82-%num:a=%*2-%code1:~81,1%
echo %n%
pause
使用了7句set,可测量最大为80个字符,不包括中文,特殊字符……
[ 本帖最后由 523066680 于 2008-8-19 08:19 编辑 ] |
|