编程频道|软件玩家 - 软件改变生活!
  •  首页
  •  编程
  •  IT技术
  •  数码大全
  •  登录
  1. 标签
  2. 解决TypeError x27NoneTypex27 objec
  • 解决TypeError: 'NoneType' object is not subscriptable

    1.捕获异常的方式try:img_list = img_list["name"]except:img_list = ""2.对象进行判断if img_list:img_list = img_li
    解决TypeError x27NoneTypex27 object is not subscriptable
    admin7月前
    900
CopyRight © 2022 All Rights Reserved 豫ICP备2021025688号-21
Processed: 0.030, SQL: 9