Raul2018

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 :: 管理 ::
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 20 下一页

2019年3月20日

摘要: yield可以返回多个值到setup函数中去,但是需要用括号括起来,然后下面具体的函数接受到传值就不需要每次都实例化了。 举例如下: @pytest.fixture()def setup(driver): nav_bar = NavBar(driver) vir_kb = Virtual_Keybo 阅读全文
posted @ 2019-03-20 16:26 Raul2018 阅读(1532) 评论(0) 推荐(0)

摘要: https://mp.weixin.qq.com/s?__biz=MzI5NDY1MjQzNA==&mid=2247489061&idx=2&sn=65cec7fa471b1eacabd302c1a88f1ea5&chksm=ec5ec958db29404e8fc8935cdcaf094c118ba 阅读全文
posted @ 2019-03-20 09:06 Raul2018 阅读(155) 评论(0) 推荐(0)

2019年3月17日

摘要: From: https://www.cnblogs.com/yunguoxiaoqiao/p/7640040.html 1.常用列表的操作 3.文件基本操作 5.生成器表达式(不占内存) 7.for循环的元组赋值 9.生成器函数:yield VS return 11.包相对导入:使用点号(.) 只能 阅读全文
posted @ 2019-03-17 09:33 Raul2018 阅读(309) 评论(0) 推荐(0)

2019年3月13日

摘要: From: https://majing.io/posts/10000005131196 枚举类型是在Python3.4新增到Python的标准库。 创建枚举 Python提供了两种方法来创建枚举: 基于class语法创建枚举 基于Function API创建枚举 创建枚举首先要导入Enum类 >> 阅读全文
posted @ 2019-03-13 21:20 Raul2018 阅读(291) 评论(0) 推荐(0)

2019年3月7日

摘要: 简述: *args: 可变长度元组参数 **kwargs: 可变长度字典参数 详解:【*args】:可变长度元组参数例1: def hello_args(para1, *args): print("para1 :", para1) for arg in args: print("args:", ar 阅读全文
posted @ 2019-03-07 08:28 Raul2018 阅读(268) 评论(0) 推荐(0)

2019年3月4日

摘要: newline controls how universal newlines mode works (it only applies to text mode). It can be None, '', '\n', '\r', and '\r\n'. It works as follows: [. 阅读全文
posted @ 2019-03-04 16:30 Raul2018 阅读(1439) 评论(0) 推荐(0)

2019年2月28日

摘要: From: https://www.cnblogs.com/feiyi211/p/6626314.html 一. fixture介绍 fixture是pytest的一个闪光点,pytest要精通怎么能不学习fixture呢?跟着我一起深入学习fixture吧。其实unittest和nose都支持fi 阅读全文
posted @ 2019-02-28 21:34 Raul2018 阅读(193) 评论(0) 推荐(0)

2019年2月25日

摘要: 在Dev分支上新建一个分支(可以通过Git TE网页创建) 然后就可以从Source下拉列表中看到新建的分支(new_name1)了。 远程分支创建完成之后,就可以在本机上面使用Git GUI Here去拉远程的分支到本地: 1)在适当目录下右键->Git GUI Here 2)Clone Exis 阅读全文
posted @ 2019-02-25 14:14 Raul2018 阅读(1358) 评论(0) 推荐(0)

2019年2月12日

摘要: From: http://www.differencebetween.net/technology/software-technology/difference-between-git-and-svn/#ixzz5fIoQsWBP Git vs SVN Git and SVN are both so 阅读全文
posted @ 2019-02-12 16:11 Raul2018 阅读(197) 评论(0) 推荐(0)

摘要: From: https://wenku.baidu.com/view/1f090e2e7275a417866fb84ae45c3b3567ecdd12.html Git和Svn对比 Git和Svn对比 Git和Svn对比 Git和Svn对比 Git和Svn对比 Git和Svn对比 Git和Svn对比 阅读全文
posted @ 2019-02-12 11:59 Raul2018 阅读(233) 评论(0) 推荐(0)

上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 20 下一页