1、 编写一个方法method(),判断一个数能否同时被3和5整除。 2、有一个函数y=x (x<1) || y=zx-1(1<=x<10) || y=3x-1(x>=10) 写一个方法getvalue(),对任意参数x,返回y的值。 3、实现简单计算器,分别输入两个数和一个运算符,计算结果。 计算 ...
分类:
其他好文 时间:
2017-10-20 10:17:27
阅读次数:
169
To finish the homework of Information Security, I review the assembly code part of 15213 The course homepage is http://www.cs.cmu.edu/~213/schedule.ht ...
分类:
其他好文 时间:
2017-10-20 10:15:32
阅读次数:
112
1、按照第一感觉,我认为几率没有发生变化。 2、仔细分析,换选择获得汽车的概率更高。第一次选择,选对的概率是三分之一,选错的概率是三分之二。那么换选择后,改变第一次选对的概率是三分之一,改变第一次选错的概率是三分之二;也就是说,换选择后,第二次选错的概率是三分之一、选对的概率是三分之二。 3、程序验 ...
分类:
其他好文 时间:
2017-10-20 10:04:51
阅读次数:
126
今天看了国外的很多网站,发现在网页中选中文本的时候,颜色不是我们平常所说的蓝色。经过google的帮助,发现,原来是 CSS 3.0的一个小特性。 除了主流浏览器(ie)之外,一般还是支持的。 重点:就是 ::selection 的应用; ...
分类:
Web程序 时间:
2017-10-19 21:19:20
阅读次数:
314
A sequence of number is called arithmetic if it consists of at least three elements and if the difference between any two consecutive elements is the ...
分类:
其他好文 时间:
2017-10-19 21:16:10
阅读次数:
266
定义:略! 先来一个模块spam.py #spam.py print('from the spam.py') money=1000 def read1(): print('spam模块:',money) def read2(): print('spam模块') read1() def change( ...
分类:
编程语言 时间:
2017-10-19 21:14:14
阅读次数:
269
这个题是一个带点小技巧的spfa,需要开一个二维数组维护路的种类的问题,除此之外没啥好说了╮(╯▽╰)╭ ps:我希望这个题数据最好全是HOLY SHIT! ...
分类:
其他好文 时间:
2017-10-19 21:14:03
阅读次数:
263
1028 大数乘法 V2 基准时间限制:2 秒 空间限制:131072 KB 分值: 80 难度:5级算法题 1028 大数乘法 V2 基准时间限制:2 秒 空间限制:131072 KB 分值: 80 难度:5级算法题 1028 大数乘法 V2 基准时间限制:2 秒 空间限制:131072 KB 分 ...
分类:
其他好文 时间:
2017-10-19 21:05:34
阅读次数:
299
当我们使用resquests.get()时,返回的时response的对象,他包含服务器返回的所有信息,也包含请求的request的信息。 首先: response对象的属性有以下几个, r.status_code是http请求的返回状态,200表示连接成功,404表示连接失败,这时候应该抛出异常, ...
分类:
其他好文 时间:
2017-10-19 21:02:58
阅读次数:
290
#pragma comment(linker, "/STACK:1024000000,1024000000") #include #include #include #include #include #include using namespace std; const int maxn=2000... ...
分类:
其他好文 时间:
2017-10-19 19:52:52
阅读次数:
156