How to type @ using pyautogui

ぃ、小莉子 提交于 2019-12-13 07:54:47

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!