print(string.format(“%s is %d”, “ten”, 10)). 上面例子裡的%s 表示字串,%d 表示數字,它們是Lua 的格式化輸出符號。 string.format 函式的用法跟C ...
確定! 回上一頁