0 / 0 / 0
Регистрация: 26.07.2012
Сообщений: 12

Не могу исправить. AttributeError: 'list' object has no attribute 'split'

28.07.2012, 15:37. Показов 26251. Ответов 21
Метки нет (Все метки)

Студворк — интернет-сервис помощи студентам
Приветствую.


Никак не могу исправить ошибку AttributeError: 'list' object has no attribute 'split' в плагине написанном на пуфоне к приложению на C++. Плагин викторины. Ошибка в функции чтения файла cfg/questions.txt и в разделении его на части в соответствии с форматом файла
cfg/questions.txt
Code
1
2
Question1*answer1
Question2*answer2
Сам плагин trivia_sqlite.py:

Python
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
#!/usr/bin/python
          # -*- coding: utf-8 -*-
          #import os, sys
# author = uakf.b && Profforg
# version = 1.0
# name = trivia_sqlite
# fullname = plugins/pychop/trivia_sqlite
# description = Asks trivia questions when enabled.
# help = Use !trivia on to enable trivia, and !trivia off to disable it. !trivia delay X changes the delay after asking a question. !trivia difficulty X changes the difficulty (1-5). !trivia category disables categories, and !trivia category X sets the category to X.
 
commands = ("trivia")
trivia_minaccess = 6  # only for commands; playing trivia needs no access :)
 
trivia_bnet = 0
trivia_enabled = True
trivia_question_delay = 15000  # millisecond delay after answered
trivia_delay = 30000  # millisecond delay between each answer stage
 
# these are dynamic during a trivia session
 
# depending on state next operation should be:
# 0: display the question
# 1: display ???? (# characters in answer)
# 2: display ?a?a (stage2 answer)
# 3: display aa?a (stage3 answer)
# 4: display aaaa (display answer) and -> 0
trivia_state = 0
trivia_lasttime = 0
 
# list of acceptable answers
trivia_answer = 0
 
# uncovered list version of trivia_answer[0] (???? -> ?a?a -> etc)
trivia_uncover = 0
 
# user who answered the question correctly
trivia_answer_user = ""
 
import host
import time
from collections import deque
import random
from plugindb import PluginDB
 
trivia_questions = deque([]) # this will be populated with question/answer pairs later
 
# PluginDB instance
pdb = 0
 
def dbReady():
        print("[TRIVIA] Loading scores...")
        
        pdb.dbconnect()
        pdb.dbGetScores()
        
        print("[TRIVIA] Found " + str(pdb.dbScoreNum()) + " scores")
 
def init():
        global pdb
 
        host.registerHandler('ProcessCommand', onCommand)
        host.registerHandler('ChatReceived', onTalk)
        host.registerHandler('Update', onUpdate)
        
        pdb = PluginDB()
        pdb.setPluginName("trivia")
        dbReady()
        
def deinit():
        host.unregisterHandler('ProcessCommand', onCommand)
        host.unregisterHandler('Update', onUpdate)
        host.unregisterHandler('ChatReceived', onTalk)
        pdb.close()
 
def onTalk(bnet, username, message):
        global trivia_lasttime, trivia_state, trivia_enabled
        
        # are we waiting for an answer?
        if trivia_enabled and trivia_state > 0:
                userAnswer = message.lower()
                
                if userAnswer in trivia_answer:
                        # update score
                        pdb.dbScoreAdd(username.lower(), 1)
                
                        # get new score
                        newScore = pdb.dbGetScore(username.lower())
                        
                        say("Correct answer " + userAnswer + "; Player " + username + " answered correctly !!! (his scores: " + str(newScore) + ")");
                        # reset
                        trivia_lasttime = gettime()
                        trivia_state = 0
 
def onUpdate(chop) :
        global trivia_lasttime, trivia_answer_user, trivia_state, trivia_enabled, trivia_answer, trivia_uncover
        
        if trivia_enabled:
                if trivia_state == 0:
                        if gettime() - trivia_lasttime > trivia_question_delay:
                                # it's time to ask a question
                                askQuestion()
                                # reset some things
                                trivia_lasttime = gettime()
                                trivia_answer_user = ""
                                trivia_state = 1
                elif trivia_state == 1:
                        if gettime() - trivia_lasttime > trivia_delay:
                                say("Hint: " + "".join(trivia_uncover))
                                # reset some things
                                trivia_lasttime = gettime()
                                trivia_state = 2
                elif trivia_state == 2 or trivia_state == 3:
                        if gettime() - trivia_lasttime > trivia_delay:
                                uncover()
                                say("Hint: " + "".join(trivia_uncover))
                                # reset some things
                                trivia_lasttime = gettime()
                                trivia_state = trivia_state + 1
                elif trivia_state == 4:
                        if gettime() - trivia_lasttime > trivia_delay:
                                # no one answered; let's show them the answer
                                say("No one answered correctly. The answer is: " + trivia_answer[0]);
                                # reset some things
                                trivia_lasttime = gettime()
                                trivia_state = 0
 
def uncover():
        global trivia_uncover
        # calculate how many to uncover; note that we might uncover same one twice
        # this formula ensures that we don't uncover too many
        num_uncover = int(round(.33 * len(trivia_uncover)))
        
        if len(trivia_uncover) <= 2:
                num_uncover = 0
        elif len(trivia_uncover) < 4:
                num_uncover = 1
        
        for i in range(num_uncover):
                index = random.randint(0, len(trivia_uncover) - 1)
                trivia_uncover[index] = trivia_answer[0][index]
 
def askQuestion():
        global trivia_answer, trivia_uncover, trivia_questions
        
        # make sure there are questions available
        if len(trivia_questions) == 0:
                addQuestions()
        
        # pair will now contain (question, answer)
        pair = trivia_questions.popleft()
        trivia_answer = pair[1]
        
        # generate trivia_uncover
        trivia_uncover = []
        for i in range(len(trivia_answer[0])):
                if trivia_answer[0][i] != " ":
                        trivia_uncover.append("_")
                else:
                        trivia_uncover.append(trivia_answer[0][i])
 
def say(message):
        trivia_bnet.queueChatCommand(message)
 
def addQuestions():
        global trivia_enabled, trivia_questions
        
        print("[TRIVIA] Reading questions from cfg/questions.txt")
        
        try:
                f = open('cfg/questions.txt', 'r' )
                # Store the lines onto 'content' variable
                content = f.readlines()
                # Close the file to not cause any errors
                f.close()
        except Exception as E:
                print("[TRIVIA] Error: unable to read cfg/questions.txt :" + str(E))
                trivia_questions.append(("Unable to load questions! You won't be able to answer this question D:", ["error"]))
                
                # disable trivia
                trivia_enabled = False
                
                return
        
        questionSplit = content.split("*")
        
        for questionString in questionSplit:
                parts = questionString.split("|")
                
                if(len(parts) < 2):
                        continue
                
                unformattedAnswers = parts[1].split("/")
                answers = []
                
                for x in unformattedAnswers:
                        # remove whitespace and convert to lowercase
                        answers.append(x.lower().strip())
                
                # parts[0] is question, parts[6] is category
                trivia_questions.append((parts[0], answers))
                print("[TRIVIA] Appended question: " + parts[0] + "; storing " + str(len(trivia_questions)) + " questions now")
 
def gettime():
        return int(round(time.time() * 1000))
 
def onCommand(bnet, user, command, payload, nType):
        global trivia_enabled, trivia_bnet, trivia_state, trivia_questions
        
        if command in commands:
                parts = payload.split(" ");
                
                if user.getAccess() >= trivia_minaccess:
                        if parts[0] == "on":
                                trivia_enabled = True
                                trivia_bnet = bnet
                                trivia_state = 0
                        elif parts[0] == "off":
                                trivia_enabled = False
                        elif parts[0] == "delay" and len(parts) >= 2:
                                trivia_delay = parts[1]
                                # clear questions since we changed the type
                                trivia_questions = deque([])
                if parts[0] == "top" and bnet.getOutPacketsQueued() < 3:
                        # display top 5
                        bnet.queueChatCommand(pdb.dbScoreTopStr(5))
                elif parts[0] == "score" and bnet.getOutPacketsQueued() < 3:
                        lowername = user.getName().lower()
                        
                        if len(parts) == 2:
                                lowername = parts[1].lower()
 
                        bnet.queueChatCommand(lowername + "  total scores: " + str(pdb.dbGetScore(lowername)))

Код ошибки:

Code
1
2
3
4
5
6
7
8
9
[PYTHON] [TRIVIA] Reading questions from cfg/questions.txt
[PYTHON] Traceback (most recent call last):
[PYTHON]   File "./plugins/pychop/trivia_sqlite.py", line 101, in onUpdate
[PYTHON]     askQuestion()
[PYTHON]   File "./plugins/pychop/trivia_sqlite.py", line 147, in askQuestion
[PYTHON]     addQuestions()
[PYTHON]   File "./plugins/pychop/trivia_sqlite.py", line 183, in addQuestions
[PYTHON]     questionSplit = content.split("*")
[PYTHON] AttributeError: 'list' object has no attribute 'split'
0
Programming
Эксперт
39485 / 9562 / 3019
Регистрация: 12.04.2006
Сообщений: 41,671
Блог
28.07.2012, 15:37
Ответы с готовыми решениями:

AttributeError: '_io.TextIOWrapper' object has no attribute 'split'
Здравствуйте. В файле находится строка состоящая из большого количества двухзначных чисел, разделенных пробелом. Содержимое файла я...

AttributeError: 'list' object has no attribute 'replace'
помогите, пожалуйста, с ошибкой Traceback (most recent call last): File &quot;Untitled3.py&quot;, line 26, in &lt;module&gt; ...

