random.shuffle(random.shuffle(foo))
Python: TypeError: object of type 'NoneType' has no len()
TypeError: object of type 'NoneType' has no len()
This function returns
None
and that's why you have the error.
这个函数返回None
所以这就是为啥你会报错的原因。
random.shuffle(random.shuffle(foo))
Python: TypeError: object of type 'NoneType' has no len()
TypeError: object of type 'NoneType' has no len()
This function returns
None
and that's why you have the error.
这个函数返回None
所以这就是为啥你会报错的原因。
本文标题:random.shuffle
本文链接:https://www.haomeiwen.com/subject/cvibhttx.html
网友评论