sweet惜缘 当前离线
二级士官
TOP
pcl_test 当前离线
荣誉版主
@echo off setlocal enabledelayedexpansion for /f "tokens=1*" %%a in (data.txt) do ( if not defined #%%a (set #%%a=%%b) else set #%%a=!#%%a!,%%b ) (for /f %%a in (sequence.txt) do echo;%%a !#%%a!)>new_data.txt pause复制代码
@echo off setlocal enabledelayedexpansion for /f "tokens=1*" %%a in (data.txt) do ( if not defined #%%a (set #%%a=%%b) else set #%%a=!#%%a!,%%b ) (for /f "tokens=1* delims=#=" %%a in ('set #') do echo;%%a %%b)>new_data.txt pause复制代码