xxxxxxxxxx
Shift + Command + 3
For taking screenshot of complete screen
xxxxxxxxxx
import pyautogui
# Capture the screen
screenshot = pyautogui.screenshot()
# Specify the desired file name and save the screenshot
screenshot.save('screenshot.png')
# Optional: Open the screenshot file
screenshot.show()
xxxxxxxxxx
import pyautogui
# Take screenshot of the entire screen
screenshot = pyautogui.screenshot()
screenshot.save('screenshot.png')