python windows snapshot code example
Example 1: screenshot in python
import pyautogui
class gng() :
myScreenshot = pyautogui.screenshot()
myScreenshot.save('C:\File\Code\save.png')
gng()
Example 2: python windows take screenshot pil
import PIL.ImageGrab
im = PIL.ImageGrab.grab()
im.show()