Archive for 03月, 2009

数字2拼音[bat]

Mar 07 2009 Published by under 未分类

Batchfile语言: shuzi2pinyin
@echo off
SetLocal EnableDelayedExpansion
set ";= "
set "code=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 (%code%) do (
:echo %%a
call :count_p
set !count!=%%a
)
:start
echo.
set /p xx=
for %%b in (%xx%) do (set /p ,=!%%b!<nul&&echo.)
goto :start

:count_p
set /a count+=1

给某人看的,保存为xxx.bat就好了

No responses yet