d1 = '10011111'
d2 = '10111101'
d3 = [0]*8
for i in range(len(d1)):
if d1[i] != d2[i]:
d3[i] = 1
print(sum(d3))
沒有留言:
張貼留言