擅长:python、mysql、java
<p>代码外科医生在评论中回答了我。在</p>
<blockquote>
<p>Looks like there are a lot of youtube tutorials on the subject, surprisingly. This one shows a cross-platform approach using the <code>pynput</code> module, while this one looks to be using a windows-specific approach (<code>pyhook</code> and <code>pythoncom</code>). Can't vouch for either of these as I just found them through some searching, and I am sure there are others as well.</p>
</blockquote>
<p>我发现<code>pynput</code>适合我。(Windows 10/Python 3.4)</p>