(3)Lua 迭代器与迭代函数

  

 

 无状态迭代器

多状态迭代器

迭代器函数

string.gmatch(str, pattern)

原文地址:https://www.cnblogs.com/buchizaodian/p/12508691.html