In this paper, we address Hardy–Hilbert-type inequality by virtue of constructing weight coefficients and introducing parameters. By using the Euler–Maclaurin summation formula, Abel’s partial summation formula, and differential mean value theorem, a new weighted Hardy–Hilbert-type inequality containing two partial sums can be proven, which is a further generalization of an existing result. Based on the obtained results, we provide the equivalent statements of the best possible constant factor related to several parameters. Also, we illustrate how the inequalities obtained in the main results can generate some new Hardy–Hilbert-type inequalities.