药材供需网—全面科普中药知识,传承中华经典文化。
当前位置:首页  中医养生  四季养生 > 冬季肺癌患者适用的食谱建议

冬季肺癌患者适用的食谱建议

时间:2023-12-28 02:41:40 作者:方剂叔 阅读:468°C

肺癌患者的食疗方法冬瓜皮蚕豆汤材料:冬瓜皮60克,冬瓜子60克,蚕豆60克。制作:将上述食物放入锅内加水3碗煎至1碗,再加入适当调料即成。用法:去渣饮用。功效:除湿、利水、消肿。适用于肺癌有胸水者。蜂蜜润肺止咳丸材料:露蜂房、僵蚕各等份,蜂

UnboundLocalError: local variable 'last_result' referenced before assignment // Werkzeug Debugger

UnboundLocalError

UnboundLocalError: local variable 'last_result' referenced before assignment

Traceback (most recent call last)

  • File "D:\app\miniconda3\envs\crawl\lib\site-packages\flask\app.py", line 1478, 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 "D:\app\miniconda3\envs\crawl\lib\site-packages\flask\app.py", line 1458, in wsgi_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 "D:\app\miniconda3\envs\crawl\lib\site-packages\flask\app.py", line 1455, in wsgi_app

            ctx = self.request_context(environ)
            error: BaseException | None = 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 "D:\app\miniconda3\envs\crawl\lib\site-packages\flask\app.py", line 869, in full_dispatch_request

                request_started.send(self, _async_wrapper=self.ensure_sync)
                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: ft.ResponseReturnValue | HTTPException,
  • File "D:\app\miniconda3\envs\crawl\lib\site-packages\flask\app.py", line 867, in full_dispatch_request

     
            try:
                request_started.send(self, _async_wrapper=self.ensure_sync)
                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 "D:\app\miniconda3\envs\crawl\lib\site-packages\flask\app.py", line 852, in dispatch_request

                and req.method == "OPTIONS"
            ):
                return self.make_default_options_response()
            # otherwise dispatch to the handler for that endpoint
            view_args: 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 "E:\AI\api\rewrite_api.py", line 205, in rewrite_text_api

            lang = request.json['lang']
        text = request.json['text']
        text = text.strip()
        if not text:
            return ''
        return rewrite_text(text, level, lang)
     
     
    @app.route('/api/title', methods=['get'])
    def rewrite_title_api():
        """封装AI接口"""
  • File "E:\AI\api\rewrite_api.py", line 173, in rewrite_text

    def rewrite_text(text:str, level = 0, lang = '简体中文'):
        """改写内容"""
        if level > 0:
            return full_rewrite(text, lang)
        else:
            return simple_rewrite(text, lang)
     
     
    def rewrite_title(text:str, lang = '简体中文'):
        """改写标题"""
        if not lang:
  • File "E:\AI\api\rewrite_api.py", line 161, in simple_rewrite

        result = []
        for section in sections:
            if section == first_section:
                result.append(first_result)
                continue
            if last_result and section == last_section:
                result.append(last_result)
                continue
            result.append(section)
        return '\n'.join(result)
     
UnboundLocalError: local variable 'last_result' referenced before assignment

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

The 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.

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:

    本文地址:https://www.youyaokeyi.com/yangsheng/sijiyangsheng/32788.html

    郑重声明:本站旨在介绍中医药知识,传播中医药文化,并不售卖任何药材药品,如有疾病者请及时就医!

    本栏阅读
    中医食疗的防病智慧,你知道吗?
    中医认为,“药食同源”“药补不如食补”,这些都强调了饮食调理对于维护健康的重要性。中..
    教你认识那些路边的野生中草药!
    学名:苘麻(qǐng má)别称:白麻、青麻、野棉花、叶生毛、磨盘单、车轮草、点圆子单、馒头..
    今日中药--琥珀(入心、肝、小肠经。入心、肝、小肠经)
    善医堂中医诊所2024年6月24日小雨 12/18℃星期一 五月十九今日吉时寅时,卯时,巳时,申时,戌..

    Copyright © 2002-2024 药材供需网    备案号:滇ICP备2023006363号-19 免责声明

    部分文章来源于网络,仅作为参考,如果网站中图片和文字侵犯了您的版权,请联系我们处理!