示例,泛型和迭代器 2015/12/14 35705 清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>> function values( t ) -- body local i = 0 return function ( ... ) i = i+1 return t[i] end end t = {2,432,56,54,23} for element in values(t) do print(element) end