1 --第4题 输出99乘法表 2 function PrintMulitiplyTable() 3 for i = 1, 9 do 4 local res = {} 5 local str = "" 6 for j = 1, i do 7 res[j] = i * j 8 str = table.concat(res, " ") 9 end 10 print(str) 11 end 12 end 13 14 PrintMulitiplyTable()