Python: ufunc ‘bitwise_xor‘ not supported for the input types,....
生活随笔
收集整理的這篇文章主要介紹了
Python: ufunc ‘bitwise_xor‘ not supported for the input types,....
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
錯(cuò)誤:
ufunc 'bitwise_xor' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''
原因:
錯(cuò)誤使用 ^?
解決:
將使用的 ^ 全部改為 ** ,即可解決
總結(jié)
以上是生活随笔為你收集整理的Python: ufunc ‘bitwise_xor‘ not supported for the input types,....的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 用html编写一幅简单的画,使用html
- 下一篇: pythonwhile爬虫教程_Pyth