摘要:
阅读全文
摘要:
设置文件信息包含webinfo和usrinfo、设计接口包括get_webinfo(路径名)和get_userinfo(配置文件路径名)那么ele_dict = get_webinfo(path)、user_list = get_userinfo(path)webinfo文件的: url=https 阅读全文
摘要:
#导入codecs模块:import codecsdef get_webinfo(path): web_info = {} config = codecs.open(path,"r","utf-8") # with open(path,"r",encoding="utf-8") as config: 阅读全文
摘要:
def get_webinfo(path): web_info = {} with open(path,"r",encoding="utf-8") as config: for line in config: #使用列表解析: result = [ele.strip() for ele in lin 阅读全文
摘要:
谷歌浏览器驱动地址:https://chromedriver.storage.googleapis.com/index.html,https://www.aliqing.com.cn/谷歌浏览器版本号查询:chrome://versionfrom selenium import webdriver# 阅读全文
摘要:
from functools import wrapsdef wrapper(func): @wraps(func) def inner(request,*args,**kwargs): """ inner的注释: :param request: :param args: :param kwargs 阅读全文
摘要:
阅读全文
摘要:
import randomfrom PIL import Image, ImageFont, ImageDraw, ImageFilterdef check_code(width=120, height=30, char_length=5, font_file='kumo.ttf', font_si 阅读全文