youxi01 当前离线
荣誉版主
GUGEWANG 当前离线
二级士官
TOP
novaa (①個亾)当前离线
学生
snowhack 当前离线
一级士官
hsyxh 当前离线
ieutk 当前离线
set /a ss=%hh:~0,1%+%hh:~1,1%复制代码
kennywah 当前离线
pusofalse 当前离线
553850000 当前离线
獨来du往︷
easyguy 当前离线
xiaoxx 当前离线
三级士官
@echo off set /p input=请输入如下格式字符串"数字+数字+任意字符": echo %input%|findstr "^[0-9][0-9]">tmp.tmp for /f %%i in (tmp.tmp) do ( if %%i == %input% echo 格式正确&goto Check) echo 输入格式错误 del /q tmp.tmp pause exit :Check set /a sum=%input:~0,1%+%input:~1,1% echo 最终结果%sum% del /q tmp.tmp pause复制代码
vicp7764 当前离线
bat小兵