复制代码
- @echo off&setlocal enabledelayedexpansion
- set "var=+ - * /"
- for /f "tokens=1-4 delims= " %%a in ("%var%") do call :lp %%a %%b %%c %%d
- pause>nul
- :lp
- for /l %%i in (1,1,9) do (
- for /l %%j in (1,1,%%i) do (
- set /a a=%%i%1%%j
- if !a! lss 10 set a= !a!
- set str=!str! %%i%1%%j=!a!
- if %%i equ %%j echo !str!&set "str="
- )
- )
- if "%1" equ "/" goto :eof
- shift
- goto lp
欢迎光临 批处理之家 (http://bbs.bathome.net/) | Powered by Discuz! 7.2 |