返回列表 发帖
本帖最后由 terse 于 2023-1-23 22:54 编辑

这样呢
@echo off&setlocal enableDelayedExpansion
(for /f "delims=" %%i in (a.txt) do (
    if not defined _"%%i" (
        echo,%%i
        set _"%%i"=%%i
    ) else if not "!_"%%i"!"  == "%%i"  echo %%i
))>b.txtCOPY
没测试
@echo off&setlocal enableDelayedExpansion
(for /f "delims=" %%i in (a.txt) do (
        if not "!_"%%i"!"  == "%%i"  echo %%i
        set _"%%i"=%%i
))>b.txtCOPY
1

评分人数

TOP

@echo off
powershell "$Hash = @{};(GC '.\a.txt').Where({if (!$Hash.Contains($_)){$Hash.Add($_,++$i)}});($Hash.GetEnumerator()| Sort Value).Key"
pauseCOPY
1

评分人数

TOP

返回列表