comparison problem between a function and a variable

Viewed 21

comparison between an array picture function with a variable that has the same value

import pyautogui as pg , time
from PIL import Image
import numpy as np
def one():
    s = pg.screenshot(region = (887,500,20,15))
    sgray = s.convert('L')
    a = np.array(sgray)
    b = a.sum()
    print (b)
one()*# print 72759*
blank = 72759
print(blank==one())
*#prints False ???!!!!*
0 Answers
Related