📅  最后修改于: 2022-03-11 14:54:54.753000             🧑  作者: Mango
function stringsplit(inputstr, sep)
if sep == nil then
sep = "%s"
end
local t={}
i=1
for str in string.gmatch(inputstr, "([^"..sep.."]+)") do
t[i] = str i = i + 1
end
return t
end