python错误

来源:互联网 发布:sql update 多个where 编辑:程序博客网 时间:2024/05/14 17:05

IndexError: list index out of range的错误原因    

1.list[index]index超出范围

2.list是一个空的 没有一个元素
进行list[0]就会出现该错误


'gbk' codec can't decode byte 0xbe in position 45: illegal multibyte sequenc

读取文件时指定encoding类型


原创粉丝点击