Zhenya moved from his parents’ home to study in other city. He didn’t take any cash with him, he only took his father’s credit card with zero balance ...
分类:
其他好文 时间:
2018-10-08 21:37:55
阅读次数:
136
package com.study; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Scanner; public class... ...
分类:
其他好文 时间:
2018-10-04 09:21:38
阅读次数:
134
docker安装elasticsearch伪分布式集群0.在安装es之前,首先编辑一下宿主机的内核参数,否则配置es集群的时候极有可能启动不成功:[root@study-01~]#vim/etc/sysctl.confvm.max_map_count=655360[root@study-01~]#sysctl-p#加载参数1.搜索es的镜像,如下第一个就是官方镜像:2.拉取镜像:[root@stu
分类:
其他好文 时间:
2018-09-26 10:15:16
阅读次数:
427
作 者:刘阳何劲鹏LIU YangHE Jin-peng(Xi'an University of Technology,Xi'an,710048,ChinaNortheast Normal University,Changchun,130024,China) 作者机构:[1]西安理工大学体育教学部, ...
分类:
其他好文 时间:
2018-09-25 14:13:09
阅读次数:
210
OC语言类的深入和分类 一、分类 (一)分类的基本知识 概念:Category 分类是OC特有的语言,依赖于类。 分类的作用:在不改变原来的类内容的基础上,为类增加一些方法。 添加一个分类: 文件结构图: 在分类中添加一个方法 Study方法的实现 测试程序: (二)分类的使用注意 (1)分类只能增 ...
分类:
编程语言 时间:
2018-09-21 15:19:16
阅读次数:
156
https://nanti.jisuanke.com/t/31460 题意 两个操作。1:查询区间[l,r]的和,设长度为L=r-l+1, sum=a[l]*L+a[l+1]*(L-1)+...+a[r]。2:将第a个位置修改为b。 分析 变形一下,sum=a[l]*(r-l+1)+a[l+1]*( ...
分类:
编程语言 时间:
2018-09-18 14:21:59
阅读次数:
136
package com.study.test; import java.io.Serializable; import java.text.SimpleDateFormat; import java.util.*; /** * 实现Java中日期的简单格式化,支持以下字段: * yyyy:年 * M... ...
分类:
编程语言 时间:
2018-09-16 21:03:24
阅读次数:
188
IO流[File_API学习的使用] File_API学习的使用1、名称分隔符 / \ separatorjava下路径:\ 在Windows下的路径,在java里 \ 是转义字符。需要 \\String path = "D:\\JavaCode\\Study_se\\imges\\bug.png" ...
一、重写HTMLLayout 两个自定义类:LzhHTMLLayoutBase和LzhHTMLLayout LzhHTMLLayoutBase代码如下: package top.liaozhenghan.logback.study.layout; import static ch.qos.logba ...
分类:
编程语言 时间:
2018-09-13 20:25:11
阅读次数:
221
Ryuji is not a good student, and he doesn't want to study. But there are n books he should learn, each book has its knowledge a[i]a[i]. Unfortunately, ...
分类:
其他好文 时间:
2018-09-13 01:17:21
阅读次数:
184