cf 1174 D "Ehab and the Expected XOR Problem" 题意 在1~$2^n$范围内找到一个最长的序列,使得该序列的每一个子串异或后不等于0和x 题解 假设该序列为a,那么前缀异或和b[i] = a[i]^a[i 1]^...^a[0],如果b之间异或都不会等于0 ...
分类:
其他好文 时间:
2019-08-25 01:16:55
阅读次数:
107
package com.course.testng.suite; import org.testng.annotations.Test; public class ExpectedExeption { /* 什么时候回应道异常测试????? 在我们期望结果为某一个异常的时候 比如:我们传入不合法的参... ...
分类:
其他好文 时间:
2019-08-24 18:32:57
阅读次数:
76
注意文件响应处理方式,是响应为网页形式还是附件显示,看如下信息: In a regular HTTP response, the Content-Disposition response header is a header indicating if the content is expected ...
分类:
编程语言 时间:
2019-08-23 10:38:23
阅读次数:
94
ModuleNotFoundError: No module named 'PIL' 解决方法: 运行命令:pip install Pillow IndentationError: expected an indented block 解决方法:注意缩进对齐 ...
分类:
编程语言 时间:
2019-08-22 23:33:05
阅读次数:
125
参考资料:https://stackoverflow.com/questions/22008859/the-name-is-not-a-valid-identifier-error-in-function 执行存储过程中sql字符串: ...
分类:
数据库 时间:
2019-08-22 18:45:53
阅读次数:
116
Swagger官网:http://swagger.io GitHub地址:https://github.com/swagger-api 官方注解文档:http://docs.swagger.io/swagger-core/apidocs/index.html Swagger-UI地址:https:/ ...
分类:
编程语言 时间:
2019-08-22 18:38:01
阅读次数:
71
在写Python代码的时候,遇到了“TypeError: a bytes-like object is required, not 'str'”错误,此处实验机器的Python环境为Python 3.6.6,如下所示 >>> import base64 >>> db_user_encode=base... ...
分类:
其他好文 时间:
2019-08-20 12:52:31
阅读次数:
163
Go通过类型别名和结构体的形式支持用户自定义类型。结构体是复合类型。通过new来创建 组成结构体类型的数据称为字段。type identifier struct { field1 type1 field2 type2 ...} 在结构体的指针和结构体引用中,调用结构体内的字段都使用选择器(.)就是这 ...
分类:
其他好文 时间:
2019-08-20 00:53:58
阅读次数:
84
分支结构 if结构 单分支:一个条件满足就执行 不满足就不执行 案例:要求输入成绩,成绩的各种划分 判断: 100 奖励兰博基尼 90-100 法拉利 80-90 宝马 70-80 奥迪 60-70 奥拓 <60 大嘴巴子 if..else..结构 双分支 if..else if...else结构 ...
分类:
其他好文 时间:
2019-08-19 22:50:30
阅读次数:
184
在Java中,所有变量在使用前必须声明,格式:type identifier = value; Java局部变量: 1.声明在方法、构造方法或者语句块中; 2.在方法、构造方法或者语句块执行的时候创建,当它们执行完后,变量会被销毁; 3.访问修饰符不可用于局部变量; 4.只在声明它的方法、构造方法或 ...
分类:
编程语言 时间:
2019-08-18 15:28:29
阅读次数:
84