In this paper, we investigate jamming-resilient unmanned aerial vehicle (UAV) path planning strategies for data collection in Internet of Things (IoT) networks, in which the typical UAV can learn the optimal trajectory to elude such jamming attacks. Specifically, the typical UAV is required to collect data from multiple distributed IoT nodes under collision avoidance, mission completion deadline, and kinematic constraints in the presence of jamming attacks. We first design an intelligent UAV jammer, which utilizes reinforcement learning to choose actions based on its observation. Then, an intelligent UAV anti-jamming strategy is constructed to deal with such attacks, and the optimal trajectory of the typical UAV is obtained via dueling double deep Q-network (D3QN). Simulation results show that the intelligent jamming attack has great influence on the UAV's performance, and the proposed defense strategy can recover the performance close to that in no-jammer scenarios.