上一页 1 ··· 72 73 74 75 76 77 78 79 80 ··· 96 下一页
摘要: 阅读全文
posted @ 2019-12-22 23:31 干it的小张 阅读(275) 评论(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的小张 阅读(398) 评论(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的小张 阅读(1389) 评论(0) 推荐(0)
上一页 1 ··· 72 73 74 75 76 77 78 79 80 ··· 96 下一页