local function createHero(id,gx,gy) local s = require("sprite.Sprite") print("id="..id) -- print a number ,for example 10 local h = s:getHero(id) end
function in sprite.Sprtie module like this function getHero(id) print("id",id) -- print a table, why table? should be number end
why print a table ,it should be number.