search

Home  >  Q&A  >  body text

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

迷茫迷茫2802 days ago1457

reply all(3)I'll reply

  • 阿神

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

    It’s best to post the code
    But look at the error message, did you use item[0] to get the value when item is none

    reply
    0
  • ringa_lee

    ringa_lee2017-04-18 09:25:45

    I guess so ','.join([None])

    TypeError: sequence item 0: expected string, NoneType found

    reply
    0
  • 天蓬老师

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

    There is nothing in the sequence, the sequence is empty

    reply
    0
  • Cancelreply