jimmyeric 当前离线
列兵
hlzj88 当前离线
少校
TOP
@echo off&&setlocal enabledelayedexpansion set aa=0 for /f %%i in (a.txt) do ( set /a ab=%%i+!aa! set "aa=%%i" echo !ab!>>b.txt ) pause复制代码
评分人数
zaqmlp 当前离线
上尉
@echo off set info=互助互利,支付宝扫码头像,感谢打赏 rem 有问题,可加QQ956535081及时沟通 title %info% cd /d "%~dp0" set "input=a.txt" set output=b.txt (for /f %%a in ('type "%input%"') do ( set /a s+=%%a setlocal enabledelayedexpansion echo;!s! endlocal ))>"%output%" :end echo;%info% pause exit复制代码