首页  >  问答  >  正文

python - TypeError: sequence item 0: expected string, NoneType found

迷茫迷茫2740 天前1422

全部回复(3)我来回复

  • 阿神

    阿神2017-04-18 09:25:45

    最好还是代码贴出来吧
    不过看错误提示,你是不是在item为none的时候取值用了item[0]

    回复
    0
  • ringa_lee

    ringa_lee2017-04-18 09:25:45

    我猜是 ','.join([None])

    TypeError: sequence item 0: expected string, NoneType found

    回复
    0
  • 天蓬老师

    天蓬老师2017-04-18 09:25:45

    序列里面没东西,序列为空

    回复
    0
  • 取消回复