AttributeError: 'list' object has no attribute 'replace'
raceback (most recent call last): File &quot;/home/vladislav/Документы/python/parse.py&quot;, line 11, in &lt;module&gt; content.replace(' - - ',...

21
4866 / 3288 / 468
Регистрация: 10.12.2008
Сообщений: 10,570
29.07.2012, 05:07
приведи пример конкретного содержимого файла cfg/questions.txt

в модуле противоречивый код написан
1
0 / 0 / 0
Регистрация: 26.07.2012
Сообщений: 12
29.07.2012, 11:38  [ТС]
Цитата Сообщение от accept Посмотреть сообщение
приведи пример конкретного содержимого файла cfg/questions.txt

в модуле противоречивый код написан
Цитата Сообщение от Aleksandr46 Посмотреть сообщение
cfg/questions.txt
Code
1
2
Question1*answer1
Question2*answer2
Вот писал же, ну если прям совсем конкретный то вот например..

cfg/questions.txt
Code
1
2
Сколько будет два плюс два (ответьте цифрой)?*4
Назовите столицу России.*москва
Цитата Сообщение от accept Посмотреть сообщение
в модуле противоречивый код написан
Просто изначально было получение списка вопросов с URL. (не мой)
0
4866 / 3288 / 468
Регистрация: 10.12.2008
Сообщений: 10,570
29.07.2012, 12:46
начиная со 184 строки по 201, идёт какой-то код не в тему

Python
1
qa_pairs = [i.split('*') for i in content]
Цитата Сообщение от Aleksandr46 Посмотреть сообщение
Просто изначально было получение списка вопросов с URL. (не мой)
надо было запостить изначальный код и код со своими изменениями
1
0 / 0 / 0
Регистрация: 26.07.2012
Сообщений: 12
29.07.2012, 13:03  [ТС]
Цитата Сообщение от accept Посмотреть сообщение
начиная со 184 строки по 201, идёт какой-то код не в тему

Python
1
qa_pairs = [i.split('*') for i in content]

надо было запостить изначальный код и код со своими изменениями
Можешь уточнить пожалуйста куда вставлять эту строку?

С изменениями выше.

Оригинал:

Python
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
# author = uakf.b
# version = 1.0
# name = trivia
# fullname = plugins/pychop/trivia
# description = Asks trivia questions when enabled.
# help = Use !trivia on to enable trivia, and !trivia off to disable it. !trivia delay X changes the delay after asking a question. !trivia difficulty X changes the difficulty (1-5). !trivia category disables categories, and !trivia category X sets the category to X.
 
commands = ("trivia", "plugins/pychop/trivia")
trivia_minaccess = 6  # only for commands; playing trivia needs no access :)
 
trivia_bnet = 0
trivia_enabled = False
trivia_question_delay = 6000  # millisecond delay after answered
trivia_delay = 8000  # millisecond delay between each answer stage
trivia_difficulty = -1  # -1 means no difficulty
trivia_category = -1  # -1 means no category
 
# these are dynamic during a trivia session
 
# depending on state next operation should be:
# 0: display the question
# 1: display ???? (# characters in answer)
# 2: display ?a?a (stage2 answer)
# 3: display aa?a (stage3 answer)
# 4: display aaaa (display answer) and -> 0
trivia_state = 0
trivia_lasttime = 0
 
# list of acceptable answers
trivia_answer = 0
 
# uncovered list version of trivia_answer[0] (???? -> ?a?a -> etc)
trivia_uncover = 0
 
# user who answered the question correctly
trivia_answer_user = ""
 
import host
import time
from collections import deque
import urllib2
import urlparse
import random
from plugindb import PluginDB
 
trivia_questions = deque([]) # this will be populated with question/answer pairs later
 
# PluginDB instance
pdb = 0
 
def dbReady():
    print("[TRIVIA] Loading scores...")
    
    pdb.dbconnect()
    pdb.dbGetScores()
    
    print("[TRIVIA] Found " + str(pdb.dbScoreNum()) + " scores")
 
def init():
    global pdb
 
    host.registerHandler('ProcessCommand', onCommand)
    host.registerHandler('ChatReceived', onTalk)
    host.registerHandler('Update', onUpdate)
    
    pdb = PluginDB()
    pdb.setPluginName("trivia")
    dbReady()
    
def deinit():
    host.unregisterHandler('ProcessCommand', onCommand)
    host.unregisterHandler('Update', onUpdate)
    host.unregisterHandler('ChatReceived', onTalk)
    pdb.close()
 
def onTalk(bnet, username, message):
    global trivia_lasttime, trivia_state, trivia_enabled
    
    # are we waiting for an answer?
    if trivia_enabled and trivia_state > 0:
        userAnswer = message.lower()
        
        if userAnswer in trivia_answer:
            # update score
            pdb.dbScoreAdd(username.lower(), 1)
        
            # get new score
            newScore = pdb.dbGetScore(username.lower())
            
            say("The answer was: " + userAnswer + "; user " + username + " got it correct! (points: " + str(newScore) + ")");
            # reset
            trivia_lasttime = gettime()
            trivia_state = 0
 
def onUpdate(chop) :
    global trivia_lasttime, trivia_answer_user, trivia_state, trivia_enabled, trivia_answer, trivia_uncover
    
    if trivia_enabled:
        if trivia_state == 0:
            if gettime() - trivia_lasttime > trivia_question_delay:
                # it's time to ask a question
                askQuestion()
                # reset some things
                trivia_lasttime = gettime()
                trivia_answer_user = ""
                trivia_state = 1
        elif trivia_state == 1:
            if gettime() - trivia_lasttime > trivia_delay:
                say("Hint: " + "".join(trivia_uncover))
                # reset some things
                trivia_lasttime = gettime()
                trivia_state = 2
        elif trivia_state == 2 or trivia_state == 3:
            if gettime() - trivia_lasttime > trivia_delay:
                uncover()
                say("Hint: " + "".join(trivia_uncover))
                # reset some things
                trivia_lasttime = gettime()
                trivia_state = trivia_state + 1
        elif trivia_state == 4:
            if gettime() - trivia_lasttime > trivia_delay:
                # no one answered; let's show them the answer
                say("The answer was: " + trivia_answer[0]);
                # reset some things
                trivia_lasttime = gettime()
                trivia_state = 0
 
def uncover():
    global trivia_uncover
    # calculate how many to uncover; note that we might uncover same one twice
    # this formula ensures that we don't uncover too many
    num_uncover = int(round(.33 * len(trivia_uncover)))
    
    if len(trivia_uncover) <= 2:
        num_uncover = 0
    elif len(trivia_uncover) < 4:
        num_uncover = 1
    
    for i in range(num_uncover):
        index = random.randint(0, len(trivia_uncover) - 1)
        trivia_uncover[index] = trivia_answer[0][index]
 
def askQuestion():
    global trivia_answer, trivia_uncover, trivia_questions
    
    # make sure there are questions available
    if len(trivia_questions) == 0:
        addQuestions()
    
    # pair will now contain (question, answer)
    pair = trivia_questions.popleft()
    trivia_answer = pair[1]
    
    # generate trivia_uncover
    trivia_uncover = []
    for i in range(len(trivia_answer[0])):
        if trivia_answer[0][i] != " ":
            trivia_uncover.append("?")
        else:
            trivia_uncover.append(trivia_answer[0][i])
    
    say(pair[0] + " (category: " + pair[2] + ")")
 
def say(message):
    trivia_bnet.queueChatCommand(message)
 
def addQuestions():
    global trivia_enabled, trivia_questions
    targetURL = "http://snapnjacks.com/getq.php?client=plugins/pychop/trivia"
    
    # quote custom parameters to replace with %XX
    if trivia_difficulty != -1:
        targetURL += "&dif=" + urllib2.quote(str(trivia_difficulty))
    
    if trivia_category != -1:
        targetURL += "&ctg=" + urllib2.quote(trivia_category)
    
    print("[TRIVIA] Reading questions from " + targetURL)
    
    try:
        content = urllib2.urlopen(targetURL).read()
    except Exception as E:
        print("[TRIVIA] Error: unable to read " + targetURL + ":" + str(E))
        trivia_questions.append(("Unable to load questions! You won't be able to answer this question D:", ["error"]))
        
        # disable trivia
        trivia_enabled = False
        
        return
    
    questionSplit = content.split("**")
    
    for questionString in questionSplit:
        parts = questionString.split("|")
        
        if(len(parts) < 2):
            continue
        
        unformattedAnswers = parts[1].split("/")
        answers = []
        
        for x in unformattedAnswers:
            # remove whitespace and convert to lowercase
            answers.append(x.lower().strip())
        
        # parts[0] is question, parts[6] is category
        trivia_questions.append((parts[0], answers, parts[6]))
        print("[TRIVIA] Appended question: " + parts[0] + "; storing " + str(len(trivia_questions)) + " questions now")
 
def gettime():
    return int(round(time.time() * 1000))
 
def onCommand(bnet, user, command, payload, nType):
    global trivia_enabled, trivia_bnet, trivia_state, trivia_category, trivia_difficulty, trivia_questions
    
    if command in commands:
        parts = payload.split(" ");
        
        if user.getAccess() >= trivia_minaccess:
            if parts[0] == "on":
                trivia_enabled = True
                trivia_bnet = bnet
                trivia_state = 0
            
                print("[TRIVIA] Enabled with category=" + str(trivia_category) + " and diff=" + str(trivia_difficulty))
            elif parts[0] == "off":
                trivia_enabled = False
            elif parts[0] == "delay" and len(parts) >= 2:
                trivia_delay = parts[1]
            elif parts[0] == "category":
                if len(parts) >= 2:
                    trivia_category = parts[1]
                else:
                    trivia_category = -1
            
                # clear questions since we changed the type
                trivia_questions = deque([])
            elif parts[0] == "difficulty" and len(parts) >= 2:
                if len(parts) >= 2:
                    trivia_difficulty = parts[1]
                else:
                    trivia_difficulty = -1
 
                # clear questions since we changed the type
                trivia_questions = deque([])
 
        if parts[0] == "top" and bnet.getOutPacketsQueued() < 3:
            # display top 5
            bnet.queueChatCommand(pdb.dbScoreTopStr(5))
        elif parts[0] == "score" and bnet.getOutPacketsQueued() < 3:
            lowername = user.getName().lower()
            
            if len(parts) == 2:
                lowername = parts[1].lower()
 
            bnet.queueChatCommand(lowername + " points: " + str(pdb.dbGetScore(lowername)))
0
4866 / 3288 / 468
Регистрация: 10.12.2008
Сообщений: 10,570
29.07.2012, 13:06
Цитата Сообщение от Aleksandr46 Посмотреть сообщение
Можешь уточнить пожалуйста куда вставлять эту строку?
на место 184

Цитата Сообщение от Aleksandr46 Посмотреть сообщение
Python
1
content = urllib2.urlopen(targetURL).read()
ну вот, другое дело
ты неправильно файл читаешь, надо не .readlines(), а .read()

(по включению отбой)
1
0 / 0 / 0
Регистрация: 26.07.2012
Сообщений: 12
29.07.2012, 13:10  [ТС]
Цитата Сообщение от accept Посмотреть сообщение
на место 184


ну вот, другое дело
ты неправильно файл читаешь, надо не .readlines(), а .read()

(по включению отбой)
Ок, сделал content = f.read()

Но что-то ему не нравится)


[PYTHON] [TRIVIA] Reading questions from cfg/questions.txt
[PYTHON] Traceback (most recent call last):
[PYTHON] File "./plugins/pychop/trivia_sqlite.py", line 101, in onUpdate
[PYTHON] askQuestion()
[PYTHON] File "./plugins/pychop/trivia_sqlite.py", line 150, in askQuestion
[PYTHON] pair = trivia_questions.popleft()
Python
1
 IndexError: pop from an empty deque
0
4866 / 3288 / 468
Регистрация: 10.12.2008
Сообщений: 10,570
29.07.2012, 13:16
тебе надо скопировать всё, что он посылает по сети, в файл без изменений
и две звёздочки поставить, как в первоначальном скрипте
1
0 / 0 / 0
Регистрация: 26.07.2012
Сообщений: 12
29.07.2012, 13:20  [ТС]
Цитата Сообщение от accept Посмотреть сообщение
тебе надо скопировать всё, что он посылает по сети, в файл без изменений
и две звёздочки поставить, как в первоначальном скрипте
А можно как-то изменить в скрипте, чтобы понимался именно такой формат файла? С одной звёздочкой и с новой строкой для каждого вопроса*ответа.

Формат файла с url очень жесток...

http://snapnjacks.com/getq.php... hop/trivia
Code
1
music: name the artist/band that recorded this song: 1-2-3 (estefan/garcia)|gloria estefan|4|1.10|0|24794|Music/Lyrics/Boogus/chart toppers|**For Level 3 Ignis Fatuus, the souls are _ fighters.|tough|3|1.00|0|7292|Blizzard/DOTA/Warcraft|**music : 90's chart toppers: name the artist: heart of stone|cher|4|1.10|0|23864|Music/Lyrics/Boogus/chart toppers|**Stranded on Mars with only a monkey as a companion, an astronaut must figure out how to find oxygen, water, and food on the lifeless planet.|Robinson Crusoe on Mars|3|1.00|0|726|movies|**Give the symbol for tungsten?|W|2|1.00|0|36154|random/trivia|**music : punk rock : this type of music sucks|disco|4|1.10|0|25929|Music/Lyrics/Boogus/chart toppers|**music : 80's chart toppers: name the artist: too shy|kajagoogoo|4|1.10|0|16779|Music/Lyrics/Boogus/chart toppers|**Items: What type of item is a Ribcracker?|Quarterstaff|2|0.99|0|31919|Games/Blizzard/Diablo|**Diablo II: Skills: Which character uses the skill Dragon Flight?|Assassin|2|1.00|0|31208|Games/Blizzard/Diablo|**music : category: music trivia: whats the checkout time at the hotel california.|anytime you like|4|1.10|0|8883|Music/Lyrics/Boogus/chart toppers|**music : 60's chart toppers: name the artist: california sun|the rivieras|4|1.10|0|19254|Music/Lyrics/Boogus/chart toppers|**music : 60's chart toppers: name the artist: what a surprise|johnny maestro, the voice of the crests|4|1.10|0|22138|Music/Lyrics/Boogus/chart toppers|**What is the name of the airline that operates the ill-fated flight from LA to Chicago in the movie Airplane!?|Trans American |3|1.00|0|1007|Movies|**___ People|Ruthless|3|1.99|0|177|80s/films/movies|**Lyrics: Let's talk about second chances|Never Gonna Let You Go Sergio Mendes|4|1.15|0|1381|lyrics|**music : beatles tune: "the girl who's drivin' me mad...is goin' away"|ticket to ride|4|1.10|0|22317|Music/Lyrics/Boogus/chart toppers|**music : album: funky jam, struttin, (im gonna) cry myself blind|give out but dont give up|4|1.10|0|22496|Music/Lyrics/Boogus/chart toppers|**music : 80's chart toppers: name the artist: radio romance|tiffany|4|1.10|0|18971|Music/Lyrics/Boogus/chart toppers|**Lyrics: You always live your life never thinking of the future|Owner Of a Lonely Heart Yes|4|1.15|0|1458|lyrics|**music : ashes ashes all.....|fall|4|1.10|0|9648|Music/Lyrics/Boogus/chart toppers|**music : 50's chart toppers: name the artist: mambo italiano|rosemary clooney|4|1.10|0|20373|Music/Lyrics/Boogus/chart toppers|**music : complete this elvis song title: patch|it up|4|1.10|0|18506|Music/Lyrics/Boogus/chart toppers|**music : 60's chart toppers: name the artist: make believe|wind|4|1.10|0|20390|Music/Lyrics/Boogus/chart toppers|**music: name the artist/band that recorded this song: ticket to ride (lennon/mccartney)|the carpenters|4|1.10|0|9178|Music/Lyrics/Boogus/chart toppers|**A socially awkward but very bright 15-year-old girl being raised by a single mom discovers that she is the princess of a small European country because of the recent death of her long-absent father, who, unknown to her, was the crown prince of Genovia.|The Princess Diaries|3|1.00|0|710|movies|**music term: - a stage work involving elements of both opera and oratorio (e.g. stravinsky's oedipus rex).|opera oratorio|4|1.10|0|27295|Music/Lyrics/Boogus/chart toppers|**Lyrics: At this moment you mean everything!|Come On Eileen Dexys Midnight Runners|4|1.15|0|1639|lyrics|**In Fellowship Of the ring, before the Fellowship enters this place, Bill the Pony is sent away|The Mines of Moria/Mines of Moria|2|1.99|0|29186|LOTR/Lord Of The Rings/Movies|**Music - David Bowie gained major fame by transforming into this alien rocker|ziggy stardust|2|1.00|0|36621|random/trivia|**name the artist/band: shattered dreams|johnny hates jazz|4|1.10|0|14920|Music/Lyrics/Boogus/chart toppers|**
0
4866 / 3288 / 468
Регистрация: 10.12.2008
Сообщений: 10,570
29.07.2012, 13:28
на первый взгляд, программа завязана на этот формат

