使用itchat实现获取电脑截屏
import itchat
from itchat.content import TEXT
from PIL import ImageGrab
@itchat.msg_register(TEXT)
def screen(msg):
if msg['Text'] == 'screen':
im = ImageGrab.grab()
im.save('screen.png')
itchat.send('@img@%s' % 'screen.png')
itchat.auto_login(True)
itchat.run()
使用itchat...
import itchat
网友评论