发现还没有Win批处理的,也就是DOS,我来凑个热闹,哈哈~
不罗嗦,上代码啦:
@echo offset c_title=批处理来解决易语言问题title %c_title%echo %c_title%echo -=-=-=-=-=-=-=-=-=-=-setlocal enabledelayedexpansionfor /l %%i in (123,1,329) do (set /a sum1=%%i*1set /a sum2=%%i*2set /a sum3=%%i*3set "str=!sum1!!sum2!!sum3!"set /a repeat=0for /l %%j in (0,1,7) do (set "s1=!str:~%%j,1!"set /a s2index=%%j+1for /l %%k in (!s2index!,1,8) do ( set "s2=!str:~%%k,1!"if !s1!==!s2! set /a repeat+=1 if !s2!==0 set /a repeat+=1 ))if !repeat!==0 echo !sum1!,!sum2!,!sum3!)pause