TinyURL is a URL shortening service where you enter a URL such as https://leetcode.com/problems/design-tinyurl and it returns a short URL such as http ...
分类:
Web程序 时间:
2018-11-19 13:33:08
阅读次数:
213
养成分目录的好习惯,使得代码保持整洁,为以后的代码管理提供方便。 一、概念 一般目录有以下几个: bin: conf:存放固定的配置信息,比如:连接redis的配置信息、连接mysql的配置信息等。 lib:存放main文件、tools文件等。 logs:存放日志 文件: main文件:存放主逻辑。 ...
分类:
编程语言 时间:
2018-11-19 13:31:01
阅读次数:
173
source = f.readlines() f.close() dataset = [] for line in source: line=line.strip().split(' ') curLine = list(map(int,line)) dataset.append(curLine) r ...
分类:
编程语言 时间:
2018-11-19 12:37:56
阅读次数:
170
Difficulty:medium Description Given a linked list, return the node where the cycle begins. If there is no cycle, return null. Note: Do not modify the ...
分类:
其他好文 时间:
2018-11-19 11:11:39
阅读次数:
110
Integer是一个看着挺简单的,其实还是有点不一样,Integer是一个int的包装类,它是可以起到缓存作用的,在java基础里说过它的范围是(-128-127)在这个返回是有缓存的,不会创建新的Integer对象,并且可以设置它的最大值,通过设置VM参数。 下面先看一下源码: 通过设置VM的ja ...
分类:
其他好文 时间:
2018-11-19 11:09:40
阅读次数:
215
Size of the BLUETOOTH_DEVICE_INFO structure, in bytes. BLUETOOTH_DEVICE_INFO结构的大小(单位为字节)。 Address of the device. 设备地址 Class of the device. 设备的类。 Speci ...
分类:
其他好文 时间:
2018-11-19 11:09:17
阅读次数:
476
/// <summary> /// 读取XML文件 /// </summary> /// <param name="fileName"></param> public string TestReadXMLFile(string fileName) { try { DataSet objDataSet ...
分类:
其他好文 时间:
2018-11-19 11:07:11
阅读次数:
136
已知有两支兵乓球队进行比赛,每队各出3人:甲队有a,b,c三人,乙队有x,y,z三人,已抽签决定比赛名单问题:有人向队员打听比赛名单。a说他不和X比,c说他不和x,z比,程序找出比赛对手方法一: 1 list1 = ['a','b','c'] 2 list2 = [0,0,0] 3 for i in... ...
分类:
编程语言 时间:
2018-11-19 11:04:44
阅读次数:
168
https://www.sugarhosts.com/zh-cn/hosting/shared-web-hosting Shared Baby 36 个月 ¥ 26.99 19 99 · / 月 续费 ¥26.99/月 立即购买 5GB 磁盘空间 50GB 月流量 可建2个 网站 2个 数据库 无限 ...
分类:
系统相关 时间:
2018-11-19 11:03:02
阅读次数:
285