From de6bcb140747e846fd9beccd4e7cca009e0c4787 Mon Sep 17 00:00:00 2001 From: MarkusJoe Date: Thu, 10 Feb 2022 13:36:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86Python3.10=E6=9B=B4=E6=96=B0=E7=9A=84?= =?UTF-8?q?=E7=AE=A1=E9=81=93=E7=AC=A6|=20=E6=9B=BF=E6=8D=A2=E4=B8=BA?= =?UTF-8?q?=E4=BA=86=20or=20=E4=BB=A5=E4=BE=BF=E5=9C=A8Heroku=20Python3.9?= =?UTF-8?q?=E7=8E=AF=E5=A2=83=E9=83=A8=E7=BD=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index 3de541d..eff1d14 100644 --- a/app.py +++ b/app.py @@ -23,7 +23,7 @@ app.config['JSON_SORT_KEYS'] = False # 设置JSON消息不根据字母顺序重 app.config['JSON_AS_ASCII'] = False # 设置JSON消息显示中文 -def build_page(name: str, length: int, theme: str) -> list[bool | Response] | list[bool | str] | bool: +def build_page(name: str, length: int, theme: str) -> list[bool or Response] or list[bool or str] or bool: """ 渲染最终的页面 :param theme: @@ -46,7 +46,7 @@ def build_page(name: str, length: int, theme: str) -> list[bool | Response] | li @app.route('/get', methods=['GET', 'POST']) # 允许 GET 和 POST 方法 -def api_page() -> Response | str: +def api_page() -> Response or str: """ API 页面函数 :return: