TypeError: ufunc ‘bitwise_and‘ not supported for the input types, and the inputs could not be safely
代码报错:
TypeError: ufunc ‘bitwise_and’ not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ‘’safe’’
解决方案:
if语句中&连接符前后的两个条件需用括号括起来。
还没有评论,来说两句吧...