摘要:
阅读全文
posted @ 2019-12-22 23:31
干it的小张
阅读(273)
评论(0)
推荐(0)
摘要:
设置文件信息包含webinfo和usrinfo、设计接口包括get_webinfo(路径名)和get_userinfo(配置文件路径名)那么ele_dict = get_webinfo(path)、user_list = get_userinfo(path)webinfo文件的: url=https 阅读全文
posted @ 2019-12-22 20:44
干it的小张
阅读(655)
评论(0)
推荐(0)
摘要:
#导入codecs模块:import codecsdef get_webinfo(path): web_info = {} config = codecs.open(path,"r","utf-8") # with open(path,"r",encoding="utf-8") as config: 阅读全文
posted @ 2019-12-22 20:11
干it的小张
阅读(783)
评论(0)
推荐(0)
摘要:
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 阅读全文
posted @ 2019-12-22 20:05
干it的小张
阅读(397)
评论(0)
推荐(0)
摘要:
谷歌浏览器驱动地址:https://chromedriver.storage.googleapis.com/index.html,https://www.aliqing.com.cn/谷歌浏览器版本号查询:chrome://versionfrom selenium import webdriver# 阅读全文
posted @ 2019-12-22 19:06
干it的小张
阅读(1386)
评论(0)
推荐(0)
摘要:
from functools import wrapsdef wrapper(func): @wraps(func) def inner(request,*args,**kwargs): """ inner的注释: :param request: :param args: :param kwargs 阅读全文
posted @ 2019-12-22 15:46
干it的小张
阅读(205)
评论(0)
推荐(0)
摘要:
阅读全文
posted @ 2019-12-22 12:49
干it的小张
阅读(335)
评论(0)
推荐(0)
摘要:
import randomfrom PIL import Image, ImageFont, ImageDraw, ImageFilterdef check_code(width=120, height=30, char_length=5, font_file='kumo.ttf', font_si 阅读全文
posted @ 2019-12-22 10:51
干it的小张
阅读(265)
评论(0)
推荐(0)

浙公网安备 33010602011771号