можешь в функции addQuestions() в конце вывести на экран trivia_questions после обработки данных в первоначальном формате, чтобы понять, что она строит по ним
0
0 / 0 / 0
Регистрация: 26.07.2012
Сообщений: 12
29.07.2012, 13:30  [ТС]
Цитата Сообщение от accept Посмотреть сообщение
можешь в функции addQuestions() в конце вывести на экран trivia_questions после обработки данных в первоначальном формате, чтобы понять, что она строит по ним
А как это сделать?
0
4866 / 3288 / 468
Регистрация: 10.12.2008
Сообщений: 10,570
29.07.2012, 13:35
в функции последней строкой поставь
Python
1
print trivia_questions
странно, что у него во втором питоне print'ы со скобками
1
0 / 0 / 0
Регистрация: 26.07.2012
Сообщений: 12
29.07.2012, 13:41  [ТС]
Цитата Сообщение от accept Посмотреть сообщение
в функции последней строкой поставь
Python
1
print trivia_questions
странно, что у него во втором питоне print'ы со скобками
Что-то не то)


[PYTHON][PYTHON] Traceback (most recent call last):
[PYTHON] File "./plugins/pychop/__init__.py", line 7, in <module>
[PYTHON] pluginman.init()
[PYTHON] File "./plugins/pychop/pluginman.py", line 36, in init
[PYTHON] importedPlugins[name] = __import__(name, globals(), locals(), [], -1)
[PYTHON] File "./plugins/pychop/trivia_sqlite.py", line 183
[PYTHON] print trivia_questions
[PYTHON] ^
Python
1
2
3
 IndentationError: unexpected indent
terminate called after throwing an instance of 'boost::python::error_already_set'
[!!!] caught signal 6, shutting down
Функция выглядит так:

Python
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
def addQuestions():
        global trivia_enabled, trivia_questions
        
        print("[TRIVIA] Reading questions from cfg/questions.txt")
        
        try:        
                f = open('cfg/questions.txt', 'r' )
                content = f.read()
                f.close()
        except Exception as E:
                print("[TRIVIA] Error: unable to read cfg/questions.txt :" + str(E))
                trivia_questions.append(("Unable to load questions! You won't be able to answer this question D:", ["error"]))
                
                # disable trivia
                trivia_enabled = False
                
                return
 
        qa_pairs = [i.split('*') for i in content]
        print trivia_questions
0
4866 / 3288 / 468
Регистрация: 10.12.2008
Сообщений: 10,570
30.07.2012, 01:49
не надо свою функцию, возьми его функцию и его данные и вставь в неё print
(если без скобок не работает, сделай со скобками)
1
0 / 0 / 0
Регистрация: 26.07.2012
Сообщений: 12
30.07.2012, 06:29  [ТС]
Цитата Сообщение от accept Посмотреть сообщение
не надо свою функцию, возьми его функцию и его данные и вставь в неё print
(если без скобок не работает, сделай со скобками)
Насколько я могу понять каждая строка начинающаяся с "deque" это вывод команды print добавленной в скрипт

Вывод С print

