Lua 中在字符表中添加 'C' 后面添加 'HS74' 字符串
你可以使用字符串拼接符号 '...' 将 'C' 和 'HS74' 拼接起来,然后将拼接后的字符串插入到 chars 表中,如下所示:
local chars = {}
for i = 65, 90 do
local char = string.char(i)
if char ~= i then
table.insert(chars, char)
else
table.insert(chars, char)
end
end
table.insert(chars, 'C' .. 'HS74')
print(table.concat(chars, ', ')) -- 输出所有字符,用逗号隔开
原文地址: https://www.cveoy.top/t/topic/mWYn 著作权归作者所有。请勿转载和采集!