- @echo off
- echo 先回答问题一
- set "str=I
-
- love,bbs;bathome.net"
- for /f "tokens=1,2" %%a
-
- in ("%str%") do (
- echo %%a
- for /f "tokens=1-4
-
- delims=,;." %%c in ("%%
-
- b") do (
- echo %%c
- echo %%d
- echo %%e
- echo %%f
- )
- )
- pause
- cls
- echo 以下是问题二解答
- pause
- @echo off
- set "str=I
-
- love,bbs;bathome.net"
- for /f "tokens=1,2" %%a
-
- in ("%str%") do (
- for /f "tokens=1-4
-
- delims=,;." %%c in ("%%
-
- b") do (
- echo %%f
- )
复制代码
|