我希望用户从一系列可能的键中进行选择,然后根据按下的键显示一些内容。
from psychopy import core, visual, event
response_key=event.waitKeys(keyList=['<insert character here>','1','2','3','4','5','6','7','8','9','0']
if response_key[0][0]==<insert character here>:
<do some stuff>我已经找了几个小时了,我不明白为什么它不能识别那个特定的键,无论我把它放在'keyList‘中是什么。
发布于 2019-02-05 01:17:27
好吧,显然神经病叫它“quoteleft”
https://stackoverflow.com/questions/54488979
复制相似问题