In recent years,mounting Mobile Edge Computing(MEC)servers on Unmanned Aerial Vehicle(UAV)to provide services for mobile ground users has been widely researched in academia and industry.However,in malicious jamming environments,how to effectively schedule resources to reduce system delay and energy consumption becomes a key challenge.Therefore,this paper considers a UAV-assisted MEC system under a malicious jammer,where an optimization model is established to minimize the weighted energy consumption and delay by jointly optimizing UAV flight trajectories,resource scheduling,and task allocation.As the optimization problem is difficult to be solved and the malicious jamming behavior is dynamic,a Twin Delayed Deep Deterministic(TD3)policy gradient algorithm is proposed to search for the optimal policy.At the same time,the Prioritized Experience Replay(PER)technique is added to improve the convergence speed and stability of the algorithm,which is highly effective against malicious interference attacks.The simulation results show that the proposed algorithm can effectively reduce the delay and energy consumption,and achieve good convergence and stability compared with other algorithms.