TypeError: sequence item 0: expected string, NoneType found

后端 未结 3 1017
小鲜肉
小鲜肉 2021-02-18 12:43

I\'m trying to improve a game of battleships. The original version works fine with no errors. I have written code to help overcome the fact that the first version places the shi

3条回答
  •  滥情空心
    2021-02-18 13:21

    If you've arrived here because you were looking for the root cause of "TypeError: sequence item 0: expected string, NoneType found", it can come from doing something along these lines...

    ','.join([None])
    

提交回复
热议问题