2013年1月8日

Python进行ADSL拨号

摘要: import osg_adsl_account = {"name": "adsl", "username": "0512...", "password": "..."} class Adsl(object): #============================================================================== # __init__ : name: adsl名称 #============================ 阅读全文

posted @ 2013-01-08 16:59 misoag 阅读(3139) 评论(0) 推荐(0) 编辑

Python 截屏缩放保存

摘要: import timefrom PIL import Image,ImageGrabim = ImageGrab.grab()#im = im.resize([800,600], Image.ANTIALIAS)w,h = im.sizeim = im.resize([w/2,h/2], Image.ANTIALIAS)im.save("d:/screen/"+time.strftime('%Y%m%d%H%M%S')+".jpeg") 阅读全文

posted @ 2013-01-08 16:37 misoag 阅读(592) 评论(0) 推荐(0) 编辑

导航