Code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
[PYTHON] [TRIVIA] Enabled with category=-1 and diff=-1
[PYTHON] [TRIVIA] Reading questions from http://snapnjacks.com/getq.php?client=plugins/pychop/trivia
[PYTHON] [TRIVIA] Appended question: music : complete this elvis song title: gentle on; storing 1 questions now
[PYTHON] deque([('music : complete this elvis song title: gentle on', ['my mind'], 'Music/Lyrics/Boogus/chart toppers')])
[PYTHON] [TRIVIA] Appended question: music: 80's tune: performed by: cyndi lauper; storing 2 questions now
[PYTHON] deque([('music : complete this elvis song title: gentle on', ['my mind'], 'Music/Lyrics/Boogus/chart toppers'), ("music: 80's tune: performed by: cyndi lauper", ['time after time'], 'Music/Lyrics/Boogus/chart toppers')])
[PYTHON] [TRIVIA] Appended question: music : 60's chart toppers: name the artist: watermelon man; storing 3 questions now
[PYTHON] deque([('music : complete this elvis song title: gentle on', ['my mind'], 'Music/Lyrics/Boogus/chart toppers'), ("music: 80's tune: performed by: cyndi lauper", ['time after time'], 'Music/Lyrics/Boogus/chart toppers'), ("music : 60's chart toppers: name the artist: watermelon man", ['mongo santamaria'], 'Music/Lyrics/Boogus/chart toppers')])
[PYTHON] [TRIVIA] Appended question: music : song: name the artist: johnny b. goode; storing 4 questions now
[PYTHON] deque([('music : complete this elvis song title: gentle on', ['my mind'], 'Music/Lyrics/Boogus/chart toppers'), ("music: 80's tune: performed by: cyndi lauper", ['time after time'], 'Music/Lyrics/Boogus/chart toppers'), ("music : 60's chart toppers: name the artist: watermelon man", ['mongo santamaria'], 'Music/Lyrics/Boogus/chart toppers'), ('music : song: name the artist: johnny b. goode', ['chuck berry'], 'Music/Lyrics/Boogus/chart toppers')])
[PYTHON] [TRIVIA] Appended question: music : 80's chart toppers: name the artist: master blaster; storing 5 questions now
[PYTHON] deque([('music : complete this elvis song title: gentle on', ['my mind'], 'Music/Lyrics/Boogus/chart toppers'), ("music: 80's tune: performed by: cyndi lauper", ['time after time'], 'Music/Lyrics/Boogus/chart toppers'), ("music : 60's chart toppers: name the artist: watermelon man", ['mongo santamaria'], 'Music/Lyrics/Boogus/chart toppers'), ('music : song: name the artist: johnny b. goode', ['chuck berry'], 'Music/Lyrics/Boogus/chart toppers'), ("music : 80's chart toppers: name the artist: master blaster", ['stevie wonder'], 'Music/Lyrics/Boogus/chart toppers')])
[PYTHON] [TRIVIA] Appended question: What is the base move speed of Moon Rider?; storing 6 questions now
[PYTHON] deque([('music : complete this elvis song title: gentle on', ['my mind'], 'Music/Lyrics/Boogus/chart toppers'), ("music: 80's tune: performed by: cyndi lauper", ['time after time'], 'Music/Lyrics/Boogus/chart toppers'), ("music : 60's chart toppers: name the artist: watermelon man", ['mongo santamaria'], 'Music/Lyrics/Boogus/chart toppers'), ('music : song: name the artist: johnny b. goode', ['chuck berry'], 'Music/Lyrics/Boogus/chart toppers'), ("music : 80's chart toppers: name the artist: master blaster", ['stevie wonder'], 'Music/Lyrics/Boogus/chart toppers'), ('What is the base move speed of Moon Rider?', ['320'], 'Blizzard/DOTA/Warcraft')])
[PYTHON] [TRIVIA] Appended question: "...... theyre all doing the monster mash and most of the taxis and the whores are only taking calls for cash" Whats the Dire Straits song title?; storing 7 questions now
[PYTHON] deque([('music : complete this elvis song title: gentle on', ['my mind'], 'Music/Lyrics/Boogus/chart toppers'), ("music: 80's tune: performed by: cyndi lauper", ['time after time'], 'Music/Lyrics/Boogus/chart toppers'), ("music : 60's chart toppers: name the artist: watermelon man", ['mongo santamaria'], 'Music/Lyrics/Boogus/chart toppers'), ('music : song: name the artist: johnny b. goode', ['chuck berry'], 'Music/Lyrics/Boogus/chart toppers'), ("music : 80's chart toppers: name the artist: master blaster", ['stevie wonder'], 'Music/Lyrics/Boogus/chart toppers'), ('What is the base move speed of Moon Rider?', ['320'], 'Blizzard/DOTA/Warcraft'), ('"...... theyre all doing the monster mash and most of the taxis and the whores are only taking calls for cash" Whats the Dire Straits song title?', ['your latest trick'], 'random/trivia')])
[PYTHON] [TRIVIA] Appended question: lyrics: name that tune: it's gettin' rough off the cuff i've got to say enough's enough; storing 8 questions now
[PYTHON] deque([('music : complete this elvis song title: gentle on', ['my mind'], 'Music/Lyrics/Boogus/chart toppers'), ("music: 80's tune: performed by: cyndi lauper", ['time after time'], 'Music/Lyrics/Boogus/chart toppers'), ("music : 60's chart toppers: name the artist: watermelon man", ['mongo santamaria'], 'Music/Lyrics/Boogus/chart toppers'), ('music : song: name the artist: johnny b. goode', ['chuck berry'], 'Music/Lyrics/Boogus/chart toppers'), ("music : 80's chart toppers: name the artist: master blaster", ['stevie wonder'], 'Music/Lyrics/Boogus/chart toppers'), ('What is the base move speed of Moon Rider?', ['320'], 'Blizzard/DOTA/Warcraft'), ('"...... theyre all doing the monster mash and most of the taxis and the whores are only taking calls for cash" Whats the Dire Straits song title?', ['your latest trick'], 'random/trivia'), ("lyrics: name that tune: it's gettin' rough off the cuff i've got to say enough's enough", ['one thing leads to another'], 'Music/Lyrics/Boogus/chart toppers')])
[PYTHON] [TRIVIA] Appended question: music : pop no 1s: who wrote simon & garfunkel's "bridge over troubled water"; storing 9 questions now
[PYTHON] deque([('music : complete this elvis song title: gentle on', ['my mind'], 'Music/Lyrics/Boogus/chart toppers'), ("music: 80's tune: performed by: cyndi lauper", ['time after time'], 'Music/Lyrics/Boogus/chart toppers'), ("music : 60's chart toppers: name the artist: watermelon man", ['mongo santamaria'], 'Music/Lyrics/Boogus/chart toppers'), ('music : song: name the artist: johnny b. goode', ['chuck berry'], 'Music/Lyrics/Boogus/chart toppers'), ("music : 80's chart toppers: name the artist: master blaster", ['stevie wonder'], 'Music/Lyrics/Boogus/chart toppers'), ('What is the base move speed of Moon Rider?', ['320'], 'Blizzard/DOTA/Warcraft'), ('"...... theyre all doing the monster mash and most of the taxis and the whores are only taking calls for cash" Whats the Dire Straits song title?', ['your latest trick'], 'random/trivia'), ("lyrics: name that tune: it's gettin' rough off the cuff i've got to say enough's enough", ['one thing leads to another'], 'Music/Lyrics/Boogus/chart toppers'), ('music : pop no 1s: who wrote simon & garfunkel\'s "bridge over troubled water"', ['paul simon'], 'Music/Lyrics/Boogus/chart toppers')])
[PYTHON] [TRIVIA] Appended question: Runes: Which Rune gives 25% Open Wounds (Weapons); storing 10 questions now
[PYTHON] deque([('music : complete this elvis song title: gentle on', ['my mind'], 'Music/Lyrics/Boogus/chart toppers'), ("music: 80's tune: performed by: cyndi lauper", ['time after time'], 'Music/Lyrics/Boogus/chart toppers'), ("music : 60's chart toppers: name the artist: watermelon man", ['mongo santamaria'], 'Music/Lyrics/Boogus/chart toppers'), ('music : song: name the artist: johnny b. goode', ['chuck berry'], 'Music/Lyrics/Boogus/chart toppers'), ("music : 80's chart toppers: name the artist: master blaster", ['stevie wonder'], 'Music/Lyrics/Boogus/chart toppers'), ('What is the base move speed of Moon Rider?', ['320'], 'Blizzard/DOTA/Warcraft'), ('"...... theyre all doing the monster mash and most of the taxis and the whores are only taking calls for cash" Whats the Dire Straits song title?', ['your latest trick'], 'random/trivia'), ("lyrics: name that tune: it's gettin' rough off the cuff i've got to say enough's enough", ['one thing leads to another'], 'Music/Lyrics/Boogus/chart toppers'), ('music : pop no 1s: who wrote simon & garfunkel\'s "bridge over troubled water"', ['paul simon'], 'Music/Lyrics/Boogus/chart toppers'), ('Runes: Which Rune gives 25% Open Wounds (Weapons)', ['um rune'], 'Blizzard/Diablo II/Diablo 2/LOD')])
[PYTHON] [TRIVIA] Appended question: music : 80's chart toppers: name the artist: if she knew what she wants; storing 11 questions now
[PYTHON] deque([('music : complete this elvis song title: gentle on', ['my mind'], 'Music/Lyrics/Boogus/chart toppers'), ("music: 80's tune: performed by: cyndi lauper", ['time after time'], 'Music/Lyrics/Boogus/chart toppers'), ("music : 60's chart toppers: name the artist: watermelon man", ['mongo santamaria'], 'Music/Lyrics/Boogus/chart toppers'), ('music : song: name the artist: johnny b. goode', ['chuck berry'], 'Music/Lyrics/Boogus/chart toppers'), ("music : 80's chart toppers: name the artist: master blaster", ['stevie wonder'], 'Music/Lyrics/Boogus/chart toppers'), ('What is the base move speed of Moon Rider?', ['320'], 'Blizzard/DOTA/Warcraft'), ('"...... theyre all doing the monster mash and most of the taxis and the whores are only taking calls for cash" Whats the Dire Straits song title?', ['your latest trick'], 'random/trivia'), ("lyrics: name that tune: it's gettin' rough off the cuff i've got to say enough's enough", ['one thing leads to another'], 'Music/Lyrics/Boogus/chart toppers'), ('music : pop no 1s: who wrote simon & garfunkel\'s "bridge over troubled water"', ['paul simon'], 'Music/Lyrics/Boogus/chart toppers'), ('Runes: Which Rune gives 25% Open Wounds (Weapons)', ['um rune'], 'Blizzard/Diablo II/Diablo 2/LOD'), ("music : 80's chart toppers: name the artist: if she knew what she wants", ['bangles'], 'Music/Lyrics/Boogus/chart toppers')])
[PYTHON] [TRIVIA] Appended question: music: 80's tune: performed by: tommy tutone; storing 12 questions now
[PYTHON] deque([('music : complete this elvis song title: gentle on', ['my mind'], 'Music/Lyrics/Boogus/chart toppers'), ("music: 80's tune: performed by: cyndi lauper", ['time after time'], 'Music/Lyrics/Boogus/chart toppers'), ("music : 60's chart toppers: name the artist: watermelon man", ['mongo santamaria'], 'Music/Lyrics/Boogus/chart toppers'), ('music : song: name the artist: johnny b. goode', ['chuck berry'], 'Music/Lyrics/Boogus/chart toppers'), ("music : 80's chart toppers: name the artist: master blaster", ['stevie wonder'], 'Music/Lyrics/Boogus/chart toppers'), ('What is the base move speed of Moon Rider?', ['320'], 'Blizzard/DOTA/Warcraft'), ('"...... theyre all doing the monster mash and most of the taxis and the whores are only taking calls for cash" Whats the Dire Straits song title?', ['your latest trick'], 'random/trivia'), ("lyrics: name that tune: it's gettin' rough off the cuff i've got to say enough's enough", ['one thing leads to another'], 'Music/Lyrics/Boogus/chart toppers'), ('music : pop no 1s: who wrote simon & garfunkel\'s "bridge over troubled water"', ['paul simon'], 'Music/Lyrics/Boogus/chart toppers'), ('Runes: Which Rune gives 25% Open Wounds (Weapons)', ['um rune'], 'Blizzard/Diablo II/Diablo 2/LOD'), ("music : 80's chart toppers: name the artist: if she knew what she wants", ['bangles'], 'Music/Lyrics/Boogus/chart toppers'), ("music: 80's tune: performed by: tommy tutone", ['jenny (867-5309)'], 'Music/Lyrics/Boogus/chart toppers')])
[PYTHON] [TRIVIA] Appended question: Top ___; storing 13 questions now
[PYTHON] deque([('music : complete this elvis song title: gentle on', ['my mind'], 'Music/Lyrics/Boogus/chart toppers'), ("music: 80's tune: performed by: cyndi lauper", ['time after time'], 'Music/Lyrics/Boogus/chart toppers'), ("music : 60's chart toppers: name the artist: watermelon man", ['mongo santamaria'], 'Music/Lyrics/Boogus/chart toppers'), ('music : song: name the artist: johnny b. goode', ['chuck berry'], 'Music/Lyrics/Boogus/chart toppers'), ("music : 80's chart toppers: name the artist: master blaster", ['stevie wonder'], 'Music/Lyrics/Boogus/chart toppers'), ('What is the base move speed of Moon Rider?', ['320'], 'Blizzard/DOTA/Warcraft'), ('"...... theyre all doing the monster mash and most of the taxis and the whores are only taking calls for cash" Whats the Dire Straits song title?', ['your latest trick'], 'random/trivia'), ("lyrics: name that tune: it's gettin' rough off the cuff i've got to say enough's enough", ['one thing leads to another'], 'Music/Lyrics/Boogus/chart toppers'), ('music : pop no 1s: who wrote simon & garfunkel\'s "bridge over troubled water"', ['paul simon'], 'Music/Lyrics/Boogus/chart toppers'), ('Runes: Which Rune gives 25% Open Wounds (Weapons)', ['um rune'], 'Blizzard/Diablo II/Diablo 2/LOD'), ("music : 80's chart toppers: name the artist: if she knew what she wants", ['bangles'], 'Music/Lyrics/Boogus/chart toppers'), ("music: 80's tune: performed by: tommy tutone", ['jenny (867-5309)'], 'Music/Lyrics/Boogus/chart toppers'), ('Top ___', ['secret'], '80s/films/movies')])
[PYTHON] [TRIVIA] Appended question: music: 80's tune: performed by: madonna; storing 14 questions now
[PYTHON] deque([('music : complete this elvis song title: gentle on', ['my mind'], 'Music/Lyrics/Boogus/chart toppers'), ("music: 80's tune: performed by: cyndi lauper", ['time after time'], 'Music/Lyrics/Boogus/chart toppers'), ("music : 60's chart toppers: name the artist: watermelon man", ['mongo santamaria'], 'Music/Lyrics/Boogus/chart toppers'), ('music : song: name the artist: johnny b. goode', ['chuck berry'], 'Music/Lyrics/Boogus/chart toppers'), ("music : 80's chart toppers: name the artist: master blaster", ['stevie wonder'], 'Music/Lyrics/Boogus/chart toppers'), ('What is the base move speed of Moon Rider?', ['320'], 'Blizzard/DOTA/Warcraft'), ('"...... theyre all doing the monster mash and most of the taxis and the whores are only taking calls for cash" Whats the Dire Straits song title?', ['your latest trick'], 'random/trivia'), ("lyrics: name that tune: it's gettin' rough off the cuff i've got to say enough's enough", ['one thing leads to another'], 'Music/Lyrics/Boogus/chart toppers'), ('music : pop no 1s: who wrote simon & garfunkel\'s "bridge over troubled water"', ['paul simon'], 'Music/Lyrics/Boogus/chart toppers'), ('Runes: Which Rune gives 25% Open Wounds (Weapons)', ['um rune'], 'Blizzard/Diablo II/Diablo 2/LOD'), ("music : 80's chart toppers: name the artist: if she knew what she wants", ['bangles'], 'Music/Lyrics/Boogus/chart toppers'), ("music: 80's tune: performed by: tommy tutone", ['jenny (867-5309)'], 'Music/Lyrics/Boogus/chart toppers'), ('Top ___', ['secret'], '80s/films/movies'), ("music: 80's tune: performed by: madonna", ['crazy for you'], 'Music/Lyrics/Boogus/chart toppers')])
[PYTHON] [TRIVIA] Appended question: name the artist/band: kyrie; storing 15 questions now
[PYTHON] deque([('music : complete this elvis song title: gentle on', ['my mind'], 'Music/Lyrics/Boogus/chart toppers'), ("music: 80's tune: performed by: cyndi lauper", ['time after time'], 'Music/Lyrics/Boogus/chart toppers'), ("music : 60's chart toppers: name the artist: watermelon man", ['mongo santamaria'], 'Music/Lyrics/Boogus/chart toppers'), ('music : song: name the artist: johnny b. goode', ['chuck berry'], 'Music/Lyrics/Boogus/chart toppers'), ("music : 80's chart toppers: name the artist: master blaster", ['stevie wonder'], 'Music/Lyrics/Boogus/chart toppers'), ('What is the base move speed of Moon Rider?', ['320'], 'Blizzard/DOTA/Warcraft'), ('"...... theyre all doing the monster mash and most of the taxis and the whores are only taking calls for cash" Whats the Dire Straits song title?', ['your latest trick'], 'random/trivia'), ("lyrics: name that tune: it's gettin' rough off the cuff i've got to say enough's enough", ['one thing leads to another'], 'Music/Lyrics/Boogus/chart toppers'), ('music : pop no 1s: who wrote simon & garfunkel\'s "bridge over troubled water"', ['paul simon'], 'Music/Lyrics/Boogus/chart toppers'), ('Runes: Which Rune gives 25% Open Wounds (Weapons)', ['um rune'], 'Blizzard/Diablo II/Diablo 2/LOD'), ("music : 80's chart toppers: name the artist: if she knew what she wants", ['bangles'], 'Music/Lyrics/Boogus/chart toppers'), ("music: 80's tune: performed by: tommy tutone", ['jenny (867-5309)'], 'Music/Lyrics/Boogus/chart toppers'), ('Top ___', ['secret'], '80s/films/movies'), ("music: 80's tune: performed by: madonna", ['crazy for you'], 'Music/Lyrics/Boogus/chart toppers'), ('name the artist/band: kyrie', ['mr. mister'], 'Music/Lyrics/Boogus/chart toppers')])
[PYTHON] [TRIVIA] Appended question: WarCraft III: WarCraft III: Which Orc Hero Can Cast Stampede?; storing 16 questions now
[PYTHON] deque([('music : complete this elvis song title: gentle on', ['my mind'], 'Music/Lyrics/Boogus/chart toppers'), ("music: 80's tune: performed by: cyndi lauper", ['time after time'], 'Music/Lyrics/Boogus/chart toppers'), ("music : 60's chart toppers: name the artist: watermelon man", ['mongo santamaria'], 'Music/Lyrics/Boogus/chart toppers'), ('music : song: name the artist: johnny b. goode', ['chuck berry'], 'Music/Lyrics/Boogus/chart toppers'), ("music : 80's chart toppers: name the artist: master blaster", ['stevie wonder'], 'Music/Lyrics/Boogus/chart toppers'), ('What is the base move speed of Moon Rider?', ['320'], 'Blizzard/DOTA/Warcraft'), ('"...... theyre all doing the monster mash and most of the taxis and the whores are only taking calls for cash" Whats the Dire Straits song title?', ['your latest trick'], 'random/trivia'), ("lyrics: name that tune: it's gettin' rough off the cuff i've got to say enough's enough", ['one thing leads to another'], 'Music/Lyrics/Boogus/chart toppers'), ('music : pop no 1s: who wrote simon & garfunkel\'s "bridge over troubled water"', ['paul simon'], 'Music/Lyrics/Boogus/chart toppers'), ('Runes: Which Rune gives 25% Open Wounds (Weapons)', ['um rune'], 'Blizzard/Diablo II/Diablo 2/LOD'), ("music : 80's chart toppers: name the artist: if she knew what she wants", ['bangles'], 'Music/Lyrics/Boogus/chart toppers'), ("music: 80's tune: performed by: tommy tutone", ['jenny (867-5309)'], 'Music/Lyrics/Boogus/chart toppers'), ('Top ___', ['secret'], '80s/films/movies'), ("music: 80's tune: performed by: madonna", ['crazy for you'], 'Music/Lyrics/Boogus/chart toppers'), ('name the artist/band: kyrie', ['mr. mister'], 'Music/Lyrics/Boogus/chart toppers'), ('WarCraft III: WarCraft III: Which Orc Hero Can Cast Stampede?', ['beastmaster'], 'Blizzard/Warcraft III/Warcraft 3')])
[PYTHON] [TRIVIA] Appended question: music : what name is given to the style of western music from about 1600 1750; storing 17 questions now
[PYTHON] deque([('music : complete this elvis song title: gentle on', ['my mind'], 'Music/Lyrics/Boogus/chart toppers'), ("music: 80's tune: performed by: cyndi lauper", ['time after time'], 'Music/Lyrics/Boogus/chart toppers'), ("music : 60's chart toppers: name the artist: watermelon man", ['mongo santamaria'], 'Music/Lyrics/Boogus/chart toppers'), ('music : song: name the artist: johnny b. goode', ['chuck berry'], 'Music/Lyrics/Boogus/chart toppers'), ("music : 80's chart toppers: name the artist: master blaster", ['stevie wonder'], 'Music/Lyrics/Boogus/chart toppers'), ('What is the base move speed of Moon Rider?', ['320'], 'Blizzard/DOTA/Warcraft'), ('"...... theyre all doing the monster mash and most of the taxis and the whores are only taking calls for cash" Whats the Dire Straits song title?', ['your latest trick'], 'random/trivia'), ("lyrics: name that tune: it's gettin' rough off the cuff i've got to say enough's enough", ['one thing leads to another'], 'Music/Lyrics/Boogus/chart toppers'), ('music : pop no 1s: who wrote simon & garfunkel\'s "bridge over troubled water"', ['paul simon'], 'Music/Lyrics/Boogus/chart toppers'), ('Runes: Which Rune gives 25% Open Wounds (Weapons)', ['um rune'], 'Blizzard/Diablo II/Diablo 2/LOD'), ("music : 80's chart toppers: name the artist: if she knew what she wants", ['bangles'], 'Music/Lyrics/Boogus/chart toppers'), ("music: 80's tune: performed by: tommy tutone", ['jenny (867-5309)'], 'Music/Lyrics/Boogus/chart toppers'), ('Top ___', ['secret'], '80s/films/movies'), ("music: 80's tune: performed by: madonna", ['crazy for you'], 'Music/Lyrics/Boogus/chart toppers'), ('name the artist/band: kyrie', ['mr. mister'], 'Music/Lyrics/Boogus/chart toppers'), ('WarCraft III: WarCraft III: Which Orc Hero Can Cast Stampede?', ['beastmaster'], 'Blizzard/Warcraft III/Warcraft 3'), ('music : what name is given to the style of western music from about 1600 1750', ['baroque'], 'Music/Lyrics/Boogus/chart toppers')])
[PYTHON] [TRIVIA] Appended question: ___ Beach, USA; storing 18 questions now
[PYTHON] deque([('music : complete this elvis song title: gentle on', ['my mind'], 'Music/Lyrics/Boogus/chart toppers'), ("music: 80's tune: performed by: cyndi lauper", ['time after time'], 'Music/Lyrics/Boogus/chart toppers'), ("music : 60's chart toppers: name the artist: watermelon man", ['mongo santamaria'], 'Music/Lyrics/Boogus/chart toppers'), ('music : song: name the artist: johnny b. goode', ['chuck berry'], 'Music/Lyrics/Boogus/chart toppers'), ("music : 80's chart toppers: name the artist: master blaster", ['stevie wonder'], 'Music/Lyrics/Boogus/chart toppers'), ('What is the base move speed of Moon Rider?', ['320'], 'Blizzard/DOTA/Warcraft'), ('"...... theyre all doing the monster mash and most of the taxis and the whores are only taking calls for cash" Whats the Dire Straits song title?', ['your latest trick'], 'random/trivia'), ("lyrics: name that tune: it's gettin' rough off the cuff i've got to say enough's enough", ['one thing leads to another'], 'Music/Lyrics/Boogus/chart toppers'), ('music : pop no 1s: who wrote simon & garfunkel\'s "bridge over troubled water"', ['paul simon'], 'Music/Lyrics/Boogus/chart toppers'), ('Runes: Which Rune gives 25% Open Wounds (Weapons)', ['um rune'], 'Blizzard/Diablo II/Diablo 2/LOD'), ("music : 80's chart toppers: name the artist: if she knew what she wants", ['bangles'], 'Music/Lyrics/Boogus/chart toppers'), ("music: 80's tune: performed by: tommy tutone", ['jenny (867-5309)'], 'Music/Lyrics/Boogus/chart toppers'), ('Top ___', ['secret'], '80s/films/movies'), ("music: 80's tune: performed by: madonna", ['crazy for you'], 'Music/Lyrics/Boogus/chart toppers'), ('name the artist/band: kyrie', ['mr. mister'], 'Music/Lyrics/Boogus/chart toppers'), ('WarCraft III: WarCraft III: Which Orc Hero Can Cast Stampede?', ['beastmaster'], 'Blizzard/Warcraft III/Warcraft 3'), ('music : what name is given to the style of western music from about 1600 1750', ['baroque'], 'Music/Lyrics/Boogus/chart toppers'), ('___ Beach, USA', ['sizzle'], '80s/films/movies')])
[PYTHON] [TRIVIA] Appended question: Skills: _____ is the prerequisite for Golem Mastery.; storing 19 questions now
[PYTHON] deque([('music : complete this elvis song title: gentle on', ['my mind'], 'Music/Lyrics/Boogus/chart toppers'), ("music: 80's tune: performed by: cyndi lauper", ['time after time'], 'Music/Lyrics/Boogus/chart toppers'), ("music : 60's chart toppers: name the artist: watermelon man", ['mongo santamaria'], 'Music/Lyrics/Boogus/chart toppers'), ('music : song: name the artist: johnny b. goode', ['chuck berry'], 'Music/Lyrics/Boogus/chart toppers'), ("music : 80's chart toppers: name the artist: master blaster", ['stevie wonder'], 'Music/Lyrics/Boogus/chart toppers'), ('What is the base move speed of Moon Rider?', ['320'], 'Blizzard/DOTA/Warcraft'), ('"...... theyre all doing the monster mash and most of the taxis and the whores are only taking calls for cash" Whats the Dire Straits song title?', ['your latest trick'], 'random/trivia'), ("lyrics: name that tune: it's gettin' rough off the cuff i've got to say enough's enough", ['one thing leads to another'], 'Music/Lyrics/Boogus/chart toppers'), ('music : pop no 1s: who wrote simon & garfunkel\'s "bridge over troubled water"', ['paul simon'], 'Music/Lyrics/Boogus/chart toppers'), ('Runes: Which Rune gives 25% Open Wounds (Weapons)', ['um rune'], 'Blizzard/Diablo II/Diablo 2/LOD'), ("music : 80's chart toppers: name the artist: if she knew what she wants", ['bangles'], 'Music/Lyrics/Boogus/chart toppers'), ("music: 80's tune: performed by: tommy tutone", ['jenny (867-5309)'], 'Music/Lyrics/Boogus/chart toppers'), ('Top ___', ['secret'], '80s/films/movies'), ("music: 80's tune: performed by: madonna", ['crazy for you'], 'Music/Lyrics/Boogus/chart toppers'), ('name the artist/band: kyrie', ['mr. mister'], 'Music/Lyrics/Boogus/chart toppers'), ('WarCraft III: WarCraft III: Which Orc Hero Can Cast Stampede?', ['beastmaster'], 'Blizzard/Warcraft III/Warcraft 3'), ('music : what name is given to the style of western music from about 1600 1750', ['baroque'], 'Music/Lyrics/Boogus/chart toppers'), ('___ Beach, USA', ['sizzle'], '80s/films/movies'), ('Skills: _____ is the prerequisite for Golem Mastery.', ['clay golem'], 'Blizzard/Diablo II/Diablo 2/LOD')])
[PYTHON] [TRIVIA] Appended question: music : 90's chart toppers: name the artist: and so it goes; storing 20 questions now
[PYTHON] deque([('music : complete this elvis song title: gentle on', ['my mind'], 'Music/Lyrics/Boogus/chart toppers'), ("music: 80's tune: performed by: cyndi lauper", ['time after time'], 'Music/Lyrics/Boogus/chart toppers'), ("music : 60's chart toppers: name the artist: watermelon man", ['mongo santamaria'], 'Music/Lyrics/Boogus/chart toppers'), ('music : song: name the artist: johnny b. goode', ['chuck berry'], 'Music/Lyrics/Boogus/chart toppers'), ("music : 80's chart toppers: name the artist: master blaster", ['stevie wonder'], 'Music/Lyrics/Boogus/chart toppers'), ('What is the base move speed of Moon Rider?', ['320'], 'Blizzard/DOTA/Warcraft'), ('"...... theyre all doing the monster mash and most of the taxis and the whores are only taking calls for cash" Whats the Dire Straits song title?', ['your latest trick'], 'random/trivia'), ("lyrics: name that tune: it's gettin' rough off the cuff i've got to say enough's enough", ['one thing leads to another'], 'Music/Lyrics/Boogus/chart toppers'), ('music : pop no 1s: who wrote simon & garfunkel\'s "bridge over troubled water"', ['paul simon'], 'Music/Lyrics/Boogus/chart toppers'), ('Runes: Which Rune gives 25% Open Wounds (Weapons)', ['um rune'], 'Blizzard/Diablo II/Diablo 2/LOD'), ("music : 80's chart toppers: name the artist: if she knew what she wants", ['bangles'], 'Music/Lyrics/Boogus/chart toppers'), ("music: 80's tune: performed by: tommy tutone", ['jenny (867-5309)'], 'Music/Lyrics/Boogus/chart toppers'), ('Top ___', ['secret'], '80s/films/movies'), ("music: 80's tune: performed by: madonna", ['crazy for you'], 'Music/Lyrics/Boogus/chart toppers'), ('name the artist/band: kyrie', ['mr. mister'], 'Music/Lyrics/Boogus/chart toppers'), ('WarCraft III: WarCraft III: Which Orc Hero Can Cast Stampede?', ['beastmaster'], 'Blizzard/Warcraft III/Warcraft 3'), ('music : what name is given to the style of western music from about 1600 1750', ['baroque'], 'Music/Lyrics/Boogus/chart toppers'), ('___ Beach, USA', ['sizzle'], '80s/films/movies'), ('Skills: _____ is the prerequisite for Golem Mastery.', ['clay golem'], 'Blizzard/Diablo II/Diablo 2/LOD'), ("music : 90's chart toppers: name the artist: and so it goes", ['billy joel'], 'Music/Lyrics/Boogus/chart toppers')])
[PYTHON] [TRIVIA] Appended question: music : category: name the album : secrets, forest, m; storing 21 questions now
[PYTHON] deque([('music : complete this elvis song title: gentle on', ['my mind'], 'Music/Lyrics/Boogus/chart toppers'), ("music: 80's tune: performed by: cyndi lauper", ['time after time'], 'Music/Lyrics/Boogus/chart toppers'), ("music : 60's chart toppers: name the artist: watermelon man", ['mongo santamaria'], 'Music/Lyrics/Boogus/chart toppers'), ('music : song: name the artist: johnny b. goode', ['chuck berry'], 'Music/Lyrics/Boogus/chart toppers'), ("music : 80's chart toppers: name the artist: master blaster", ['stevie wonder'], 'Music/Lyrics/Boogus/chart toppers'), ('What is the base move speed of Moon Rider?', ['320'], 'Blizzard/DOTA/Warcraft'), ('"...... theyre all doing the monster mash and most of the taxis and the whores are only taking calls for cash" Whats the Dire Straits song title?', ['your latest trick'], 'random/trivia'), ("lyrics: name that tune: it's gettin' rough off the cuff i've got to say enough's enough", ['one thing leads to another'], 'Music/Lyrics/Boogus/chart toppers'), ('music : pop no 1s: who wrote simon & garfunkel\'s "bridge over troubled water"', ['paul simon'], 'Music/Lyrics/Boogus/chart toppers'), ('Runes: Which Rune gives 25% Open Wounds (Weapons)', ['um rune'], 'Blizzard/Diablo II/Diablo 2/LOD'), ("music : 80's chart toppers: name the artist: if she knew what she wants", ['bangles'], 'Music/Lyrics/Boogus/chart toppers'), ("music: 80's tune: performed by: tommy tutone", ['jenny (867-5309)'], 'Music/Lyrics/Boogus/chart toppers'), ('Top ___', ['secret'], '80s/films/movies'), ("music: 80's tune: performed by: madonna", ['crazy for you'], 'Music/Lyrics/Boogus/chart toppers'), ('name the artist/band: kyrie', ['mr. mister'], 'Music/Lyrics/Boogus/chart toppers'), ('WarCraft III: WarCraft III: Which Orc Hero Can Cast Stampede?', ['beastmaster'], 'Blizzard/Warcraft III/Warcraft 3'), ('music : what name is given to the style of western music from about 1600 1750', ['baroque'], 'Music/Lyrics/Boogus/chart toppers'), ('___ Beach, USA', ['sizzle'], '80s/films/movies'), ('Skills: _____ is the prerequisite for Golem Mastery.', ['clay golem'], 'Blizzard/Diablo II/Diablo 2/LOD'), ("music : 90's chart toppers: name the artist: and so it goes", ['billy joel'], 'Music/Lyrics/Boogus/chart toppers'), ('music : category: name the album : secrets, forest, m', ['seventeen seconds'], 'Music/Lyrics/Boogus/chart toppers')])
[PYTHON] [TRIVIA] Appended question: Diablo II: Sets: What Set Piece does this item belong to, War Scepter?; storing 22 questions now
[PYTHON] deque([('music : complete this elvis song title: gentle on', ['my mind'], 'Music/Lyrics/Boogus/chart toppers'), ("music: 80's tune: performed by: cyndi lauper", ['time after time'], 'Music/Lyrics/Boogus/chart toppers'), ("music : 60's chart toppers: name the artist: watermelon man", ['mongo santamaria'], 'Music/Lyrics/Boogus/chart toppers'), ('music : song: name the artist: johnny b. goode', ['chuck berry'], 'Music/Lyrics/Boogus/chart toppers'), ("music : 80's chart toppers: name the artist: master blaster", ['stevie wonder'], 'Music/Lyrics/Boogus/chart toppers'), ('What is the base move speed of Moon Rider?', ['320'], 'Blizzard/DOTA/Warcraft'), ('"...... theyre all doing the monster mash and most of the taxis and the whores are only taking calls for cash" Whats the Dire Straits song title?', ['your latest trick'], 'random/trivia'), ("lyrics: name that tune: it's gettin' rough off the cuff i've got to say enough's enough", ['one thing leads to another'], 'Music/Lyrics/Boogus/chart toppers'), ('music : pop no 1s: who wrote simon & garfunkel\'s "bridge over troubled water"', ['paul simon'], 'Music/Lyrics/Boogus/chart toppers'), ('Runes: Which Rune gives 25% Open Wounds (Weapons)', ['um rune'], 'Blizzard/Diablo II/Diablo 2/LOD'), ("music : 80's chart toppers: name the artist: if she knew what she wants", ['bangles'], 'Music/Lyrics/Boogus/chart toppers'), ("music: 80's tune: performed by: tommy tutone", ['jenny (867-5309)'], 'Music/Lyrics/Boogus/chart toppers'), ('Top ___', ['secret'], '80s/films/movies'), ("music: 80's tune: performed by: madonna", ['crazy for you'], 'Music/Lyrics/Boogus/chart toppers'), ('name the artist/band: kyrie', ['mr. mister'], 'Music/Lyrics/Boogus/chart toppers'), ('WarCraft III: WarCraft III: Which Orc Hero Can Cast Stampede?', ['beastmaster'], 'Blizzard/Warcraft III/Warcraft 3'), ('music : what name is given to the style of western music from about 1600 1750', ['baroque'], 'Music/Lyrics/Boogus/chart toppers'), ('___ Beach, USA', ['sizzle'], '80s/films/movies'), ('Skills: _____ is the prerequisite for Golem Mastery.', ['clay golem'], 'Blizzard/Diablo II/Diablo 2/LOD'), ("music : 90's chart toppers: name the artist: and so it goes", ['billy joel'], 'Music/Lyrics/Boogus/chart toppers'), ('music : category: name the album : secrets, forest, m', ['seventeen seconds'], 'Music/Lyrics/Boogus/chart toppers'), ('Diablo II: Sets: What Set Piece does this item belong to, War Scepter?', ["milabrega's rod", 'milabregas rod'], 'Games/Blizzard/Diablo')])
[PYTHON] [TRIVIA] Appended question: Where are Flying Machines built?; storing 23 questions now
[PYTHON] deque([('music : complete this elvis song title: gentle on', ['my mind'], 'Music/Lyrics/Boogus/chart toppers'), ("music: 80's tune: performed by: cyndi lauper", ['time after time'], 'Music/Lyrics/Boogus/chart toppers'), ("music : 60's chart toppers: name the artist: watermelon man", ['mongo santamaria'], 'Music/Lyrics/Boogus/chart toppers'), ('music : song: name the artist: johnny b. goode', ['chuck berry'], 'Music/Lyrics/Boogus/chart toppers'), ("music : 80's chart toppers: name the artist: master blaster", ['stevie wonder'], 'Music/Lyrics/Boogus/chart toppers'), ('What is the base move speed of Moon Rider?', ['320'], 'Blizzard/DOTA/Warcraft'), ('"...... theyre all doing the monster mash and most of the taxis and the whores are only taking calls for cash" Whats the Dire Straits song title?', ['your latest trick'], 'random/trivia'), ("lyrics: name that tune: it's gettin' rough off the cuff i've got to say enough's enough", ['one thing leads to another'], 'Music/Lyrics/Boogus/chart toppers'), ('music : pop no 1s: who wrote simon & garfunkel\'s "bridge over troubled water"', ['paul simon'], 'Music/Lyrics/Boogus/chart toppers'), ('Runes: Which Rune gives 25% Open Wounds (Weapons)', ['um rune'], 'Blizzard/Diablo II/Diablo 2/LOD'), ("music : 80's chart toppers: name the artist: if she knew what she wants", ['bangles'], 'Music/Lyrics/Boogus/chart toppers'), ("music: 80's tune: performed by: tommy tutone", ['jenny (867-5309)'], 'Music/Lyrics/Boogus/chart toppers'), ('Top ___', ['secret'], '80s/films/movies'), ("music: 80's tune: performed by: madonna", ['crazy for you'], 'Music/Lyrics/Boogus/chart toppers'), ('name the artist/band: kyrie', ['mr. mister'], 'Music/Lyrics/Boogus/chart toppers'), ('WarCraft III: WarCraft III: Which Orc Hero Can Cast Stampede?', ['beastmaster'], 'Blizzard/Warcraft III/Warcraft 3'), ('music : what name is given to the style of western music from about 1600 1750', ['baroque'], 'Music/Lyrics/Boogus/chart toppers'), ('___ Beach, USA', ['sizzle'], '80s/films/movies'), ('Skills: _____ is the prerequisite for Golem Mastery.', ['clay golem'], 'Blizzard/Diablo II/Diablo 2/LOD'), ("music : 90's chart toppers: name the artist: and so it goes", ['billy joel'], 'Music/Lyrics/Boogus/chart toppers'), ('music : category: name the album : secrets, forest, m', ['seventeen seconds'], 'Music/Lyrics/Boogus/chart toppers'), ('Diablo II: Sets: What Set Piece does this item belong to, War Scepter?', ["milabrega's rod", 'milabregas rod'], 'Games/Blizzard/Diablo'), ('Where are Flying Machines built?', ['workshop'], 'Blizzard/Warcraft III/Warcraft 3')])
[PYTHON] [TRIVIA] Appended question: Visual representation of individual people, distinguished by references to the subjects character, social position, wealth, or profession.; storing 24 questions now
[PYTHON] deque([('music : complete this elvis song title: gentle on', ['my mind'], 'Music/Lyrics/Boogus/chart toppers'), ("music: 80's tune: performed by: cyndi lauper", ['time after time'], 'Music/Lyrics/Boogus/chart toppers'), ("music : 60's chart toppers: name the artist: watermelon man", ['mongo santamaria'], 'Music/Lyrics/Boogus/chart toppers'), ('music : song: name the artist: johnny b. goode', ['chuck berry'], 'Music/Lyrics/Boogus/chart toppers'), ("music : 80's chart toppers: name the artist: master blaster", ['stevie wonder'], 'Music/Lyrics/Boogus/chart toppers'), ('What is the base move speed of Moon Rider?', ['320'], 'Blizzard/DOTA/Warcraft'), ('"...... theyre all doing the monster mash and most of the taxis and the whores are only taking calls for cash" Whats the Dire Straits song title?', ['your latest trick'], 'random/trivia'), ("lyrics: name that tune: it's gettin' rough off the cuff i've got to say enough's enough", ['one thing leads to another'], 'Music/Lyrics/Boogus/chart toppers'), ('music : pop no 1s: who wrote simon & garfunkel\'s "bridge over troubled water"', ['paul simon'], 'Music/Lyrics/Boogus/chart toppers'), ('Runes: Which Rune gives 25% Open Wounds (Weapons)', ['um rune'], 'Blizzard/Diablo II/Diablo 2/LOD'), ("music : 80's chart toppers: name the artist: if she knew what she wants", ['bangles'], 'Music/Lyrics/Boogus/chart toppers'), ("music: 80's tune: performed by: tommy tutone", ['jenny (867-5309)'], 'Music/Lyrics/Boogus/chart toppers'), ('Top ___', ['secret'], '80s/films/movies'), ("music: 80's tune: performed by: madonna", ['crazy for you'], 'Music/Lyrics/Boogus/chart toppers'), ('name the artist/band: kyrie', ['mr. mister'], 'Music/Lyrics/Boogus/chart toppers'), ('WarCraft III: WarCraft III: Which Orc Hero Can Cast Stampede?', ['beastmaster'], 'Blizzard/Warcraft III/Warcraft 3'), ('music : what name is given to the style of western music from about 1600 1750', ['baroque'], 'Music/Lyrics/Boogus/chart toppers'), ('___ Beach, USA', ['sizzle'], '80s/films/movies'), ('Skills: _____ is the prerequisite for Golem Mastery.', ['clay golem'], 'Blizzard/Diablo II/Diablo 2/LOD'), ("music : 90's chart toppers: name the artist: and so it goes", ['billy joel'], 'Music/Lyrics/Boogus/chart toppers'), ('music : category: name the album : secrets, forest, m', ['seventeen seconds'], 'Music/Lyrics/Boogus/chart toppers'), ('Diablo II: Sets: What Set Piece does this item belong to, War Scepter?', ["milabrega's rod", 'milabregas rod'], 'Games/Blizzard/Diablo'), ('Where are Flying Machines built?', ['workshop'], 'Blizzard/Warcraft III/Warcraft 3'), ('Visual representation of individual people, distinguished by references to the subjects character, social position, wealth, or profession.', ['portraiture'], 'random/trivia')])
[PYTHON] [TRIVIA] Appended question: music: 80's tune: performed by: steve winwood; storing 25 questions now
[PYTHON] deque([('music : complete this elvis song title: gentle on', ['my mind'], 'Music/Lyrics/Boogus/chart toppers'), ("music: 80's tune: performed by: cyndi lauper", ['time after time'], 'Music/Lyrics/Boogus/chart toppers'), ("music : 60's chart toppers: name the artist: watermelon man", ['mongo santamaria'], 'Music/Lyrics/Boogus/chart toppers'), ('music : song: name the artist: johnny b. goode', ['chuck berry'], 'Music/Lyrics/Boogus/chart toppers'), ("music : 80's chart toppers: name the artist: master blaster", ['stevie wonder'], 'Music/Lyrics/Boogus/chart toppers'), ('What is the base move speed of Moon Rider?', ['320'], 'Blizzard/DOTA/Warcraft'), ('"...... theyre all doing the monster mash and most of the taxis and the whores are only taking calls for cash" Whats the Dire Straits song title?', ['your latest trick'], 'random/trivia'), ("lyrics: name that tune: it's gettin' rough off the cuff i've got to say enough's enough", ['one thing leads to another'], 'Music/Lyrics/Boogus/chart toppers'), ('music : pop no 1s: who wrote simon & garfunkel\'s "bridge over troubled water"', ['paul simon'], 'Music/Lyrics/Boogus/chart toppers'), ('Runes: Which Rune gives 25% Open Wounds (Weapons)', ['um rune'], 'Blizzard/Diablo II/Diablo 2/LOD'), ("music : 80's chart toppers: name the artist: if she knew what she wants", ['bangles'], 'Music/Lyrics/Boogus/chart toppers'), ("music: 80's tune: performed by: tommy tutone", ['jenny (867-5309)'], 'Music/Lyrics/Boogus/chart toppers'), ('Top ___', ['secret'], '80s/films/movies'), ("music: 80's tune: performed by: madonna", ['crazy for you'], 'Music/Lyrics/Boogus/chart toppers'), ('name the artist/band: kyrie', ['mr. mister'], 'Music/Lyrics/Boogus/chart toppers'), ('WarCraft III: WarCraft III: Which Orc Hero Can Cast Stampede?', ['beastmaster'], 'Blizzard/Warcraft III/Warcraft 3'), ('music : what name is given to the style of western music from about 1600 1750', ['baroque'], 'Music/Lyrics/Boogus/chart toppers'), ('___ Beach, USA', ['sizzle'], '80s/films/movies'), ('Skills: _____ is the prerequisite for Golem Mastery.', ['clay golem'], 'Blizzard/Diablo II/Diablo 2/LOD'), ("music : 90's chart toppers: name the artist: and so it goes", ['billy joel'], 'Music/Lyrics/Boogus/chart toppers'), ('music : category: name the album : secrets, forest, m', ['seventeen seconds'], 'Music/Lyrics/Boogus/chart toppers'), ('Diablo II: Sets: What Set Piece does this item belong to, War Scepter?', ["milabrega's rod", 'milabregas rod'], 'Games/Blizzard/Diablo'), ('Where are Flying Machines built?', ['workshop'], 'Blizzard/Warcraft III/Warcraft 3'), ('Visual representation of individual people, distinguished by references to the subjects character, social position, wealth, or profession.', ['portraiture'], 'random/trivia'), ("music: 80's tune: performed by: steve winwood", ['valerie'], 'Music/Lyrics/Boogus/chart toppers')])
[PYTHON] [TRIVIA] Appended question: What is the ability that allows Arcannar to move faster?; storing 26 questions now
[PYTHON] deque([('music : complete this elvis song title: gentle on', ['my mind'], 'Music/Lyrics/Boogus/chart toppers'), ("music: 80's tune: performed by: cyndi lauper", ['time after time'], 'Music/Lyrics/Boogus/chart toppers'), ("music : 60's chart toppers: name the artist: watermelon man", ['mongo santamaria'], 'Music/Lyrics/Boogus/chart toppers'), ('music : song: name the artist: johnny b. goode', ['chuck berry'], 'Music/Lyrics/Boogus/chart toppers'), ("music : 80's chart toppers: name the artist: master blaster", ['stevie wonder'], 'Music/Lyrics/Boogus/chart toppers'), ('What is the base move speed of Moon Rider?', ['320'], 'Blizzard/DOTA/Warcraft'), ('"...... theyre all doing the monster mash and most of the taxis and the whores are only taking calls for cash" Whats the Dire Straits song title?', ['your latest trick'], 'random/trivia'), ("lyrics: name that tune: it's gettin' rough off the cuff i've got to say enough's enough", ['one thing leads to another'], 'Music/Lyrics/Boogus/chart toppers'), ('music : pop no 1s: who wrote simon & garfunkel\'s "bridge over troubled water"', ['paul simon'], 'Music/Lyrics/Boogus/chart toppers'), ('Runes: Which Rune gives 25% Open Wounds (Weapons)', ['um rune'], 'Blizzard/Diablo II/Diablo 2/LOD'), ("music : 80's chart toppers: name the artist: if she knew what she wants", ['bangles'], 'Music/Lyrics/Boogus/chart toppers'), ("music: 80's tune: performed by: tommy tutone", ['jenny (867-5309)'], 'Music/Lyrics/Boogus/chart toppers'), ('Top ___', ['secret'], '80s/films/movies'), ("music: 80's tune: performed by: madonna", ['crazy for you'], 'Music/Lyrics/Boogus/chart toppers'), ('name the artist/band: kyrie', ['mr. mister'], 'Music/Lyrics/Boogus/chart toppers'), ('WarCraft III: WarCraft III: Which Orc Hero Can Cast Stampede?', ['beastmaster'], 'Blizzard/Warcraft III/Warcraft 3'), ('music : what name is given to the style of western music from about 1600 1750', ['baroque'], 'Music/Lyrics/Boogus/chart toppers'), ('___ Beach, USA', ['sizzle'], '80s/films/movies'), ('Skills: _____ is the prerequisite for Golem Mastery.', ['clay golem'], 'Blizzard/Diablo II/Diablo 2/LOD'), ("music : 90's chart toppers: name the artist: and so it goes", ['billy joel'], 'Music/Lyrics/Boogus/chart toppers'), ('music : category: name the album : secrets, forest, m', ['seventeen seconds'], 'Music/Lyrics/Boogus/chart toppers'), ('Diablo II: Sets: What Set Piece does this item belong to, War Scepter?', ["milabrega's rod", 'milabregas rod'], 'Games/Blizzard/Diablo'), ('Where are Flying Machines built?', ['workshop'], 'Blizzard/Warcraft III/Warcraft 3'), ('Visual representation of individual people, distinguished by references to the subjects character, social position, wealth, or profession.', ['portraiture'], 'random/trivia'), ("music: 80's tune: performed by: steve winwood", ['valerie'], 'Music/Lyrics/Boogus/chart toppers'), ('What is the ability that allows Arcannar to move faster?', ['sonido', 'transfer effects'], 'TV/Shows/Bleach')])
[PYTHON] [TRIVIA] Appended question: music : 60's chart toppers: name the artist: (i love you) don't you forget it; storing 27 questions now
[PYTHON] deque([('music : complete this elvis song title: gentle on', ['my mind'], 'Music/Lyrics/Boogus/chart toppers'), ("music: 80's tune: performed by: cyndi lauper", ['time after time'], 'Music/Lyrics/Boogus/chart toppers'), ("music : 60's chart toppers: name the artist: watermelon man", ['mongo santamaria'], 'Music/Lyrics/Boogus/chart toppers'), ('music : song: name the artist: johnny b. goode', ['chuck berry'], 'Music/Lyrics/Boogus/chart toppers'), ("music : 80's chart toppers: name the artist: master blaster", ['stevie wonder'], 'Music/Lyrics/Boogus/chart toppers'), ('What is the base move speed of Moon Rider?', ['320'], 'Blizzard/DOTA/Warcraft'), ('"...... theyre all doing the monster mash and most of the taxis and the whores are only taking calls for cash" Whats the Dire Straits song title?', ['your latest trick'], 'random/trivia'), ("lyrics: name that tune: it's gettin' rough off the cuff i've got to say enough's enough", ['one thing leads to another'], 'Music/Lyrics/Boogus/chart toppers'), ('music : pop no 1s: who wrote simon & garfunkel\'s "bridge over troubled water"', ['paul simon'], 'Music/Lyrics/Boogus/chart toppers'), ('Runes: Which Rune gives 25% Open Wounds (Weapons)', ['um rune'], 'Blizzard/Diablo II/Diablo 2/LOD'), ("music : 80's chart toppers: name the artist: if she knew what she wants", ['bangles'], 'Music/Lyrics/Boogus/chart toppers'), ("music: 80's tune: performed by: tommy tutone", ['jenny (867-5309)'], 'Music/Lyrics/Boogus/chart toppers'), ('Top ___', ['secret'], '80s/films/movies'), ("music: 80's tune: performed by: madonna", ['crazy for you'], 'Music/Lyrics/Boogus/chart toppers'), ('name the artist/band: kyrie', ['mr. mister'], 'Music/Lyrics/Boogus/chart toppers'), ('WarCraft III: WarCraft III: Which Orc Hero Can Cast Stampede?', ['beastmaster'], 'Blizzard/Warcraft III/Warcraft 3'), ('music : what name is given to the style of western music from about 1600 1750', ['baroque'], 'Music/Lyrics/Boogus/chart toppers'), ('___ Beach, USA', ['sizzle'], '80s/films/movies'), ('Skills: _____ is the prerequisite for Golem Mastery.', ['clay golem'], 'Blizzard/Diablo II/Diablo 2/LOD'), ("music : 90's chart toppers: name the artist: and so it goes", ['billy joel'], 'Music/Lyrics/Boogus/chart toppers'), ('music : category: name the album : secrets, forest, m', ['seventeen seconds'], 'Music/Lyrics/Boogus/chart toppers'), ('Diablo II: Sets: What Set Piece does this item belong to, War Scepter?', ["milabrega's rod", 'milabregas rod'], 'Games/Blizzard/Diablo'), ('Where are Flying Machines built?', ['workshop'], 'Blizzard/Warcraft III/Warcraft 3'), ('Visual representation of individual people, distinguished by references to the subjects character, social position, wealth, or profession.', ['portraiture'], 'random/trivia'), ("music: 80's tune: performed by: steve winwood", ['valerie'], 'Music/Lyrics/Boogus/chart toppers'), ('What is the ability that allows Arcannar to move faster?', ['sonido', 'transfer effects'], 'TV/Shows/Bleach'), ("music : 60's chart toppers: name the artist: (i love you) don't you forget it", ['perry como'], 'Music/Lyrics/Boogus/chart toppers')])
[PYTHON] [TRIVIA] Appended question: music: name the artist/band that recorded this song: mankind (gossard); storing 28 questions now
[PYTHON] deque([('music : complete this elvis song title: gentle on', ['my mind'], 'Music/Lyrics/Boogus/chart toppers'), ("music: 80's tune: performed by: cyndi lauper", ['time after time'], 'Music/Lyrics/Boogus/chart toppers'), ("music : 60's chart toppers: name the artist: watermelon man", ['mongo santamaria'], 'Music/Lyrics/Boogus/chart toppers'), ('music : song: name the artist: johnny b. goode', ['chuck berry'], 'Music/Lyrics/Boogus/chart toppers'), ("music : 80's chart toppers: name the artist: master blaster", ['stevie wonder'], 'Music/Lyrics/Boogus/chart toppers'), ('What is the base move speed of Moon Rider?', ['320'], 'Blizzard/DOTA/Warcraft'), ('"...... theyre all doing the monster mash and most of the taxis and the whores are only taking calls for cash" Whats the Dire Straits song title?', ['your latest trick'], 'random/trivia'), ("lyrics: name that tune: it's gettin' rough off the cuff i've got to say enough's enough", ['one thing leads to another'], 'Music/Lyrics/Boogus/chart toppers'), ('music : pop no 1s: who wrote simon & garfunkel\'s "bridge over troubled water"', ['paul simon'], 'Music/Lyrics/Boogus/chart toppers'), ('Runes: Which Rune gives 25% Open Wounds (Weapons)', ['um rune'], 'Blizzard/Diablo II/Diablo 2/LOD'), ("music : 80's chart toppers: name the artist: if she knew what she wants", ['bangles'], 'Music/Lyrics/Boogus/chart toppers'), ("music: 80's tune: performed by: tommy tutone", ['jenny (867-5309)'], 'Music/Lyrics/Boogus/chart toppers'), ('Top ___', ['secret'], '80s/films/movies'), ("music: 80's tune: performed by: madonna", ['crazy for you'], 'Music/Lyrics/Boogus/chart toppers'), ('name the artist/band: kyrie', ['mr. mister'], 'Music/Lyrics/Boogus/chart toppers'), ('WarCraft III: WarCraft III: Which Orc Hero Can Cast Stampede?', ['beastmaster'], 'Blizzard/Warcraft III/Warcraft 3'), ('music : what name is given to the style of western music from about 1600 1750', ['baroque'], 'Music/Lyrics/Boogus/chart toppers'), ('___ Beach, USA', ['sizzle'], '80s/films/movies'), ('Skills: _____ is the prerequisite for Golem Mastery.', ['clay golem'], 'Blizzard/Diablo II/Diablo 2/LOD'), ("music : 90's chart toppers: name the artist: and so it goes", ['billy joel'], 'Music/Lyrics/Boogus/chart toppers'), ('music : category: name the album : secrets, forest, m', ['seventeen seconds'], 'Music/Lyrics/Boogus/chart toppers'), ('Diablo II: Sets: What Set Piece does this item belong to, War Scepter?', ["milabrega's rod", 'milabregas rod'], 'Games/Blizzard/Diablo'), ('Where are Flying Machines built?', ['workshop'], 'Blizzard/Warcraft III/Warcraft 3'), ('Visual representation of individual people, distinguished by references to the subjects character, social position, wealth, or profession.', ['portraiture'], 'random/trivia'), ("music: 80's tune: performed by: steve winwood", ['valerie'], 'Music/Lyrics/Boogus/chart toppers'), ('What is the ability that allows Arcannar to move faster?', ['sonido', 'transfer effects'], 'TV/Shows/Bleach'), ("music : 60's chart toppers: name the artist: (i love you) don't you forget it", ['perry como'], 'Music/Lyrics/Boogus/chart toppers'), ('music: name the artist/band that recorded this song: mankind (gossard)', ['pearl jam'], 'Music/Lyrics/Boogus/chart toppers')])
[PYTHON] [TRIVIA] Appended question: Misc: What new ground unit is introduced in Brood War for Zerg?; storing 29 questions now
[PYTHON] deque([('music : complete this elvis song title: gentle on', ['my mind'], 'Music/Lyrics/Boogus/chart toppers'), ("music: 80's tune: performed by: cyndi lauper", ['time after time'], 'Music/Lyrics/Boogus/chart toppers'), ("music : 60's chart toppers: name the artist: watermelon man", ['mongo santamaria'], 'Music/Lyrics/Boogus/chart toppers'), ('music : song: name the artist: johnny b. goode', ['chuck berry'], 'Music/Lyrics/Boogus/chart toppers'), ("music : 80's chart toppers: name the artist: master blaster", ['stevie wonder'], 'Music/Lyrics/Boogus/chart toppers'), ('What is the base move speed of Moon Rider?', ['320'], 'Blizzard/DOTA/Warcraft'), ('"...... theyre all doing the monster mash and most of the taxis and the whores are only taking calls for cash" Whats the Dire Straits song title?', ['your latest trick'], 'random/trivia'), ("lyrics: name that tune: it's gettin' rough off the cuff i've got to say enough's enough", ['one thing leads to another'], 'Music/Lyrics/Boogus/chart toppers'), ('music : pop no 1s: who wrote simon & garfunkel\'s "bridge over troubled water"', ['paul simon'], 'Music/Lyrics/Boogus/chart toppers'), ('Runes: Which Rune gives 25% Open Wounds (Weapons)', ['um rune'], 'Blizzard/Diablo II/Diablo 2/LOD'), ("music : 80's chart toppers: name the artist: if she knew what she wants", ['bangles'], 'Music/Lyrics/Boogus/chart toppers'), ("music: 80's tune: performed by: tommy tutone", ['jenny (867-5309)'], 'Music/Lyrics/Boogus/chart toppers'), ('Top ___', ['secret'], '80s/films/movies'), ("music: 80's tune: performed by: madonna", ['crazy for you'], 'Music/Lyrics/Boogus/chart toppers'), ('name the artist/band: kyrie', ['mr. mister'], 'Music/Lyrics/Boogus/chart toppers'), ('WarCraft III: WarCraft III: Which Orc Hero Can Cast Stampede?', ['beastmaster'], 'Blizzard/Warcraft III/Warcraft 3'), ('music : what name is given to the style of western music from about 1600 1750', ['baroque'], 'Music/Lyrics/Boogus/chart toppers'), ('___ Beach, USA', ['sizzle'], '80s/films/movies'), ('Skills: _____ is the prerequisite for Golem Mastery.', ['clay golem'], 'Blizzard/Diablo II/Diablo 2/LOD'), ("music : 90's chart toppers: name the artist: and so it goes", ['billy joel'], 'Music/Lyrics/Boogus/chart toppers'), ('music : category: name the album : secrets, forest, m', ['seventeen seconds'], 'Music/Lyrics/Boogus/chart toppers'), ('Diablo II: Sets: What Set Piece does this item belong to, War Scepter?', ["milabrega's rod", 'milabregas rod'], 'Games/Blizzard/Diablo'), ('Where are Flying Machines built?', ['workshop'], 'Blizzard/Warcraft III/Warcraft 3'), ('Visual representation of individual people, distinguished by references to the subjects character, social position, wealth, or profession.', ['portraiture'], 'random/trivia'), ("music: 80's tune: performed by: steve winwood", ['valerie'], 'Music/Lyrics/Boogus/chart toppers'), ('What is the ability that allows Arcannar to move faster?', ['sonido', 'transfer effects'], 'TV/Shows/Bleach'), ("music : 60's chart toppers: name the artist: (i love you) don't you forget it", ['perry como'], 'Music/Lyrics/Boogus/chart toppers'), ('music: name the artist/band that recorded this song: mankind (gossard)', ['pearl jam'], 'Music/Lyrics/Boogus/chart toppers'), ('Misc: What new ground unit is introduced in Brood War for Zerg?', ['lurker'], 'Blizzard/Starcraft')])
[PYTHON] [TRIVIA] Appended question: Runes: El Rune gives what for (Weapons); storing 30 questions now
[PYTHON] deque([('music : complete this elvis song title: gentle on', ['my mind'], 'Music/Lyrics/Boogus/chart toppers'), ("music: 80's tune: performed by: cyndi lauper", ['time after time'], 'Music/Lyrics/Boogus/chart toppers'), ("music : 60's chart toppers: name the artist: watermelon man", ['mongo santamaria'], 'Music/Lyrics/Boogus/chart toppers'), ('music : song: name the artist: johnny b. goode', ['chuck berry'], 'Music/Lyrics/Boogus/chart toppers'), ("music : 80's chart toppers: name the artist: master blaster", ['stevie wonder'], 'Music/Lyrics/Boogus/chart toppers'), ('What is the base move speed of Moon Rider?', ['320'], 'Blizzard/DOTA/Warcraft'), ('"...... theyre all doing the monster mash and most of the taxis and the whores are only taking calls for cash" Whats the Dire Straits song title?', ['your latest trick'], 'random/trivia'), ("lyrics: name that tune: it's gettin' rough off the cuff i've got to say enough's enough", ['one thing leads to another'], 'Music/Lyrics/Boogus/chart toppers'), ('music : pop no 1s: who wrote simon & garfunkel\'s "bridge over troubled water"', ['paul simon'], 'Music/Lyrics/Boogus/chart toppers'), ('Runes: Which Rune gives 25% Open Wounds (Weapons)', ['um rune'], 'Blizzard/Diablo II/Diablo 2/LOD'), ("music : 80's chart toppers: name the artist: if she knew what she wants", ['bangles'], 'Music/Lyrics/Boogus/chart toppers'), ("music: 80's tune: performed by: tommy tutone", ['jenny (867-5309)'], 'Music/Lyrics/Boogus/chart toppers'), ('Top ___', ['secret'], '80s/films/movies'), ("music: 80's tune: performed by: madonna", ['crazy for you'], 'Music/Lyrics/Boogus/chart toppers'), ('name the artist/band: kyrie', ['mr. mister'], 'Music/Lyrics/Boogus/chart toppers'), ('WarCraft III: WarCraft III: Which Orc Hero Can Cast Stampede?', ['beastmaster'], 'Blizzard/Warcraft III/Warcraft 3'), ('music : what name is given to the style of western music from about 1600 1750', ['baroque'], 'Music/Lyrics/Boogus/chart toppers'), ('___ Beach, USA', ['sizzle'], '80s/films/movies'), ('Skills: _____ is the prerequisite for Golem Mastery.', ['clay golem'], 'Blizzard/Diablo II/Diablo 2/LOD'), ("music : 90's chart toppers: name the artist: and so it goes", ['billy joel'], 'Music/Lyrics/Boogus/chart toppers'), ('music : category: name the album : secrets, forest, m', ['seventeen seconds'], 'Music/Lyrics/Boogus/chart toppers'), ('Diablo II: Sets: What Set Piece does this item belong to, War Scepter?', ["milabrega's rod", 'milabregas rod'], 'Games/Blizzard/Diablo'), ('Where are Flying Machines built?', ['workshop'], 'Blizzard/Warcraft III/Warcraft 3'), ('Visual representation of individual people, distinguished by references to the subjects character, social position, wealth, or profession.', ['portraiture'], 'random/trivia'), ("music: 80's tune: performed by: steve winwood", ['valerie'], 'Music/Lyrics/Boogus/chart toppers'), ('What is the ability that allows Arcannar to move faster?', ['sonido', 'transfer effects'], 'TV/Shows/Bleach'), ("music : 60's chart toppers: name the artist: (i love you) don't you forget it", ['perry como'], 'Music/Lyrics/Boogus/chart toppers'), ('music: name the artist/band that recorded this song: mankind (gossard)', ['pearl jam'], 'Music/Lyrics/Boogus/chart toppers'), ('Misc: What new ground unit is introduced in Brood War for Zerg?', ['lurker'], 'Blizzard/Starcraft'), ('Runes: El Rune gives what for (Weapons)', ['+1 to light radius, +50 to attack rating'], 'Blizzard/Diablo II/Diablo 2/LOD')])
Вывод БЕЗ print


