Aiming at the problem of dynamic spectrum allocation of unmanned aerial vehicle (UAV) group in malicious interference scenario, a dynamic spectrum allocation model based on Stackelberg game was constructed. The jammer was the leader of Stackelberg game and the UAV group was the follower of Stackelberg game. The benefit functions of different game participants were designed. It was proved that the game had a stable Stackelberg equilibrium solution. On the basis of this, a hierarchical dynamic spectrum allocation algorithm was designed. When the leader used Q-learning to select the interference channel, the follower used random learning automata (SLA) to determine the channel allocation strategy. Simulation results showed that the proposed algorithm could obtain the optimal channel allocation strategy of UAV users, effectively improved the throughput performance of UAV users and maximized benefits.