赞美老师诗歌 赞美老师诗歌朗诵

 内涵001   2023-05-01 12:35:06   0 人阅读  0 条评论

IndexError: Cannot choose from an empty sequence // Werkzeug Debugger var CONSOLE_MODE = false, EVALEX = true, EVALEX_TRUSTED = false, SECRET = "Cztug1SITH6VWk19YYTC";

IndexError

IndexError: Cannot choose from an empty sequence

Traceback(most recent call last)

The above exception was the direct cause of the following exception:

File "/usr/local/python3/lib/python3.7/site-packages/flask/app.py", line2551, in__call__

def __call__(self, environ: dict, start_response: t.Callable) -> t.Any:

"""The WSGI server calls the Flask application object as the

WSGI application. This calls :meth:`wsgi_app`, which can be

wrapped to apply middleware.

"""

return self.wsgi_app(environ, start_response)

File "/usr/local/python3/lib/python3.7/site-packages/flask/app.py", line2531, inwsgi_app

try:

ctx.push()

response = self.full_dispatch_request()

except Exception as e:

error = e

response = self.handle_exception(e)

except: # noqa: B001

error = sys.exc_info()[1]

raise

return response(environ, start_response)

finally:

File "/usr/local/python3/lib/python3.7/site-packages/flask/app.py", line2528, inwsgi_app

ctx = self.request_context(environ)

error: t.Optional[BaseException] = None

try:

try:

ctx.push()

response = self.full_dispatch_request()

except Exception as e:

error = e

response = self.handle_exception(e)

except: # noqa: B001

error = sys.exc_info()[1]

File "/usr/local/python3/lib/python3.7/site-packages/flask/app.py", line1825, infull_dispatch_request

request_started.send(self)

rv = self.preprocess_request()

if rv is None:

rv = self.dispatch_request()

except Exception as e:

rv = self.handle_user_exception(e)

return self.finalize_request(rv)

def finalize_request(

self,

rv: t.Union[ft.ResponseReturnValue, HTTPException],

File "/usr/local/python3/lib/python3.7/site-packages/flask/app.py", line1823, infull_dispatch_request

try:

request_started.send(self)

rv = self.preprocess_request()

if rv is None:

rv = self.dispatch_request()

except Exception as e:

rv = self.handle_user_exception(e)

return self.finalize_request(rv)

def finalize_request(

File "/usr/local/python3/lib/python3.7/site-packages/flask/app.py", line1799, indispatch_request

and req.method == "OPTIONS"

):

return self.make_default_options_response()

# otherwise dispatch to the handler for that endpoint

view_args: t.Dict[str, t.Any] = req.view_args # type: ignore[assignment]

return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)

def full_dispatch_request(self) -> Response:

"""Dispatches the request and on top of that performs request

pre and postprocessing as well as HTTP exception catching and

error handling.

File "/www/wwwroot/chat.py", line39, ingen_header

# post入参访问方式二:from-data(k-v)格式参数

@api.route('/gen_header', methods=['post'])

def gen_header():

wd = flask.request.values.get('wd')

future = executor.submit(do_heavy_work,wd)

return str(future.result())

def do_heavy_work(wd):

prompt = wd

#openai.api_key = api_key_list[-1]

openai.api_key = random.choice(api_key_list)

File "/usr/local/python3/lib/python3.7/concurrent/futures/_base.py", line435, inresult

self._condition.wait(timeout)

if self._state in [CANCELLED, CANCELLED_AND_NOTIFIED]:

raise CancelledError()

elif self._state == FINISHED:

return self.__get_result()

else:

raise TimeoutError()

def exception(self, timeout=None):

"""Return the exception raised by the call that the future represents.

File "/usr/local/python3/lib/python3.7/concurrent/futures/_base.py", line384, in__get_result

with self._condition:

return self._state in [CANCELLED, CANCELLED_AND_NOTIFIED, FINISHED]

def __get_result(self):

if self._exception:

raise self._exception

else:

return self._result

def add_done_callback(self, fn):

