如何在单元测试中测试接口返回的字段? 如果我们有一个api的entity为 employment.rb let(:default_headers) { { 'CONTENT_TYPE' => 'application/json' } } it 'xxx xxx' do headers = { 'Au ...
分类:
其他好文 时间:
2019-10-16 09:26:33
阅读次数:
98
解决方式是配置文件增加: proxy_ssl_session_reuse off; ...
分类:
Web程序 时间:
2019-10-15 21:14:18
阅读次数:
239
Do Not Try This Problem Gym - 102307D 题意:给个长度为len的字符串(len<=1e5),然后q次操作(q<=1e5),每次给出i,a,k,c,(i+k*a<=len)也就是把字符串位置为i,i+a,i+2*a...,i+k*a的改成c字符,输出q次操作后的字符 ...
分类:
其他好文 时间:
2019-10-14 23:37:07
阅读次数:
109
每日分享 Darkness cannot drive out darkness; only light can do that. Hate cannot drive out hate; only love can do that. 黑暗无法驱除黑暗; 只有光可以做到这一点。 仇恨无法驱走仇恨; 只有 ...
分类:
编程语言 时间:
2019-10-14 12:59:10
阅读次数:
138
#!/bin/bash tables=`cat /tmp/test/tables` for TABLE in $tables do echo "表$TABLE" >> /tmp/test/txt/1.txt mysql -uroot -p'Admin123,.' -e "SELECT column_... ...
分类:
数据库 时间:
2019-10-14 12:49:22
阅读次数:
81
insert into "Stu_Record_Law"("Studentid","Desc","Step") values (123,'hehe',1) on conflict("Studentid","Step") DO UPDATE SET "Desc"=EXCLUDED."Desc"' ...
分类:
数据库 时间:
2019-10-14 12:25:08
阅读次数:
87
<!DOCTYPE NETSCAPE-Bookmark-file-1><!-- This is an automatically generated file. It will be read and overwritten. DO NOT EDIT! --><META HTTP-EQUIV="Co ...
分类:
其他好文 时间:
2019-10-14 12:14:29
阅读次数:
256
比如你只需要提取文件中的手机号,而这些文件的编码都不相同,这时,可以这样: f = open(filename,'r,encoding='utf-8',errors=ignore) content = f.read() #do something with content f.close() ...
分类:
编程语言 时间:
2019-10-13 11:02:48
阅读次数:
131
a=0 for xgip in ${xgipset[*]} do let a+=1 fping $xgip|grep alive >/dev/null if [ $a != 3 ];then if [ $? = 0 ];then echo -n "$outip与$xgip正常通信," else ec... ...
分类:
其他好文 时间:
2019-10-13 00:22:43
阅读次数:
88
[TOC] 面向对象进阶 Wisdom is knowing what to do next , virtue is doing it . classmethod 和 staticmethod classmethod 装饰给类内部的方法,使该方法绑定给类使用。由类调用,将类作为第一个参数传入方法,不 ...
分类:
其他好文 时间:
2019-10-12 22:34:10
阅读次数:
82