FlasH~
2021-07-23 20:10
采纳率: 100%
浏览 170

keyboard 模块安装后报错??

img
请教如何修复
img
import 正常

import keyboard

keyboard.press_and_release('shift+s, space')

Traceback (most recent call last):
File "d:/py/keybaordtest.py", line 1, in
import keyboard
File "d:\py\keyboard.py", line 5, in
keyboard.press_and_release('shift+s, space')
AttributeError: module 'keyboard' has no attribute 'press_and_release'

  • 写回答
  • 好问题 提建议
  • 追加酬金
  • 关注问题
  • 邀请回答

1条回答 默认 最新

相关推荐 更多相似问题