DPM: A Novel Training Method for Physics-Informed Neural Networks in Extrapolation