Code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
[PYTHON] [TRIVIA] Enabled with category=-1 and diff=-1
[PYTHON] [TRIVIA] Reading questions from http://snapnjacks.com/getq.php?client=plugins/pychop/trivia
[PYTHON] [TRIVIA] Appended question: Supply Cost: What is the supply cost of a Shuttle?; storing 1 questions now
[PYTHON] [TRIVIA] Appended question: music : 80's chart toppers: name the artist: you're a friend of mine; storing 2 questions now
[PYTHON] [TRIVIA] Appended question: music : the doors: first album released after jim's death, manzarek sings most songs.; storing 3 questions now
[PYTHON] [TRIVIA] Appended question: music : pearl jam: i took a drive today...time to amncipate; storing 4 questions now
[PYTHON] [TRIVIA] Appended question: music : category: demented lyrics: every night the dead rise up from the grave/to partake in a happening thc raid.; storing 5 questions now
[PYTHON] [TRIVIA] Appended question: music : joe jackson sang "we are young but getting old before our time" in this hit.; storing 6 questions now
[PYTHON] [TRIVIA] Appended question: music: name the artist/band that recorded this song: no me pidas m▒s (calderon); storing 7 questions now
[PYTHON] [TRIVIA] Appended question: music : 80's chart toppers: name the artist: little red corvette; storing 8 questions now
[PYTHON] [TRIVIA] Appended question: Acadia was the original name of which Canadian province?; storing 9 questions now
[PYTHON] [TRIVIA] Appended question: music: 80's tune: performed by: alan parsons project; storing 10 questions now
[PYTHON] [TRIVIA] Appended question: Diablo II: Which rune gives +10 To Energy to armor?; storing 11 questions now
[PYTHON] [TRIVIA] Appended question: Diablo II: Sets: What type of item is Berserker's Headgear?; storing 12 questions now
[PYTHON] [TRIVIA] Appended question: Quests: Meshif gives you the Golden Bird for exchange of the _____.; storing 13 questions now
[PYTHON] [TRIVIA] Appended question: Wraithlord-Death at level 3 does how much damage?; storing 14 questions now
[PYTHON] [TRIVIA] Appended question: A suspense thriller with supernatural overtones that revolves around a man who learns something extraordinary about himself after a devastating accident.; storing 15 questions now
[PYTHON] [TRIVIA] Appended question: music: name the artist/band that recorded this song: eternal idol (iommi); storing 16 questions now
[PYTHON] [TRIVIA] Appended question: What city provided the setting for One day at a time?; storing 17 questions now
[PYTHON] [TRIVIA] Appended question: 'And it seems to me you lived your life, like a candle in the wind, Never knowing who to cling to when the ______ set in.'; storing 18 questions now
[PYTHON] [TRIVIA] Appended question: music : 60's chart toppers: name the artist: strawberry shortcake; storing 19 questions now
[PYTHON] [TRIVIA] Appended question: music : complete this elvis song title: holly leaves and; storing 20 questions now
[PYTHON] [TRIVIA] Appended question: Skills: Which character uses the skill Howl?; storing 21 questions now
[PYTHON] [TRIVIA] Appended question: Structures: How many supplies does a Nexus provide?; storing 22 questions now
[PYTHON] [TRIVIA] Appended question: Diablo II: Sets: What Set Piece does this item belong to, Loricated Mail?; storing 23 questions now
[PYTHON] [TRIVIA] Appended question: music : artist : eine kleine nachtsmusik; storing 24 questions now
[PYTHON] [TRIVIA] Appended question: music : 80's chart toppers: name the artist: the last worthless evening; storing 25 questions now
[PYTHON] [TRIVIA] Appended question: music : grunge singles: down, down, down you're rollin'; storing 26 questions now
[PYTHON] [TRIVIA] Appended question: music : category: minutiae: name the song: "turn that jungle music down, 'least until we're out of town"; storing 27 questions now
[PYTHON] [TRIVIA] Appended question: music : hugely successful syndicated tv show featuring country music & stars.; storing 28 questions now
[PYTHON] [TRIVIA] Appended question: music : i get around: one hit wonder gary numan hit #9 with this song in 1980.; storing 29 questions now
[PYTHON] [TRIVIA] Appended question: Fast Times at ___ High; storing 30 questions now
0
4866 / 3288 / 468
Регистрация: 10.12.2008
Сообщений: 10,570
30.07.2012, 08:57
Python
1
2
3
4
5
6
7
8
9
10
deque([
    ('music : complete this elvis song title: gentle on',
        ['my mind'],
            'Music/Lyrics/Boogus/chart toppers'),
    ("music: 80's tune: performed by: cyndi lauper",
        ['time after time'],
            'Music/Lyrics/Boogus/chart toppers'),
    ("music : 60's chart toppers: name the artist: watermelon man",
        ['mongo santamaria'],
            'Music/Lyrics/Boogus/chart toppers')])
