02 2018 档案

摘要:环境是python3.6+selenium 3.4.3+chrome64 在编写前端自动化脚本时使用implicitly_wait时不起作用 1、确认自己是否正确使用,可用简单的例子来测试,比如: 此例子是正常情况 def test(): driver.implicitly_wait(10) dri 阅读全文
posted @ 2018-02-24 15:30 萱娃 阅读(1620) 评论(0) 推荐(0) 编辑
摘要:a=[i for i in range(1,10) if i%2==0]print(a)c=[(x,y) for x in range(5) if x%2==0 for y in range(5) if y%2==1]print(c) M=[[1,2,3],[4,5,6],[7,8,9]]N=[[2 阅读全文
posted @ 2018-02-23 16:08 萱娃 阅读(232) 评论(0) 推荐(0) 编辑
摘要:def list_test(a): list1=[] def list_all_dict(a): #检测字段类型 if isinstance(a,dict): for x in range(len(a)): temp_key=list(a.keys())[x] temp_value=a[temp_k 阅读全文
posted @ 2018-02-22 17:38 萱娃 阅读(580) 评论(0) 推荐(0) 编辑
摘要:from xlrd import open_workbookfrom xlutils.copy import copy jsonfile=r'C:\Users\Administrator\Desktop\en.json'jsonread=open(jsonfile,'r',encoding='UTF 阅读全文
posted @ 2018-02-09 13:49 萱娃 阅读(229) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示