师傅我来交作业了,呵呵~这段代码我没有排除对2月的计算- @echo off&setlocal enabledelayedexpansion
- for /l %%t in (1,1,100) do (echo 随机日期%%t为: &call :xx)
- goto :eof
- :xx
- set /a n=%random%%%9
- set i=200%n%
- set /a j=%random%%%12+1
- set /a k=%random%%%31+1
- set aa=%i%-%j%-%k%
- echo %aa%
复制代码
|