本文介绍了如何使用pyautogui键入@的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在 python 2.7.x
中使用 pyautogui
并且我需要写字符@
".我已经尝试了我所知道的一切,但没有结果.什么代码行应该让我写@
"?
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 "@
"?
推荐答案
也许你可以尝试使用以下代码:
Maybe you can try use the following code:
import pyautogui
pyautogui.hotkey('shift', '2')
如果这不起作用,请尝试将 hotkey
替换为 hotkeys
If that does not work, try replacing hotkey
with hotkeys
这篇关于如何使用pyautogui键入@的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!