回复 11# qixiaobin0715
根据需要,只需修改代码第3行即可:- @echo off
- setlocal enabledelayedexpansion
- set m="0,1,3" "5,1,8" "6,2,12" "10,3,19" "20,2,26"
- for %%i in (%m%) do (
- set n=0
- for /l %%j in (%%~i) do (
- set /a n+=1
- for %%k in (!n!) do (
- if not defined x%%k (
- set x%%k=%%j
- ) else (
- set x%%k=!x%%k!_%%j
- )
- )
- )
- )
- for /l %%i in (1,1,!n!) do (
- echo,!x%%i!
- )
- pause
复制代码
|