TypeError: ufunc 'bitwise_and' not supported for the input types, and the inputs could not be saf...

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''

python程序提示如上错误,原因是在if语句中&连接符前后的两个条件需要用括号括起来哦,要不然&不知道是连接谁的啦,所以会报错哒

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • rljs by sennchi Timeline of History Part One The Cognitiv...
    sennchi阅读 7,434评论 0 10
  • **2014真题Directions:Read the following text. Choose the be...
    又是夜半惊坐起阅读 9,844评论 0 23
  • pyspark.sql模块 模块上下文 Spark SQL和DataFrames的重要类: pyspark.sql...
    mpro阅读 9,504评论 0 13
  • 互行公司忙了几天,才做好季度工作小结,他们来到老绚家中,项母大约是情入了心窍,不怎么感兴趣公事,就顾着粘着老绚,项...
    坎冬阅读 467评论 1 1
  • 结婚是我始终都排斥的一件事,要一个人与另一个人,和他的家庭,他和我的家庭慢慢磨合,实在是一项浩大而艰辛的工程。每次...
    naomisan阅读 509评论 0 0