如何使用 pyautogui.press() 并列按下 2 个键?

How to press 2 key parallel by using pyautogui.press()?

我想保存一个文件,所以键盘快捷键是'ctrl'+'s',我试试pyautogui.press (['ctrlleft','s']) 但它最终同时按下了键。那么如何通过并列按键实现保存功能呢

the hotkey() can be passed several key strings which will be pressed down in order, and then released in reverse order

pyautogui.hotkey('ctrlleft', 's')

参考:https://pyautogui.readthedocs.io/en/latest/keyboard.html