fkfreedom 当前离线
列兵
25551996COPY
评分人数
applba 当前离线
中校
@echo offfor /f %%i in (1.txt) do ( set /a n+=1 set /a sum=sum+%%i)echo %n% %sum%set /a t1=(sum*10)/nset /a t2=t1/10echo %t2%if %t1:~-2,1% gtr 4 set /a t2=t2+1echo 结果是%t2%pauseCOPY
TOP
Hello123World 当前离线
荣誉版主
@echo off&setlocal enabledelayedexpansionfor /f %%i in (test.txt) do (set /a a=!a!+%%iset /a b=!b!+1)set /a c=%a%/%b%echo %c% pause>nulCOPY
caruko 当前离线
for /f %%i in (test.txt) do set /a a+=%%i,b+=1set /a c=a/becho,%c%COPY