в каждой записи вопрос, ответ и параметр для команды какой-то, который дальше пересылается
в твоём варианте этого третьего параметра нет, а пересылаться то он продолжает
1
0 / 0 / 0
Регистрация: 26.07.2012
Сообщений: 12
30.07.2012, 13:14  [ТС]
Цитата Сообщение от accept Посмотреть сообщение
Python
1
2
3
4
5
6
7
8
9
10
deque([
    ('music : complete this elvis song title: gentle on',
        ['my mind'],
            'Music/Lyrics/Boogus/chart toppers'),
    ("music: 80's tune: performed by: cyndi lauper",
        ['time after time'],
            'Music/Lyrics/Boogus/chart toppers'),
    ("music : 60's chart toppers: name the artist: watermelon man",
        ['mongo santamaria'],
            'Music/Lyrics/Boogus/chart toppers')])
в каждой записи вопрос, ответ и параметр для команды какой-то, который дальше пересылается
в твоём варианте этого третьего параметра нет, а пересылаться то он продолжает
Но ведь этот параметр в скрипте же и находится? Может не трудно изменить его кол-во параметров? Удалить одну часть [parts] например или как-то так?
0
4866 / 3288 / 468
Регистрация: 10.12.2008
Сообщений: 10,570
31.07.2012, 03:08
этот параметр используется в другой функции
например, в askQuestion(), которая передаёт его в trivia_bnet.queueChatCommand()
если ты его убираешь, то и там надо всё это заменить или убрать
1
0 / 0 / 0
Регистрация: 26.07.2012
Сообщений: 12
31.07.2012, 12:47  [ТС]
Цитата Сообщение от accept Посмотреть сообщение
этот параметр используется в другой функции
например, в askQuestion(), которая передаёт его в trivia_bnet.queueChatCommand()
если ты его убираешь, то и там надо всё это заменить или убрать
Ок, а можешь тыкнуть какие строки нужно убирать? И нужно ли что-то менять в других, чтобы не было после ошибок?
0
4866 / 3288 / 468
Регистрация: 10.12.2008
Сообщений: 10,570
01.08.2012, 10:22
Цитата Сообщение от Aleksandr46 Посмотреть сообщение
Ок, а можешь тыкнуть какие строки нужно убирать?
не, это нужно запускать этот скрипт, чтобы он работал, а потом разбираться, как он работает, чтобы думать, как его менять
(а ещё проверить его на ошибки, а вдруг он неправильный)

