From 0274f01b6e726923e4942fcf809bca39d490dc7f Mon Sep 17 00:00:00 2001 From: dingshuo Date: Tue, 17 Mar 2026 11:28:17 +0800 Subject: [PATCH] Update test_demo/demo_flaws.py --- test_demo/demo_flaws.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test_demo/demo_flaws.py b/test_demo/demo_flaws.py index ce7f6d6..b88db5b 100644 --- a/test_demo/demo_flaws.py +++ b/test_demo/demo_flaws.py @@ -45,10 +45,10 @@ import collections as col # 使用了 col 但 flake8 可能检测 # 缺陷2: 未使用的变量 -def unused_variable_demo(): - """演示未使用的变量""" - result = calculate() # result 未被使用 - print("Function executed") +# def unused_variable_demo(): +# """演示未使用的变量""" +# result = calculate() # result 未被使用 +# print("Function executed") def calculate(): -- 2.49.1