In Lua, the index of the first character is 1, the last is -1, and so on, such as: Print(string.sub("[hello world]",2,-2)) - output hello world
確定! 回上一頁