- @echo off & setlocal EnableDelayedExpansion
- echo 你他娘的是谁?他娘的我不告诉你。你他娘的到底是谁?我他娘的还就不告诉那个他娘的你
- pause>nul
- echo.
- set n="你他娘的是谁?他娘的我不告诉你。你他娘的到底是谁?我他娘的还就不告诉那个他娘的你。"
- for /f "tokens=* delims=" %%i in (%n%) do (
- set a=%%i
- set a=!a:他娘的=TND!
- echo !a!
- )
- pause>nul
- echo.
- echo.
- set b="%a%"
- for /f "tokens=* delims=" %%a in (%b%)do (
- set b=%%a
- set b=!b:TND=!
- echo !b!
- )
- pause>nul
复制代码 说句话,变量延迟真TMD难理解(— —) |