一、 效果如图
二、代码如下
1. 首部增加宏包:
1 \usepackage{multirow}
2. 正文部分增加:
1 \begin{table} 2 \centering 3 \caption{Suspiciousness of statements for \texttt{foo()} computed by different approaches} 4 \label{Tbl:Suspiciousness} 5 \begin{tabular}{|c||c|c|c|c||c|c|c|c|} 6 \hline 7 \multirow{ 2}{*}{statement} & \multicolumn{ 4}{c||}{coverage based} & \multicolumn{ 4}{c|}{hybrid slice spectrum based} \\ 8 \cline{ 2-9} & Tarantula & Naish2 & R\&R & HSS & Tarantula & Naish2 & R\&R & HSS \\ \hline \hline 9 $s_{ 1}$ & 0.5 &