Given a stack which can keep M numbers at most. Push N numbers in the order of 1, 2, 3, ..., N and pop randomly. You are supposed to tell if a given s ...
分类:
其他好文 时间:
2017-12-23 23:01:46
阅读次数:
194
def print_paras(fpara, *nums, **words): print("fpara: " + str(fpara)) print("nums: " + str(nums)) print("words: " + str(words)) print_paras("hello", 1... ...
分类:
其他好文 时间:
2017-12-23 01:11:21
阅读次数:
237
POST /3-0/app/account/item HTTP/1.1 Host: 10.100.138.32:8046 Content-Type: application/json Accept-Encoding: gzip, deflate Connection: keep-alive Acce ...
分类:
Web程序 时间:
2017-12-22 19:42:51
阅读次数:
204
一、 环境准备 主机名 Ip地址 系统版本 ha1 192.168.138.13 Centos7.3 ha2 192.168.138.14 Centos7.3 Rs1 192.168.138.15 Centos7.3 Rs2 192.168.138.16 Centos7.3 测试机器 192.168 ...
分类:
其他好文 时间:
2017-12-19 01:39:21
阅读次数:
168
概述:Hadoop是一个由Apache基金会所开发的分布式系统基础架构。用户可以在不了解分布式底层细节的情况下,开发分布式程序。充分利用集群的威力进行高速运算和存储。 Hadoop实现了一个分布式文件系统(Hadoop Distributed File System),简称HDFS。HDFS有高容错 ...
分类:
其他好文 时间:
2017-12-19 01:02:50
阅读次数:
107
02-线性结构4 Pop Sequence(25 分) Given a stack which can keep M numbers at most. Push N numbers in the order of 1, 2, 3, ..., Nand pop randomly. You are su ...
分类:
其他好文 时间:
2017-12-18 12:35:56
阅读次数:
253
HtmlAgilityPack 使用HtmlAgilityPack可以以面向对象的方式通过查找Html节点来获取页面元素。参考:http://html-agility-pack.net HtmlDocument类 //方法LoadHtml(string content);//加载Html数据 Cre ...
分类:
Web程序 时间:
2017-12-17 14:11:46
阅读次数:
199
此篇就不矫情了。直接上个配置吧。以后若有更新,继续修补 /usr/local/nginx/conf目录下面的nginx.conf文件 以用户nginx的身份来运行 user nginx; 启动进程,通常设置成和cpu数量相等 worker_processes 10; 全局错误日志 error_log ...
分类:
其他好文 时间:
2017-12-16 15:56:55
阅读次数:
166
1)app后台跨域设置 2)拦截器中设置http报文header中token 3)token的生成实现 1,app后台跨域的设置 1.1 springmvc4 有直接在请求映射中对跨域的处理,只需加一个@CrossOrign() 对全局请求路径的拦截的,则需要在配置类里声明: “/greeting- ...
分类:
编程语言 时间:
2017-12-15 16:24:14
阅读次数:
305
solr部署在tomcat下,solr集群包含tomcat集群和zookeeper集群; zookeeper:1.对象注册和发放中心,实现异步调用。 2.配置中心。(solrConfig.xml,schame.xml) linux下配置solrCloud:环境准备: 1.zookeeper集群配置: ...
分类:
其他好文 时间:
2017-12-15 16:17:54
阅读次数:
203