Цитата Сообщение от Aleksandr46 Посмотреть сообщение
И нужно ли что-то менять в других, чтобы не было после ошибок?
а ты уверен, что в его первоначальном скрипте нет ошибок ?
0
Надоела реклама? Зарегистрируйтесь и она исчезнет полностью.
inter-admin
Эксперт
29715 / 6470 / 2152
Регистрация: 06.03.2009
Сообщений: 28,500
Блог
01.08.2012, 10:22
Помогаю со студенческими работами здесь

AttributeError at /homepage/ 'tuple' object has no attribute 'split'
Создаю свой блок, столкнулся с ошибкой, какой день не могу её исправить. Сама ошибка: AttributeError at /homepage/ 'tuple' object has...

AttributeError: 'list' object has no attribute 'shape'
Добрый день. В Python я новичок, и хотелось бы,чтобы мне помогли исправить пару ошибок в коде, ибо я их ещё не понимаю import numpy as np...

Как исправить ошибку AttributeError: 'int' object has no attribute 'x'?
Приветствую Всех! Ребята помогите пожалуйста не силен в программировании нужно исправить ошибку в коде: class Point(object): ...

Как исправить ошибку AttributeError: 'TorBrowserDriver' object has no attribute 'add_cookies'?
При использовании библиотеки tbselenium , возникла такая вот ошибка : &quot;AttributeError: 'TorBrowserDriver' object has no attribute...

