miskel 当前离线
列兵
hnldwhm52 当前离线
TOP
apang 当前离线
上将
@echo off & setlocal enabledelayedexpansion set "Max=0" & set "Min=9999" for /f %%a in (a.txt) do ( set /a n+=1,Sum+=%%a0 if %%a gtr !Max! set "Max=%%a" if %%a lss !Min! set "Min=%%a" ) set /a Avg=Sum/n echo,!Max! !Min! !Avg:~,-1!.!Avg:~-1! pause复制代码
CrLf 当前离线
论坛巡查
DAIC 当前离线
中将
Get-Content a.txt | Measure-Object -Minimum -Maximum -Average复制代码