The invention brings forward a switching operation bill generation method of a railway transformation and distribution substation. The method comprises the following steps: selecting an operation task and an operation mode, a system, through carrying out topology analysis on a main wiring diagram, listing circuit breakers of all outlet wires, upper and lower isolation knife brakes, buses, bus couplers and the like, then entering graphic billing, when switching operation is carried out and an operation bill is issued, first of all, selecting a current operation mode, secondly, selecting devices and cabinet bodies which are related to by operation of this time, according to the currently selected devices, extracting rules related with the operation from a rule base to establish a new rule table, for the new rule table, generating operation statements according to a first-transverse-and-then-longitudinal sequence, and filling a bill sample with the generated operation statements. According to the invention, a logic relation table with powerful functions can be automatically generated, through the table, the association sequence among operation cabinet bodies and the logic locking relations among operation devices can be solved, and operation bills of all operation types of a whole station can be automatically generated in an accurate manner.