Graduation design is a core course for railway engineering students to comprehensively use professional knowledge to conduct railway design.Programming is an important tool for carrying out railway engineering design and research,and it is also a necessary skill for railway engineering students to master in their undergraduate studies.It is feasible and necessary to develop the training and assessment of student programming in graduation design.This article introduces the practice of cultivating students'programming ability in the graduation design of the railway engineering,including how to integrate the programming ability in the undergraduate graduation design,how to cultivate students'programming ability at different stages of undergraduate graduation design,and the suggested teaching methods.