折腾了一下午,这个方案是有效的。感谢John Carr。 def perform_actions(): """ Perform and reset actions """ actions.perform() actions.reset_actions() for device in actions.w3c_actions.devices: device.clear_actions() https://www.youtube.com/channel/UCwLdl3H25pc94lPnKr6HPGw