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.
這個函數(shù)返回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.
這個函數(shù)返回None
所以這就是為啥你會報錯的原因。