假设我有以下算法
\documentclass[12pt]{article}
\usepackage{fullpage}
\usepackage{times}
%\usepackage{fancyhdr,graphicx,amsmath,amssymb}
\usepackage[ruled,vlined,linesnumbered]{algorithm2e}
\include{pythonlisting}
\begin{document}
\begin{algorithm}[H]
\SetAlgoLined
\KwResult{Write here the result }
initialization\;
\While{While condition}{
instructions\;
\eIf{condition}{
instructions1\;
instructions2\;
}{
instructions3\;
}
}
\caption{How to write algorithms}
\end{algorithm}
\end{document}
我想在 while 循环中添加更粗的垂直线,在 if 循环中添加更细的垂直线。