我相信,如果您使用的是Windows,则可以为此使用SendKeys。
http://www.rutherfurd.net/python/sendkeys
import SendKeysSendKeys.SendKeys("""{CAPSLOCK}{SCROLLOCK}{NUMLOCK}""")
我相信,如果您使用的是Windows,则可以为此使用SendKeys。
http://www.rutherfurd.net/python/sendkeys
import SendKeysSendKeys.SendKeys("""{CAPSLOCK}{SCROLLOCK}{NUMLOCK}""")