import pyautogui
pyautogui.displayMousePosition()
# help(pyautogui.displayMousePosition)
""" Help on function displayMousePosition in module pyautogui:
displayMousePosition(xOffset=0, yOffset=0)
This function is meant to be run from the command line. It will
automatically display the location and RGB of the mouse cursor.
"""
# example:
# Press Ctrl-C to quit.
# X: 110 Y: 20 RGB: (252, 0, 0)