P2970 [USACO09DEC]自私的放牧Selfish Grazing P2970 [USACO09DEC]自私的放牧Selfish Grazing P2970 [USACO09DEC]自私的放牧Selfish Grazing 题目描述 Each of Farmer John's N (1 < ...
分类:
其他好文 时间:
2017-12-30 15:59:17
阅读次数:
145
英文文档: callable(object) Return True if the object argument appears callable, False if not. If this returns true, it is still possible that a call fails ...
分类:
编程语言 时间:
2017-12-29 16:56:11
阅读次数:
179
英文文档: filter(function, iterable) Construct an iterator from those elements of iterable for which function returns true. iterable may be either a seque ...
分类:
编程语言 时间:
2017-12-29 16:17:10
阅读次数:
137
主题设置 入口:sublimetext -> preferences -> package control -> install package 搜索一下插件 插件名:material theme 给文件添加主题a file icon 给文件添加 边角图标 ...
分类:
其他好文 时间:
2017-12-29 12:14:16
阅读次数:
132
引子: 当前,互联网 体系结构的参考模型主要有两种,一种是OSI参考模型,另一种是TCP/IP参考模型。 一、OSI参考模型,即开放式通信系统互联参考模型(OSI/RM,Open Systems Interconnection Reference Model),是国际标准化组织(ISO)提出的一个试 ...
分类:
编程语言 时间:
2017-12-28 23:36:12
阅读次数:
404
原子更新基本类型 原子更新数组 原子更新抽象类型 原子更新字段 原子更新基本类型: 运行结果: 运行结果: 对CAS的源码理解:--初步理解 在AtomicInteger中有这样一段源码: 其中,compareAndSwap就是CAS的缩写。如果prev和next不相等,则返回true。否则,返回f ...
分类:
其他好文 时间:
2017-12-28 23:29:51
阅读次数:
204
1.背景 现在很多应用都存在XXE(XML External Entity attack)漏洞,就是xml外部实体攻击,比如facebook,很多XML的解析器默认是含有XXE漏洞的。 2.xml的定义 XML用于标记电子文件使其具有结构性的标记语言,可以用来标记数据、定义数据类型,是一种允许用户对 ...
分类:
其他好文 时间:
2017-12-28 23:25:48
阅读次数:
502
今天又看到了这样的代码: plt.imshow(X_train[0], cmap=plt.get_cmap('PuBuGn_r')) #plt.imshow(X_train[0], cmap=plt.get_cmap('PuBuGn')) 然后发现 get_cmap 经常看到,但是不懂,查了一下,原 ...
分类:
其他好文 时间:
2017-12-28 21:37:50
阅读次数:
171
官方文档:https://docs.spring.io/spring/docs/4.3.13.RELEASE/spring-framework-reference/htmlsingle/#cache 对应的XML配置文件: ...
分类:
编程语言 时间:
2017-12-28 00:00:03
阅读次数:
206
一些mongodb学习的相关知识,记录下来以便下次查看使用 参考:https://docs.mongodb.com/manual/reference/operator/ http://www.runoob.com/mongodb/mongodb-tutorial.html https://code. ...
分类:
数据库 时间:
2017-12-27 17:58:19
阅读次数:
205