The design of quadruped robot locomotion control systems exhibits inherent complexity, particularly in simultaneously addressing both gait optimization and balance control challenges. Traditional control strategies typically require laborious parameter tuning, whereas reinforcement learning algorithms offer innovative solutions through adaptive policy learning mechanisms. To overcome these challenges, this study proposes the reinforcement learning approach based on a modified deep deterministic policy gradient (DDPG) algorithm. We developed locomotion control models using both traditional control strategy and the improved DDPG framework, conducting comparative simulations across diverse terrains. Experimental results demonstrate that the DDPG controller achieves superior adaptability and stability in complex environments compared to conventional methods.