AttributeError: 'NoneType' object has no attribute 'get'
Доброго всем вечера , писал я значит форму для регистрации и входа на Phyton и тут вылезла ошибка помогите пожалуйста. ...


Искать еще темы с ответами

Или воспользуйтесь поиском по форуму:
20
Ответ Создать тему
Опции темы

Новые блоги и статьи
Автозаполнение реквизита при выборе элемента справочника
Maks 27.03.2026
Программный код из решения ниже на примере нетипового документа "ЗаявкаНаРемонтСпецтехники" разработанного в конфигурации КА2. При выборе "Спецтехники" (Тип Справочник. Спецтехника), заполняется. . .
Сумматор с применением элементов трёх состояний.
Hrethgir 26.03.2026
Тут. https:/ / fips. ru/ EGD/ ab3c85c8-836d-4866-871b-c2f0c5d77fbc Первый документ красиво выглядит, но без схемы. Это конечно не даёт никаких плюсов автору, но тем не менее. . . всё может быть. . .
Автозаполнение реквизитов при создании документа
Maks 26.03.2026
Программный код из решения ниже размещается в модуле объекта документа, в процедуре "ПриСозданииНаСервере". Алгоритм проверки заполнения реализован для исключения перезаписи значения реквизита,. . .
Команды формы и диалоговое окно
Maks 26.03.2026
1. Команда формы "ЗаполнитьЗапчасти". Программный код из решения ниже на примере нетипового документа "ЗаявкаНаРемонтСпецтехники" разработанного в конфигурации КА2. В качестве источника данных. . .
Кому нужен AOT?
DevAlt 26.03.2026
Решил сделать простой ланчер Написал заготовку: dotnet new console --aot -o UrlHandler var items = args. Split(":"); var tag = items; var id = items; var executable = args;. . .
Отправка уведомления на почту при изменении наименования справочника
Maks 24.03.2026
Программная отправка письма электронной почты на примере изменения наименования типового справочника "Склады" в конфигурации БП3. Перед реализацией необходимо выполнить настройку системной учетной. . .
модель ЗдравоСохранения 5. Меньше увольнений- больше дохода!
anaschu 24.03.2026
Теперь система здравосохранения уменьшает количество увольнений. 9TO2GP2bpX4 a42b81fb172ffc12ca589c7898261ccb/ https:/ / rutube. ru/ video/ a42b81fb172ffc12ca589c7898261ccb/ Слева синяя линия -. . .
Midnight Chicago Blues
kumehtar 24.03.2026
Такой Midnight Chicago Blues, знаешь?. . Когда вечерние улицы становятся ночными, а ты не можешь уснуть. Ты идёшь в любимый старый бар, и бармен наливает тебе виски. Ты смотришь на пролетающие. . .
КиберФорум - форум программистов, компьютерный форум, программирование
Powered by vBulletin
Copyright ©2000 - 2026, CyberForum.ru