::================================================================
::练习:用for语句建立test1.txt、test2.txt和test3.txt三个文本文件。
::================================================================
@echo off
for %%i in (1 2 3) do set r=nul>test%%i.txt
pause>nul
@echo off
set s=I love,
set t=bbs;bathome=
set r=net
set str=%s%%t%%r%
for %%i in (%str%) do echo %%i
echo 按任意键显示题目二结果
pause
cls
for %%o in (%r%) do echo %%o
pause
这样行么