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

 datamaster[i] = data[i+10000][0] / 2^(16-dezi)

原因

 Python解釋符合^爲xor

解決方法:將^改爲**

datamaster[i] = data[i+10000][0] / 2**(16-dezi)

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章