Visualize-ML/Book1_Python-For-Beginners

Bk1_Ch05_15,代码运行出现报错(类型错误)

Closed this issue · 1 comments

Image
正常来说不就是通过索引修改列表里的元素,为什么会出现这种报错(TypeError: list[slice(None, None, None)] is not a generic class)

list3 = list1[:] ,这个1给漏掉了