当前位置:网站首页>TypeError: list indices must be integers or slices, not str

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

2022-07-04 16:11:00 Liluoxiao

reason :json Store information in key value pairs , But in this case :

progressive Multiple values under are stored in a list

Error code :

['data']['resource']['progressive']['0']['url']

Change it to :

['data']['resource']['progressive'][0]['url']

原网站

版权声明
本文为[Liluoxiao]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202141156205829.html