from PIL import ImageGrab import os import time
#屏幕截图 def screen_capture(): current_name=time.strftime('%Y-%m-%d',time.localtime(time.time())) img_path="d:\\"+current_name +'bug.jpg' im = ImageGrab.grab() im.save(img_path) return img_path 如没有ImageGrab包,请先自己安装
python屏幕截图
最新推荐文章于 2024-10-18 10:41:41 发布