我正在用 Lua 编程,到目前为止我有这个。
S=tostring(M[i].AllSegmentsList) --it returns "MSH, PID"
for i in string.gmatch(S, ",") do --I have ", " as delimiter
t= {} --Now, I want the values returned by delimiter to be added into an array.
end
我怎样才能做到这一点。