The specialized courses covered by mechanical and electronic engineering major are all required courses with high comprehensiveness and strong practicality. However, the traditional course teaching mostly emphasizes the explanation of theoretical knowledge and weakens the cultivation of students' practical ability. Based on years of teaching accumulation and feedback, practical teaching is explored from the aspects of adjusting experimental period and content, combining virtual-real practice and discipline competition, etc. With the help of various simulations, virtual experiment system is built, and comprehensive practical ability, engineering application ability and innovation ability of students are cultivated in-depth and comprehensively.