Abstract:The simplex method is regarded as a basic method for solving general linear programming problems. Its solving steps are numerous, and the construction and iterative process of the simplex tableau are relatively complex, so it is considered a key and difficult point in operations research teaching. To address the problem that the changing process of the simplex tableau is difficult for students to intuitively understand in traditional teaching, a programmed demonstration method for the solving process of the simplex method was designed by utilizing the matrix computation and symbolic computation functions of Python. In this method, Excel files are adopted as the input and output carriers of linear programming problems and simplex tableaus, and the automation of processes such as the construction of the initial simplex tableau, the determination of the initial basic feasible solution, the calculation of test numbers, the determination of entering and leaving basic variables, and row transformations is realized by combining Python libraries such as NumPy, SymPy, and Pandas. The simplex tableau formed in each iteration and the related decision-making process are output to Excel files. Through this method, the complete solving process of the simplex method can be intuitively viewed by students, the understanding of each calculation step and its logical relationships can be deepened, and thus the learning effect of the simplex method can be improved.