\documentclass[hyperref,b4paper,twoside,cap,landscape,UTF8]{ctexbook}
\usepackage{amsmath,amssymb}
\usepackage{amsthm} 
\usepackage{enumerate}
\usepackage{xeCJK}
\usepackage[no-files]{xsim}

\begin{document}

\chapter{测试}
\section{test}
\subsection{第一小节}
\begin{exercise}
111
\end{exercise}
\begin{solution}
111
\end{solution}

\begin{exercise}
222
\end{exercise}
\begin{solution}
222
\end{solution}


\subsection{第二小节}
\begin{exercise}
11111
\end{exercise}
\begin{solution}
11111
\end{solution}

\setcounter{chapter}{0}
\setcounter{section}{0}
\setcounter{subsection}{0}
\chapter{第一章答案}
\section{第一节答案}
\subsection{第一小节答案}
\printsolutions[chapter=1,section=1]

\subsection{第二小节答案}
\printsolutions[chapter=1,section=1]
\end{document}

