Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有这个问题,如果我尝试模拟大写、括号或下划线的按下,它会给我一个a。
大致是这样的代码
obj = "Some text (other things)" keyboard.type(obj)
编辑:我在 Mac 上使用 pyhton 3.7.1 和 pynput 1.4.2
您可以验证密钥代码
keyboard.KeyCode(char='[')
像这样