When applied to the consensus tracking of repetitive leader-follower multiagent systems (MASs), most of existing distributed iterative learning control (DILC) methods assume that the dynamics of agents are exactly known or up to the affine form. In this article, we study a more general case where the dynamics of agents are unknown, nonlinear, nonaffine, and heterogeneous, and the communication topologies can be iteration-varying. More specifically, we first apply the controller-based dynamic linearization method in the iteration domain to obtain a parametric learning controller using only the local input-output data collected from neighboring agents in a directed graph, and then propose a data-driven distributed adaptive iterative learning control (DAILC) method through the parameter-adaptive learning methods. We show that for each time instant, the tracking error is ultimately bounded in the iteration domain for both of the cases with iteration-invariant and iteration-varying communication topologies. The simulation results show that the proposed DAILC method has faster convergence speed, higher tracking accuracy, and more robust learning and tracking in comparison with a typical DAILC method.