public class City { String name; int id; static int idCounter = 0; public City(String name) { this.name=name; id = idCounter++; } } import java.util.A ...
分类:
编程语言 时间:
2017-04-29 22:15:22
阅读次数:
541
/* hash.js */ var crypto = require('crypto'); module.exports = function(){ this.encode = function(){ var algorithm = arguments[0] ? arguments[0] : '' ...
分类:
其他好文 时间:
2017-04-29 21:00:18
阅读次数:
172
influxdb安装配置 os:centos 7 x64 1、安装:参见: https://www.influxdata.com/package-repository-for-linux/cat <<EOF | tee /etc/yum.repos.d/influxdb.repo[influxdb] ...
分类:
数据库 时间:
2017-04-28 15:54:06
阅读次数:
269
错误提示如下: System.ComponentModel.Win32Exception (0x80004005): 系统找不到指定的文件。 在 System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo ...
转载自贴吧:http://tieba.baidu.com/p/2825006787 一、关于txt纯文本的读写 其实.txt,.xml,.json这类文件都属于文本文件,类似的还有.lrc歌词文件,.ini配置文件,.reg注册表文件等等,这类文件所储存的内容都是文本,只是各自有它们自己的格式,便于 ...
分类:
编程语言 时间:
2017-04-27 14:46:55
阅读次数:
516
1.指定项目代码库中迭代列出全部ProductList(.git)到pro.log文件中 repo forall -c 'echo $REPO_PROJECT' | tee pro.log pro.log文件内容如下:(这里以高通源码部分project为例) platform/abi/cppplat ...
分类:
其他好文 时间:
2017-04-26 13:08:16
阅读次数:
321
Two Nikifors play a funny game. There is a heap of N stones in front of them. Both Nikifors in turns take some stones from the heap. One may take any ...
分类:
其他好文 时间:
2017-04-26 13:06:46
阅读次数:
168
1 初始类 1 声明类 (和声明函数很相似) 类的定义格式 class 类名: '类的文档字符串' 类体 2 创建一个类: class Data: pass Python编程中习惯类名使用单数单词并且首字母大写 类是数据与函数的结合,二者称为类的属性 class Garen: #定义英雄盖伦的类,不 ...
分类:
编程语言 时间:
2017-04-24 19:53:43
阅读次数:
202
Rob pike发表过一个有名的演讲《Concurrency is not parallelism》(https://blog.golang.org/concurrency-is-not-parallelism), 演讲胶片在talks.golang.org中可以找到(https://talks.g ...
分类:
其他好文 时间:
2017-04-23 21:12:45
阅读次数:
246