摘要:
答案来自 Chat GPT @echo off setlocal rem 设置字符串 set "str=9" rem 检查字符串长度 if "%str:~1%"=="" ( set "str=0%str%" ) echo 结果:%str% endlocal 在这个示例中,我们首先将字符串9存储在变量 阅读全文
摘要:
@echo off @REM 使循环内的set命令有效 setlocal enabledelayedexpansion set DIR_ROOT=%~dp0..\ for /f "delims=" %%i in ('dir /b %DIR_ROOT%src\config\generate\*.erl 阅读全文
摘要:
function sort(list, ...) local opts = {...}; local len = #opts; return table.sort(list, function(a, b) return comp(a, b, opts, 1, len); end); end func 阅读全文