From 668f30252d74ccd1764d1847db1d845dc11f5eb0 Mon Sep 17 00:00:00 2001 From: Dang Zerong Date: Sun, 15 Mar 2026 13:41:37 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E7=9A=84=E6=89=AB?= =?UTF-8?q?=E6=8F=8F=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test_demo/demo_flaws.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/test_demo/demo_flaws.py b/test_demo/demo_flaws.py index 57a7308..59624a4 100644 --- a/test_demo/demo_flaws.py +++ b/test_demo/demo_flaws.py @@ -67,3 +67,15 @@ def use_before_define(): """在定义前使用变量""" print(before_var) # before_var 在下面才定义 before_var = 100 + + +# 缺陷2: 未使用的变量 +def unused_variable_demo(): + """演示未使用的变量""" + result = calculate() # result 未被使用 + print("Function executed") + + +# 缺陷8: 行太长(风格问题) +def long_line(): + """这是一行非常非常非常非常非常非常非常非常非常非常非常非常长的代码超过了 120 个字符的限制""" \ No newline at end of file -- 2.49.1 From 1fcac9877c6ad507f50e7500361e1d12b0ed0375 Mon Sep 17 00:00:00 2001 From: Dang Zerong Date: Sun, 15 Mar 2026 13:43:09 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20qwen3-max?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.yaml b/config.yaml index 0953002..4796eb0 100644 --- a/config.yaml +++ b/config.yaml @@ -50,7 +50,7 @@ ai: # 支持: "ollama" (本地) 或 "api" (在线API) provider: "api" # 模型名称(阿里云通义千问) - model: "qwen3.5-plus" + model: "qwen3-max" # API 地址 api_url: "https://dashscope.aliyuncs.com/compatible-mode/v1" # API 密钥 -- 2.49.1