Merge pull request 'Update test_demo/demo_flaws.py' (#25) from dingshuo-patch-2 into main
This commit is contained in:
@@ -45,10 +45,10 @@ import collections as col # 使用了 col 但 flake8 可能检测
|
|||||||
|
|
||||||
|
|
||||||
# 缺陷2: 未使用的变量
|
# 缺陷2: 未使用的变量
|
||||||
def unused_variable_demo():
|
# def unused_variable_demo():
|
||||||
"""演示未使用的变量"""
|
# """演示未使用的变量"""
|
||||||
result = calculate() # result 未被使用
|
# result = calculate() # result 未被使用
|
||||||
print("Function executed")
|
# print("Function executed")
|
||||||
|
|
||||||
|
|
||||||
def calculate():
|
def calculate():
|
||||||
|
|||||||
Reference in New Issue
Block a user