摘要:        
import time #字符串转化为时间戳 def str_to_timeStamp(str): '''字符串格式为:2017-11-24 17:30:00''' timeStruct = time.strptime(str, "%Y-%m-%d %H:%M:%S") timeStamp = int(time.mktime(timeStruct)) retur...    
阅读全文
 
        
摘要:        
from PIL import Image, ImageGrab def screenshot(imagefile): '''截取整个屏幕图片并保存到imagefile''' image = ImageGrab.grab() return image.save(imagefile) def screenshot_by_size(imagefile,x1,y1,x2,...    
阅读全文
 
        
摘要:        
由于目前测试的软件是C/S客户端的,没有办法愉快的用selenium或appium,只好用10年前学习的autoit加上新学了皮毛的python来解决,在此记录一下学习过程遇到的问题和处理方法。 问:为什么用python+autoit而不是单独使用autoit呢? 答:因为autoit没有现成可用的    
阅读全文