微博
加入微博一起分享新鲜事
登录
|
注册
140
使用Closure特性自己创建迭代器 function IteratorDIY(t1) function iteratorTableValue(t) local i=0 return function () i=i+1; return t[i] end end for i in iteratorTable… https://www.playcreator.cn/archives/programming-life/lua/3455/
请登录并选择要私信的好友
300
使用Closure特性自己创建迭代器 function IteratorDIY(t1) function iteratorTableValue(t) local i=0 return function () i=i+1; return t[i] end end for i in iteratorTable… https://www.playcreator.cn/archives/programming-life/lua/3455/
赞一下这个内容
公开
分享
获取分享按钮
正在发布微博,请稍候