In this paper, the problem of iterative learning control for a class of linear discrete-time switched systems with arbitrary switched rules is considered. It is assume that the considered switched systems are operated during a finite time interval repetitively, and then the iterative learning control scheme can be introduced. It is also shown that under some given conditions, the D-type iterative learning control law can guarantee the asymptotic convergence of the output error between the desired output and the actual output for the entire time interval through the iterative learning process. An example is given to illustrate the effectiveness of the proposed approach.