标签:start 元素 tar its bsp nat art 数列 ble
table.concat (table [, sep [, start [, end]]]):
concat是concatenate(连锁, 连接)的缩写. table.concat()函数列出参数中指定table的数组部分从start位置到end位置的所有元素, 元素间以指定的分隔符(sep)隔开。
fruits = {"banana","orange","apple"}
print("连接后的字符串 ",table.concat(fruits,", ", 2,3))
对给定的table进行升序排序
fruits = {"banana","orange","apple","grapes"}
table.sort(fruits)
标签:start 元素 tar its bsp nat art 数列 ble
原文地址:https://www.cnblogs.com/guomengkai/p/13304991.html