An electric surgical stapler, comprising: a handle, including a handle body, a driving motor and a control unit for controlling the driving motor to operate; a working head (120, 130, 140), including an anvil (121, 131, 141), a cartridge (122, 132, 142), a closing mechanism, a firing mechanism, a housing (125, 135 147) for housing the closing mechanism and the firing mechanism, a closing limit switch (128, 138, 144) configured to transmit information of a closing stroke of the closing mechanism to the control unit, and a closing height adjustment shift switch (127, 133, 143), wherein during closing, the control unit is configured to control the closing mechanism to move until the closing limit switch (128, 138, 144) is triggered so that a closing distance between the anvil (121, 131, 141) and the cartridge (122, 132, 142) is at a preset closing height, the preset closing height of the closing distance between the anvil (121, 131, 141) and the cartridge (122, 132, 142) is a maximum height of the closing distance between the anvil (121, 131, 141) and the cartridge (122, 132, 142), characterised in that the closing height adjustment shift switch (127, 133, 143) is configured to transmit information of a closing height control shift to the control unit, and the control unit is further configured to control the closing mechanism to move after receiving information transmitted from the closing limit switch (128, 138, 144), so that the closing distance between the anvil (121, 131, 141) and the cartridge (122, 132, 142) is adjusted to be consistent with a preset closing distance corresponding to a current shift of the closing height adjustment shift switch (127, 133, 143). a handle, including a handle body, a driving motor and a control unit for controlling the driving motor to operate; a working head (120, 130, 140), including an anvil (121, 131, 141), a cartridge (122, 132, 142), a closing mechanism, a firing mechanism, a housing (125, 135 147) for housing the closing mechanism and the firing mechanism, a closing limit switch (128, 138, 144) configured to transmit information of a closing stroke of the closing mechanism to the control unit, and a closing height adjustment shift switch (127, 133, 143), wherein during closing, the control unit is configured to control the closing mechanism to move until the closing limit switch (128, 138, 144) is triggered so that a closing distance between the anvil (121, 131, 141) and the cartridge (122, 132, 142) is at a preset closing height, the preset closing height of the closing distance between the anvil (121, 131, 141) and the cartridge (122, 132, 142) is a maximum height of the closing distance between the anvil (121, 131, 141) and the cartridge (122, 132, 142), characterised in that the closing height adjustment shift switch (127, 133, 143) is configured to transmit information of a closing height control shift to the control unit, and the control unit is further configured to control the closing mechanism to move after receiving information transmitted from the closing limit switch (128, 138, 144), so that the closing distance between the anvil (121, 131, 141) and the cartridge (122, 132, 142) is adjusted to be consistent with a preset closing distance corresponding to a current shift of the closing height adjustment shift switch (127, 133, 143).