看板 Python 關於我們 聯絡資訊
請問下列的code是否可以用在計算反應時間RT import pickle, os # change filename to match if you're using a username other than 'default' filename = 'default-sessions.dat' f = open(filename) sessions = [] try: while 1: sessions.append(pickle.load(f)) except EOFError: pass # do something with sessions here # for example, to get an idea of what is available, try print "Loaded %i sessions" % len(sessions) print "Available variables for the first session: \t", sessions[0].keys() print "Position reaction times for the first session: \t" i = 1 for rt in sessions[0]['session']['position1_rt']: print i, '=', rt i += 1 謝謝~ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 120.126.40.172
glob:這有能回答你嗎 =..=a 誰知道.dat儲存的資料結構.... 04/21 00:20