jains521 当前离线
一级士官
TOP
@echo off & setlocal enabledelayedexpansioncd.>_new.xls::解题思路为提升小数为整数for /f "tokens=1,2,3 delims= " %%i in (test.xls) do ( if "%%j" equ "total" ( echo %%i %%j !_%%i:~0,-2!.!_%%i:~-2!>>_new.xls ) else ( echo %%i %%j %%k>>_new.xls set _tmp=%%k set /a _decimal=!_tmp:.=*0+! set /a "_%%i+= _decimal + _tmp*100" ))pauseCOPY