Abstract:After a thorough analysis of the essence of FOIL algorithm, the paper discusses the way of programming a learner by using Visual Prolog and based on this algorithm, and at the same time demonstrates the key code and experiment results of this method in detail.