我有以下for循环: while i in range(0, len(list)):
exec('list_entry'+str(i).append对于列表中的每个条目,已经存在关联的空列表。但是,空列表不被填充,因为它们被识别为字符串,而不是循环所识别的列表(AttributeError:'str‘对象没有属性'append')。
"File "C:\Users\David\DataTraker\connectors\CSVCon.py", line 61, in __init__ AttributeError: 'dict' object has no attribute 'append'"def __init__(self, sourceConfigsiniestros.c
tungn/Desktop/High.txt")
scores.append回溯(最近一次调用):文件"C:\Users\tungn\Desktop\Programing\Head first program\loop_highestscore.py",第5行,在scores.append(分数) AttributeError:'str‘对