print (getmetatable(tbl1) == mt) true metatable通過其包含的函數來給所掛接的table定義一些特殊的操作,包括: __add: 定義所掛接table的加法操作
確定! 回上一頁