答案1
tblr
环境的替代解决方案tabularray
包裹:
\documentclass{article}
\usepackage{tabularray}
\begin{document}
\begin{tblr}{
colspec = {|ccc|}, hline{2,3}, vline{2,3} = {2}{solid},
}
0 & 1 & 2 \\
3 & 4 & 5 \\
6 & 7 & 8
\end{tblr}
\end{document}
答案2
例如(\multicolumn{1}{column}{text}
局部改变细胞的行为):
\documentclass{article}
\begin{document}
\begin{tabular}{|ccc|}
0&1&2\\
\hline
\multicolumn{1}{|c|}{3}&\multicolumn{1}{c|}{4}&5\\
\hline
6&7&8
\end{tabular}
\end{document}