9个小技巧让你的 if else看起来更优雅 if else 是我们写代码时,使用频率最高的关键词之一,然而有时过多的 if else 会让我们感到脑壳疼,例如下面这个伪代码: 我们本文提供了 9 种方法来解决掉那些“烦人”的 if else,一起来看吧。 1.使用 return 我们使用 retu ...
分类:
其他好文 时间:
2020-04-22 21:31:00
阅读次数:
127
脚本很简单,就是初级的只有用户名和密码就可以登录的接口测试 需要先新建一个excel文件用来保存用例,以下是excel详情,就写了具体数据,其余字段没写 具体代码如下: import requests, time import xlrd, xlwt from xlutils.copy import ...
分类:
其他好文 时间:
2020-04-22 19:42:50
阅读次数:
90
题干 \ define xhxj (Xin Hang senior sister(学姐)) If you do not know xhxj, then carefully reading the entire description is very important. As the stronge ...
分类:
其他好文 时间:
2020-04-22 16:11:45
阅读次数:
74
The "eight queens puzzle" is the problem of placing eight chess queens on an 8 chessboard so that no two queens threaten each other. Thus, a solution ...
分类:
其他好文 时间:
2020-04-21 23:40:06
阅读次数:
92
业务有数据查看需求的:如比对、打电话 1、脱敏,可满足唯一性比对即可, 2、脱敏影响业务的,可以考虑在脱敏的同时,添加辅助字段,如住址的大概描述: 浙江省-杭州市 3、打电话可以采用第三方的电话服务,省去人工查看拨打电话,直接打电话 仍然不行的,要查看数据,则要进行1、限制次数 2、限制权限,根据属 ...
分类:
其他好文 时间:
2020-04-21 14:43:54
阅读次数:
54
Integer Programming Model 1(Linearization of nonlinear integer programming problem) When there is a product $x_1,\cdots,x_k$ of k 0 1 variables $x_j$, ...
分类:
其他好文 时间:
2020-04-21 09:55:23
阅读次数:
67
一、本地是Windows的pycharm,将BSTestRunner放在lib下,可以正常运行,放到linux环境后,报错如图: 解决方法:将BSTestRunner直接放到项目里,导入的时候,直接加入路径导入,eg: 二、部署时提示开始路径找不到,一堆错如图: 解决方法:将test_case和报告 ...
分类:
编程语言 时间:
2020-04-21 00:12:52
阅读次数:
99
cd/usr/srcyum-yinstallgccgcc-c++makelibtoolzlibzlib-develpcrepcre-developensslopenssl-develwgethttp://nginx.org/download/nginx-1.14.0.tar.gztarzxfnginx-1.14.0.tar.gzgroupaddwwwuseradd-gwwwwww-s/sbin/n
分类:
其他好文 时间:
2020-04-20 15:30:00
阅读次数:
59
项目在此基础上:solr7.2.1+tomcat8.5.37+jdk8安装配置 github:https://github.com/magese/ik-analyzer-solr 历史版本下载地址:https://search.maven.org/search?q=g:com.github.mage ...
分类:
其他好文 时间:
2020-04-20 13:56:57
阅读次数:
83
By Pixy https://stackoverflow.com/questions/24396644/programmatically-mount-a-microsoft-virtual-hard-drive-vhd This is an old question but it still ha ...
分类:
其他好文 时间:
2020-04-20 12:11:18
阅读次数:
69