"""Attaches a callable that will be called when the future finishes.IndexError: Cannot choose from an empty sequence

This is the Copy/Paste friendly version of the traceback.

concurrent.futures.process._RemoteTraceback: """Traceback (most recent call last): File "/usr/local/python3/lib/python3.7/concurrent/futures/process.py", line 239, in _process_worker r = call_item.fn(*call_item.args, **call_item.kwargs) File "/www/wwwroot/chat.py", line 44, in do_heavy_work openai.api_key = random.choice(api_key_list) File "/usr/local/python3/lib/python3.7/random.py", line 261, in choice raise IndexError('Cannot choose from an empty sequence') from NoneIndexError: Cannot choose from an empty sequence"""The above exception was the direct cause of the following exception:Traceback (most recent call last): File "/usr/local/python3/lib/python3.7/site-packages/flask/app.py", line 2551, in __call__ return self.wsgi_app(environ, start_response) File "/usr/local/python3/lib/python3.7/site-packages/flask/app.py", line 2531, in wsgi_app response = self.handle_exception(e) File "/usr/local/python3/lib/python3.7/site-packages/flask/app.py", line 2528, in wsgi_app response = self.full_dispatch_request() File "/usr/local/python3/lib/python3.7/site-packages/flask/app.py", line 1825, in full_dispatch_request rv = self.handle_user_exception(e) File "/usr/local/python3/lib/python3.7/site-packages/flask/app.py", line 1823, in full_dispatch_request rv = self.dispatch_request() File "/usr/local/python3/lib/python3.7/site-packages/flask/app.py", line 1799, in dispatch_request return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) File "/www/wwwroot/chat.py", line 39, in gen_header return str(future.result()) File "/usr/local/python3/lib/python3.7/concurrent/futures/_base.py", line 435, in result return self.__get_result() File "/usr/local/python3/lib/python3.7/concurrent/futures/_base.py", line 384, in __get_result raise self._exceptionIndexError: Cannot choose from an empty sequenceThe debugger caught an exception in your WSGI application. You can now look at the traceback which led to the error. If you enable JavaScript you can also use additional features such as code execution (if the evalex feature is enabled), automatic pasting of the exceptions and much more.Brought to you byDON'T PANIC, your friendly Werkzeug powered traceback interpreter.

Console Locked

The console is locked and needs to be unlocked by entering the PIN. You can find the PIN printed out on the standard output of your shell that runs the server.

PIN:

厉害的伍老师

作者:石岐中心小学 五(6)班 杜若衡

赞美老师诗歌(赞美老师诗歌朗诵)-第1张图片-东江百科

“白鹭是一首精巧的诗,色素的配合,身段的大小,一切都很适宜。”还没走进教室,就能听到一道悦耳动听的声音。原来,是我们的副班主任——伍老师正在给我们上课。

伍老师长得十分精神,留着一头干练、清爽的短发,就像黑色的锦缎一样。她的眉毛又细又弯,她的眼睛乌黑发亮,像两颗黑宝石,闪闪发亮。最特别的是她那张能说会道的嘴,总能交给我们成千上万的知识,让同学们非常佩服。

赞美老师诗歌(赞美老师诗歌朗诵)-第2张图片-东江百科

伍老师的性格是变化万千的:时而温和,时而严厉;时而和颜悦色,时而严肃认真。她遇到高兴事时给人如沐春风之感,同学们便与她格外亲近;她严肃时“吓”得同学们大气不敢出,教室里安静了许多;她和颜悦色时,同学们都随之兴高采烈起来,对语文学习充满兴趣;她生气时停下讲课,静静地看着我们,同学们感觉到了立刻收敛了吵闹的坏习惯,静下心来好好听课。记得有一次,有个调皮的同学没完成作业,上课时他又“专心”地跟旁边的同学讲话,还影响同学们听课。“可怜”的他被老师要求抄三遍当天学的课文《什么比猎豹的速度更快》。正因为伍老师这样丰富多彩的性格,才能把我们班管理得井井有条,又不失生动活泼。

性格多变的伍老师不仅将班级管理得井井有条,她还用朗诵的绝活让我们爱上了语文。时光如流水,又回到了开学的第一课,阳光洒进窗户,洒在伍老师的身上,宛如给她披上了一件金色的礼服。“那雪白的蓑衣,那全身的流线型结构……”伍老师那优美的声音响起,我们仿佛看见了白鹭那美丽、漂亮、优雅的样子,仿佛置身于漠漠水田中与白鹭一起翩飞。

“采得百花成蜜后,为谁辛苦为谁甜?”蜜蜂不辞劳苦,采尽百花酿成花蜜,这呕心沥血的模样,不就如同伍老师一般吗?清晨,她匆匆忙忙的脚步总是迎着第一缕阳光;傍晚,她疲惫的身影却总是伴着最后一抹夕阳。日出日落,她辛勤工作,寒来暑往,她心系学生。

啊!伍老师,我学习的导师,语文学科的引路人,她就是这样认真工作、严重有爱的好老师!

本文地址:https://www.neihan001.com/zyfx/120300.html
版权声明:免责声明:本文来源网友投稿及网络整合仅代表文章作者的个人观点,与本站无关。其原创性、真实性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容文字的真实性、完整性和原创性本站不作任何保证或承诺,请读者仅作参考,并自行核实相关内容。投诉邮箱:1765130767@qq.com.
  • 评论已关闭!