问题
I am using pyautogui in python 2.7.x and I need to write the character "@". I've tried everything I know but I got no results.
What code line/s should let me write the "@"?
回答1:
Maybe you can try use the following code:
import pyautogui
pyautogui.hotkey('shift', '2')
If that does not work, try replacing hotkey with hotkeys
来源:https://stackoverflow.com/questions/53585433/how-to-type-using-pyautogui