Traceback (most recent call last):IndexError: list index out of range解决方案
文件操作实例:将日志文件2019-05-17的内容转换成字典样式放在列表中1,abc,1001,特斯拉2,bcd,1002,五菱宏光3,def,1003,摩拜4,ghj,1004,小黄车{id:1,name:abc,phone:1001,car:特斯拉}代码:lst=[]withopen("2019-05-17",mode="r",encoding="utf-8")asf:forlineinf:d