批处理的,不能计算小数,最大数量自己设置
@echo off
setlocal EnableDelayedExpansion
for /f "delims=" %%i in (abc.txt) do set %%i
for /l %%n in (1,1,1000) do if not "!A%%n!" == "" set /a strA=!strA!+!A%%n!
for /l %%n in (1,1,1000) do if not "!B%%n!" == "" set /a strB=!strB!+!B%%n!
cd.>temp.txt
>>temp.txt echo A=%strA%
>>temp.txt echo B=%strB%
pause