标签: python scope
for i in range(1, 10): a =10 print(a)
它给了我输出:10 预期输出:Name is not defined 谁能解释一下?
10
Name is not defined