Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的代码: text = [['Name', 'Surname', '2009']]
我试图做的:文本[1];
我希望打印出“姓氏”,但我不断收到 - IndexError: list index out of range。
这是一个嵌套列表。
text = [['Name', 'Surname', '2009']] text[0] = ['Name', 'Surname', '2009'] text[0][1] = 'Surname'