Take the Computer Composition Principle of the computer major course for example, this paper puts forward the ideological and political teaching ideas of Computer Composition Principle, excavates the hidden curriculum ideological and political elements, and probes into the curriculum ideological and political ideas contained in it; at the same time, it introduces the process of ideological and political teaching reform of Computer Composition Principle from the aspects of teaching content, teaching mode,
teaching methods and means, teaching case design and so on. The aim is to do a good job in the ideological and political construction of university curriculum, improve students' political awareness and political literacy, establish students' correct moral concepts,and really make a certain contribution to educating people with culture and morality.