@echo off&setlocal enabledelayedexpansion
set hanye=AP:BKH-CNQ-TWP NA:NYK-CAN EU:LOH-TIM
for %%a in (%hanye%) do (
for /f "tokens=1,2 delims=:" %%i in ("%%a") do (
set gu=%%i
set xing=%%j
rem 替换-为空格
set xing=!xing:-= !
for %%k in (!xing!) do (
set site=%%k
echo 周长:!gu! 面积:!site!
)
)
)
pause
bat 批处理 循环,替换
最新推荐文章于 2023-04-13 10:58:40 发布