这个代码为什么错误?
t = ('a', 'b', ['A', 'B'])
L[0] = 'X'
L[1] = 'Y'
print t
Traceback (most recent call last): File "index.py", line 2, in L[0] = 'X' NameError: name 'L' is not defined
t = ('a', 'b', ['A', 'B'])
L[0] = 'X'
L[1] = 'Y'
print t
Traceback (most recent call last): File "index.py", line 2, in L[0] = 'X' NameError: name 'L' is not defined
2019-02-13
举报