批处理翻转字符串
2023-12-30 乱云飞
@echo offsetlocal enabledelayedexpansion
set string=13213610060
set reversedString=
for /L %%i in (0,1,7) do (
set char=!string:~%%i,1!
set reversedString=!char!!reversedString!
)
echo Reversed String: %reversedString%
cmd/k
本文链接:http://80c.cc/ez/740.html
发表评论: