你可以做类似的事情
Column[Style[#[[1]], Background -> #[[2]]]
& /@ ({LinearModelFit[#[[1]], x, x]["ParameterTable"], #[[2]]}
& /@ {{listA, Yellow}, {listB, Red}})]
编辑
如果你想要一个直接的结局,你将不得不更多地解决这个问题。就像是:
listA = {5, 10, 6, 9, 10, 9, 8, 0, 4, 2};
listB = {2, 8, 7, 1, 7, 6, 10, 5, 1, 5};
tit = {"", "Estimate", "Standard Error", "t\[Hyphen]Statistic",
"P\[Hyphen]Value"};
Grid[Flatten[
Join[{{tit}}, (Join[{#[[1]]}, #[[2]]] & /@
Partition[(Riffle[#["BasisFunctions"], #["ParameterTableEntries"]] &@
LinearModelFit[#, x, x]), 2] & /@ {listA, listB})], 1],
Background -> {{White, {None}}, {None, {Pink, Pink, Yellow, Yellow}}},
Dividers -> {2 -> True, 2 -> True},
Frame -> {{True}, {True}},
FrameStyle -> Directive[Thickness[2], Blue]]