import numpy as np from matplotlib import pyplot as pltx=np.array(img,dtype=np.uint8)plt.imshow(x,interpolation='nearest')plt.imshow(y,interpolation='nearest')
ex:10 is 1010和5 is 101do Vec.push_back( x & 1 ) while ( x >>= 1 );
我不想只复制粘贴的东西。当我使用F-10时,我看到了(x & 1)在做什么,但我不知道它是名字,也不知道它是如何工作的(比较什么?)我也知道>=哪个“大于或等于”,但是x >>= 1是什么?