第二集:放图
发布时间:2023-09-29 13:30:13
梦见一个人在桌子上做试卷
1、"http://www.worg/TR/html4/loose.dtd">
2、
3、
4、
在桌子上有个球
1、
2、type="text/css">
3、
6、
7、href="?__debugger__=yes&cmd=resource&f=console.png">
8、
9、
10、var TRACEBACK = 2188981741888,
11、CONSOLE_MODE = false,
12、EVALEX = true,
13、EVALEX_TRUSTED = false,
14、SECRET = "P66wqvnggclGCncCw6pD";
15、
16、
17、
18、
19、
KeyError
20、
21、
KeyError: '如图所示'
22、
23、
Traceback (most recent call last)
24、
25、
26、
27、
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\flask\app.py",
28、line 1997,
29、in
__call__
30、
error = None
31、
ctx.auto_pop(error)
32、
33、
def __call__(self, environ, start_response):
34、
"""Shortcut for :attr:`wsgi_app`."""
35、
return self.wsgi_app(environ, start_response)
36、
37、
def __repr__(self):
38、
return '<%s %r>' % (
39、
self.__class__.__name__,
40、
self.name,
41、
42、
43、
44、
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\flask\app.py",
45、line 1985,
46、in
wsgi_app
47、
try:
48、
try:
49、
response = self.full_dispatch_request()
50、
except Exception as e:
51、
error = e
52、
response = self.handle_exception(e)
53、
except:
54、
error = sys.exc_info()[1]
55、
raise
56、
return response(environ, start_response)
57、
finally:
58、
59、
60、
61、
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\flask\app.py",
62、line 1540,
63、in
handle_exception
64、
# if we want to repropagate the exception, we can attempt to
65、
# raise it with the whole traceback in case we can do that
66、
# (the function was actually called from the except part)
67、
# otherwise, we just raise the error again
68、
if exc_value is e:
69、
reraise(exc_type, exc_value, tb)
70、
else:
71、
raise e
72、
73、
self.log_exception((exc_type, exc_value, tb))
74、
if handler is None:
75、
76、
77、
78、
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\flask\_compat.py",
79、line 33,
80、in
reraise
81、
from io import StringIO
82、
83、
def reraise(tp, value, tb=None):
84、
if value.__traceback__ is not tb:
85、
raise value.with_traceback(tb)
86、
raise value
87、
88、
implements_to_string = _identity
89、
90、
else:
91、
text_type = unicode
92、
93、
94、
95、
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\flask\app.py",
96、line 1982,
97、in
wsgi_app
98、
ctx = self.request_context(environ)
99、
ctx.push()
100、
error = None
101、
try:
102、
try:
103、
response = self.full_dispatch_request()
104、
except Exception as e:
105、
error = e
106、
response = self.handle_exception(e)
107、
except:
108、
error = sys.exc_info()[1]
109、
110、
111、
112、
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\flask\app.py",
113、line 1614,
114、in
full_dispatch_request
115、
request_started.send(self)
116、
rv = self.preprocess_request()
117、
if rv is None:
118、
rv = self.dispatch_request()
119、
except Exception as e:
120、
rv = self.handle_user_exception(e)
121、
return self.finalize_request(rv)
122、
123、
def finalize_request(self, rv, from_error_handler=False):
124、
"""Given the return value from a view function this finalizes
125、
the request by converting it into a response and invoking the
126、
127、
128、
129、
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\flask\app.py",
130、line 1517,
131、in
handle_user_exception
132、
return self.handle_http_exception(e)
133、
134、
handler = self._find_error_handler(e)
135、
136、
if handler is None:
137、
reraise(exc_type, exc_value, tb)
138、
return handler(e)
139、
140、
def handle_exception(self, e):
141、
"""Default exception handling that kicks in when an exception
142、
occurs that is not caught. In debug mode the exception will
143、
144、
145、
146、
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\flask\_compat.py",
147、line 33,
148、in
reraise
149、
from io import StringIO
150、
151、
def reraise(tp, value, tb=None):
152、
if value.__traceback__ is not tb:
153、
raise value.with_traceback(tb)
154、
raise value
155、
156、
implements_to_string = _identity
157、
158、
else:
159、
text_type = unicode
160、
161、
162、
163、
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\flask\app.py",
164、line 1612,
165、in
full_dispatch_request
166、
self.try_trigger_before_first_request_functions()
167、
try:
168、
request_started.send(self)
169、
rv = self.preprocess_request()
170、
if rv is None:
171、
rv = self.dispatch_request()
172、
except Exception as e:
173、
rv = self.handle_user_exception(e)
174、
return self.finalize_request(rv)
175、
176、
def finalize_request(self, rv, from_error_handler=False):
177、
178、
179、
180、
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\flask\app.py",
181、line 1598,
182、in
dispatch_request
183、
# request came with the OPTIONS method, reply automatically
184、
if getattr(rule, 'provide_automatic_options', False) \
185、
and req.method == 'OPTIONS':
186、
return self.make_default_options_response()
187、
# otherwise dispatch to the handler for that endpoint
188、
return self.view_functions[rule.endpoint](**req.view_args)
189、
190、
def full_dispatch_request(self):
191、
"""Dispatches the request and on top of that performs request
192、
pre and postprocessing as well as HTTP exception catching and
193、
error handling.
194、
195、
196、
197、
File "H:\软件项目\自用接口\app.py",
198、line 259,
199、in
generateText
200、
# text += genreateText(model, 50, tfidf) + '\n'
201、
# else:
202、
# text += genreateText(model, 50) + '\n'
203、
204、
if isJieba == '2':
205、
text += genreateText(model, 50, lineNum, tfidf)
206、
else:
207、
text += genreateText(model, 50, lineNum)
208、
209、
lineArr = text.split('\n')
210、
for i, line in enumerate(lineArr):
211、
212、
213、
214、
File "H:\软件项目\自用接口\app.py",
215、line 123,
216、in
genreateText
217、
if startArr:
218、
words = [startArr[row]]
219、
else:
220、
words = model['START']
221、
else:
222、
words = model[generated[-1]]
223、
# print(words, random.choice(words))
224、
if len(''.join(generated)) > generateLen:
225、
isAdd = False
226、
for word in words:
227、
if word[-1] in model['END']:
228、
229、
230、
KeyError: '如图所示'
231、
232、
233、
234、
235、This is the Copy/Paste friendly version of the traceback.
236、
237、
238、File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\flask\app.py", line 1997, in __call__
239、return self.wsgi_app(environ, start_response)
240、File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\flask\app.py", line 1985, in wsgi_app
241、response = self.handle_exception(e)
242、File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\flask\app.py", line 1540, in handle_exception
243、reraise(exc_type, exc_value, tb)
244、File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\flask\_compat.py", line 33, in reraise
245、raise value
246、File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\flask\app.py", line 1982, in wsgi_app
247、response = self.full_dispatch_request()
248、File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\flask\app.py", line 1614, in full_dispatch_request
249、rv = self.handle_user_exception(e)
250、File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\flask\app.py", line 1517, in handle_user_exception
251、reraise(exc_type, exc_value, tb)
252、File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\flask\_compat.py", line 33, in reraise
253、raise value
254、File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\flask\app.py", line 1612, in full_dispatch_request
255、rv = self.dispatch_request()
256、File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36\lib\site-packages\flask\app.py", line 1598, in dispatch_request
257、return self.view_functions[rule.endpoint](**req.view_args)
258、File "H:\软件项目\自用接口\app.py", line 259, in generateText
259、text += genreateText(model, 50, lineNum, tfidf)
260、File "H:\软件项目\自用接口\app.py", line 123, in genreateText
261、words = model[generated[-1]]
262、KeyError: '如图所示'
263、
264、
265、The debugger caught an exception in your WSGI application. You can now
266、look at the traceback which led to the error.
267、If you enable JavaScript you can also use additional features such as code
268、execution (if the evalex feature is enabled), automatic pasting of the
269、exceptions and much more.
270、
271、
275、
276、
277、
278、
279、
Console Locked
280、
281、The console is locked and needs to be unlocked by entering the PIN.
282、You can find the PIN printed out on the standard output of your
283、shell that runs the server.
284、
289、
290、
291、
292、
293、
294、