WHY 当前离线
上校
PowerShell "$s = (gc a.txt -ReadCount 0) -join \"`r`n\"; $s=[regex]::Replace($s, '[0-9]+', {[Math]::Floor(0.925*$args[0].Value)}); sc b.txt $s"复制代码
TOP
@if(0)==(0) echo off type a.txt | cscript //nologo //e:jscript "%~f0" > b.txt pause & exit/b @end var s = WSH.StdIn.ReadAll(); s = s.replace( /[0-9]+/g, function(s0){return Math.floor(0.925*s0);} ) WSH.Echo(s);复制代码