ddt模块包含了一个类的装饰器ddt和两个方法的装饰器: data:包含多个你想要传给测试用例的参数; file_data:会从json或yaml中加载数据; unpanck:通常data中包含的每一个值都会作为一个单独的参数传给测试方法,如果这些值是用元组或者列表传进来的,可以用unpack方法将 ...
分类:
其他好文 时间:
2018-10-25 00:16:33
阅读次数:
837
两个字符串比较大小: 一、可以用compareTo()方法,另外还有compareToIgnoreCase(String) 忽略大小写及 compareTo(object string)这些 方法返回值是int, 以compareTo()方法为例: & ...
分类:
其他好文 时间:
2018-10-24 12:02:36
阅读次数:
148
name="my\tnameis{name}andiam{year}old"print(name.capitalize())#首字母大写print(name.count("a"))#统计a的个数print(name.center(50,"-"))#把name放在中间,一共打印50个字符,不够的用-补上print(name.endswith
分类:
其他好文 时间:
2018-10-24 01:19:52
阅读次数:
187
Phone List Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 34805 Accepted: 9980 Description Given a list of phone numbers, determine if it ...
分类:
其他好文 时间:
2018-10-23 21:12:04
阅读次数:
189
/*分为四步 *//*第1步:创建临时表空间 */create temporary tablespace emaoyi_temp tempfile 'D:\app\Administrator\product\11.2.0\dbhome_1\database\emaoyi_temp.dbf' size ...
分类:
数据库 时间:
2018-10-23 20:57:55
阅读次数:
213
VIM扩展命令模式:一.保存退出:10进入第10行:w保存:q退出:wq保存并退出:w!强制保存:q!不保存并退出ZZ:保存并退出二.查找替换语法::范围s/old/new/选项1.1,10s/root/dong/g将第1行到第10行的root换成dong/g全局2.:1,$s/root/root将第1行到最后一行dong换成root(@等于/)三.读入文件1.:w:/new.txt另存为new.
分类:
系统相关 时间:
2018-10-23 17:56:15
阅读次数:
165
Broker Configs Consumer Configs Producer Configs Producer Configs ...
分类:
其他好文 时间:
2018-10-23 14:27:52
阅读次数:
153
Given a string S, we can transform every letter individually to be lowercase or uppercase to create another string. Return a list of all possible stri ...
分类:
其他好文 时间:
2018-10-23 12:02:54
阅读次数:
155
参考资料: https://blog.csdn.net/z4213489/article/details/7925490 1. 为何叫做shell? shell最简单的定义就是——命令解译器(Command Interpreter): 将使用者的命令翻译给核心处理; 同时,将核心处理结果翻译给使用者 ...
分类:
系统相关 时间:
2018-10-22 22:17:16
阅读次数:
197