In wavelength calibration using arc lines, the normal approach is to use the strongest unsaturated lines, leaving weak lines unused. A new method is proposed in this paper, which not only utilizes the strong spectral lines, but also makes most use of weak spectral lines. In order to validate the effectiveness of the method we propose, experiments are performed on simulated spectra. Firstly, two kinds of spectra are generated: one with a short exposure and another with a long exposure. Secondly, calibration lines are chosen from the short exposure and long exposure spectra separately according to some rules. Thirdly, the initial wavelength calibration is completed by using the selected short-exposure lines. Fourthly, the approximate centroids of the selected long-exposure lines are obtained by utilizing the result of the initial wavelength calibration. These are then adjusted iteratively to obtain the centroids. Finally, the selected lines from the short- and long-exposures are combined to obtain the final wavelength calibration. Compared with traditional calibration methods which only use short exposures and strong lines, the proposed method is shown to be more accurate.