Python: ufunc ‘bitwise_xor‘ not supported for the input types,....
生活随笔
收集整理的這篇文章主要介紹了
Python: ufunc ‘bitwise_xor‘ not supported for the input types,....
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
錯誤:
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''
原因:
錯誤使用 ^?
解決:
將使用的 ^ 全部改為 ** ,即可解決
總結
以上是生活随笔為你收集整理的Python: ufunc ‘bitwise_xor‘ not supported for the input types,....的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 用html编写一幅简单的画,使用html
- 下一篇: pythonwhile爬虫教程_Pyth