Update test_demo/demo_flaws.py #28

Open
dingshuo wants to merge 1 commits from dingshuo-patch-4 into main
Showing only changes of commit 1a96077431 - Show all commits

View File

@@ -57,9 +57,9 @@ def calculate():
# 缺陷3: 未定义的变量
def undefined_variable_demo():
"""演示未定义的变量"""
print(undefined_var) # undefined_var 未定义
# def undefined_variable_demo():
# """演示未定义的变量"""
# print(undefined_var) # undefined_var 未定义
# 缺陷4: 变量在定义前使用