In order to obtain the global optimal path of UAV flight path planning in low altitude penetration mode, this paper studies a method of UAV 3d flight path planning. Aiming at the shortcomings of original wolf pack algorithm, such as poor local search ability, invariable step size and slow convergence rate, this paper proposes an improved wolf pack algorithm based on the fluorescein guide mechanism in the artificial glowworm swarm optimization algorithm, which also improves the searching mode in wandering behavior, update the individual position in wolf pack with the teaching and learning optimization algorithms with feedback mechanism. In addition, dynamic mutation strategy was introduced to jump out of the local optimal solution. The results show that the improved algorithm is more effective in solving the problem of UAV 3d trajectory planning.