答案1
像这样吗?
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{geometry}
\usepackage{siunitx}
\usepackage[svgnames]{xcolor}
\usepackage{lipsum}% just to generate text for the example
\usepackage[explicit]{titlesec}
\titleformat{\section}[display]{\normalsize\bfseries\sffamily}%
{ \raisebox{-1.25ex}{\parbox{2cm}{Question~\num[minimum-integer-digits = 2, detect-all]{\thesection}}}\color{Gainsboro}\titlerule[2pt]}{0em}{{ \vspace*{-2.1ex}
\hspace*{2cm}\color{Gainsboro}\titlerule[2pt]}\llap{\raisebox{-2ex}{#1}}}
\begin{document}
\section{2 points}
\lipsum[2]
\end{document}