W3School TIY Editor

  • W3School 在线教程
  • 改变方向
  • 暗黑模式
​x
 
from scipy.spatial.distance import hamming
​
p1 = (True, False, True)
p2 = (False, True, True)
​
res = hamming(p1, p2)
​
print(res)