我用它来判断现在的屏幕截图是否不同于上一个屏幕截图。现在我用
with open('last_screenshot.bmp','rb+') as f: org = f.read() with open('now_screenshot.bmp','rb+') as f: new = f.read() if(org==new): print("The pictures are same")
是否有更快的方法?预先感谢。