![](/img/trans.png)
[英]Trying to accept the keyboard input 'R' alone or along side any other amount of keyboard inputs using either keyboard or pygame modules
問題是代碼無法檢測到當我按住“w”和/或“空格”時是否按下了“r”...(實際上是任何鍵) 我嘗試使用 try and except 來處理任意鍵 + 'r' 的組合。 但它沒有用。 我所需要的只是讓代碼能夠檢測到“r”輸入,即使我同時按下/按住另一個鍵也是如此。 然后,代碼等待 0.2 秒,然后 ...