学习python数据在jupyter notebook里的问题

不知道为什么,一开始跟着教学视频学习的时候,运行都能正常,今天打开就没法正常了。

img


我写入内容:
lol_list = [
['上单','程咬金',20]
['法师','貂蝉',21]
['射手','蒙伢',22]
['打野','李白',23]
['辅助','蔡文姬',24]
]

创建DataFrame

df = DataFrame(data=lol_list)

提示错误:
TypeError Traceback (most recent call last)
in
2 lol_list = [
3 ['上单','程咬金',20]
> 4 ['法师','貂蝉',21]
5 ['射手','蒙伢',22]
6 ['打野','李白',23]

TypeError: list indices must be integers or slices, not tuple

本人一脸懵,还望帮忙解决一下。

数组里的数组之间的逗号丢了

img


圈出来的地方应该有逗号

醍醐灌顶,谢谢,福生无量寿福