Lua 计算字符串的实际宽度 2024-7-12 17:55 | 2024-7-12 17:55 | 45 | 0 18 字 | 1 分钟内 function GetStringLen(pzStr) local result = 0 for i=1,#pzStr do local curByte = string.byte(pzStr, i) local byteCount = 1; if curByte>0 and curByte<=127 then byteCount = 1 … lua