local chars = for i = 65 90 do local char = stringchari if char ~= i then printchar tableinsertchars char else tableinsertchars char endend怎么在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/btuh 著作权归作者所有。请勿转载和采集!