答案1
\documentclass{article}
\usepackage{remreset}
\makeatletter
\@removefromreset{subsection}{section}
\renewcommand\thesubsection{\arabic{subsection}}
\makeatother
\begin{document}
\section{aaa}
\subsection{}
xxxx
\subsection{}
xxxx
\section{bbb}
\subsection{}
xxxx
\subsection{}
xxxx
\end{document}
或者....
\documentclass{article}
\usepackage{enumitem}
\begin{document}
\section{aaa}
\begin{enumerate}
\item xxxx
\item xxxx
\end{enumerate}
\section{bbb}
\begin{enumerate}[resume]
\item xxxx
\item xxxx
\end{enumerate}
\end{document}