list1 = ["name1", "info1", 10]
list2 = ["name2", "info2", 30]
list3 = ["name3", "info3", 50]
MASTERLIST = [list1, list2, list3]
def printer(lst):
print ("Available Lists:")
for x in range(len(lst)):
print (lst[x])[0]
当我尝试运行时,此代码返回“'NoneType' 对象不可下标”错误
printer(MASTERLIST)
我做错了什么?