可以對一個剛建立好的 thread 傳入參數。 function hello(name) while true do coroutine.yield("Hello, " .. name) end end t1 = coroutine.create( ...
確定! 回上一頁