Liberal education focuses on developing students cognitive,thinking ability.The author tries to put new idea and concrete methods of teaching based on teaching experience.This paper presents how to train students from interest,ability and quality of programming.