摘要:
function producer() local i = 0 print(coroutine.running()) while true do i = i + 1 if i > 5 then error('out of number') end print('In Producer>> corou 阅读全文
posted @ 2022-05-29 17:46
ascertain
阅读(29)
评论(0)
推荐(0)
摘要:
repeat unitl 先执行循环体, 满足until条件时退出 for 阅读全文
posted @ 2022-05-29 12:59
ascertain
阅读(37)
评论(0)
推荐(0)
摘要:
一维数组 模拟 二维数组 array = {} rows = 3 cols = 4 for row = 1, rows do for col = 1, cols do array[(row - 1) * cols + col] = row * col end end for row = 1, row 阅读全文
posted @ 2022-05-29 00:12
ascertain
阅读(53)
评论(0)
推荐(0)

浙公网安备 33010602011771号