摘要: 通过递归解析字典,可以修改返回值的组合方式,根据需要自由修改 阅读全文
posted @ 2018-04-20 13:32 LLSix 阅读(165) 评论(0) 推荐(0) 编辑
摘要: assert 1>2,'123' 输出结果 阅读全文
posted @ 2018-03-26 14:29 LLSix 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 输出 阅读全文
posted @ 2018-03-26 12:16 LLSix 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 编辑类(Editing): Ctrl + Space 基本的代码完成(类、方法、属性)Ctrl + Alt + Space 类名完成Ctrl + Shift + Enter 语句完成Ctrl + P 参数信息(在方法中调用参数)Ctrl + Q 快速查看文档Shift + F1 外部文档Ctrl + 阅读全文
posted @ 2018-03-15 12:16 LLSix 阅读(295) 评论(1) 推荐(0) 编辑
摘要: python自动化测试中寻找元素并进行操作,如果在元素好找的情况下,相信大家都可以较熟练地编写用例脚本了,但光进行操作可能还不够,有时候也需要对预期结果进行判断。 常用 这里介绍几个常用断言的使用方法,可以一定程度上帮助大家对预期结果进行判断。- assertEqual assertNotEqual 阅读全文
posted @ 2018-02-26 17:28 LLSix 阅读(1176) 评论(0) 推荐(0) 编辑
摘要: [str(i)+'闰年' for i in range(2000,2100) if i%4 ==0 and i%100 !=0] 阅读全文
posted @ 2017-12-18 22:58 LLSix 阅读(1489) 评论(0) 推荐(0) 编辑
摘要: #coding:utf-8 ''' Created on 2017年10月25日 @author: li.liu ''' import pymysql db=pymysql.connect('localhost','root','root','test',charset='utf8') m=db.cursor() ''' try: #a=raw_input('请输入sql语句'+'\... 阅读全文
posted @ 2017-12-18 16:03 LLSix 阅读(234) 评论(0) 推荐(0) 编辑
摘要: #coding:utf-8 ''' Created on 2017��9��6�� @author: li.liu ''' from selenium import webdriver from selenium.webdriver.common.action_chains import ActionChains import os import time import re url=... 阅读全文
posted @ 2017-12-18 16:01 LLSix 阅读(362) 评论(0) 推荐(0) 编辑
摘要: #coding:utf-8 ''' Created on 2017年10月9日 @author: li.liu ''' from selenium import webdriver from lxml import etree import urllib import urllib2 import time #url='http://www.woyihome.com' url='http:/... 阅读全文
posted @ 2017-12-18 15:57 LLSix 阅读(4156) 评论(0) 推荐(0) 编辑
摘要: #coding:utf-8 ''' @author: li.liu ''' from selenium import webdriver from selenium.webdriver.common.action_chains import ActionBuilder, ActionChains from lxml import etree import urllib import time i... 阅读全文
posted @ 2017-12-18 15:50 LLSix 阅读(1572) 评论(0) 推荐(0) 编辑