答案1
\multirow
使用和的组合\multicolumn
:
\documentclass{article}
\usepackage{multirow}
\begin{document}
\begin{tabular}{|c|c|c|c|c|}
\hline
\multirow{2}{*}{A} & \multirow{2}{*}{B} & \multicolumn{2}{c|}{C} & \multirow{2}{*}{F} \\
\cline{3-4}
& & D & E & \\
\hline
\end{tabular}
\end{document}
答案2
与。{NiceTabular}
nicematrix
\documentclass{article}
\usepackage{nicematrix}
\begin{document}
\begin{NiceTabular}{*{5}{w{c}{1cm}}}[hvlines,cell-space-limits=3pt]
\Block{2-1}{A} & \Block{2-1}{B} & \Block{1-2}{C} && \Block{2-1}{F} \\
& & D & E \\
A1 & & D1 & & E1 \\
A2 & & D2 & & E2 \\
A3 & & D3 & & E3 \\
A4 & & D4 & & E4 \\
\end{NiceTabular}
\end{document}