/ Published in: Python
Probado en python 3.2.2
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
#probado en python 3.2.2 import PIL.ImageGrab #http://www.lfd.uci.edu/~gohlke/pythonlibs/ import datetime now = datetime.datetime.now().strftime("%Y-%m-%d %H%M%S") print(now) img = PIL.ImageGrab.grab() img.save(str(str(now) + '.png'),'png')