我也来个- @if(0)==(0) echo off
- setlocal enabledelayedexpansion
- for /f "tokens=1*delims=/" %%i in ('cscript -nologo -e:jscript "%~f0"^<1.txt') do (
- set /p "c=%%j <--对应-->"
- if "!c!"=="%%i" (echo 正确) else (echo 错误 应为 %%i)
- )
- pause & exit/b
- @end
-
- var str = WScript.StdIn.ReadAll() + '\r\n',arr = [];
- str.replace(
- /^([a-z]+)((\s+\S+\.\s*.+\n)+)/mg,
- function(a,b,c){
- c = c.replace(/\s+\S+\.\s*(.+?)\r?\n/g, '/$1')
- arr.push(b + c);
- }
- ).replace(
- /^\s+(.+)\s+([^\x00-\xff].+)$/mg,
- function(a,b,c){arr.push(b + '/' + c)}
- )
-
- arr = arr.sort(function(){return(0.5-Math.random())}).slice(0,50);
-
- WScript.Echo(arr.join('\n'))
复制代码
|