lfoqtal 当前离线
一级士官
ArdentMan 当前离线
中尉
@Echo Off&SetLocal EnableDelayedExpansion Set "Code=1 2 3 4 5 6 7" Set /P Str=请输入: For %%i In (%Code%) Do Set "Str=!Str:%%i= %%i !" For %%i In (%Str%) Do ( For %%j In (%Code%) Do ( If %%i EQU %%j If Not Defined _%%i Set "Var=!Var!%%i"&Set "_%%i=a" ) ) Echo %Var% Pause>nul复制代码
评分人数
TOP
mxxcgzxxx (黑雨)当前离线
@echo off&setlocal enabledelayedexpansion set /p p=请输入: set "a=" echo %p%|findstr "[1-7]">nul||goto :zdms for /l %%i in (1 1 7) do set p=!p:%%i= %%i ! for %%i in (%p%) do (echo %%i|findstr "^[1-7]$">nul && (echo !a! |findstr "%%i">nul || set "a=!a!%%i")) echo.有较数字=%a% pause>nul复制代码
batman 当前离线
考官
荣誉版主