import time def timmer(func): #这里是要把需要装饰的函数名传递进来,方便后面调用。如果不传函数名而是直接调用,在调用的位置会报:RecursionError: maximum recursion depth exceeded while calling a Python... ...
分类:
其他好文 时间:
2017-05-28 17:24:02
阅读次数:
148
题目: Given an array of 2n integers, your task is to group these integers into n pairs of integer, say (a1, b1), (a2, b2), …, (an, bn) which makes sum o ...
分类:
编程语言 时间:
2017-05-27 23:05:23
阅读次数:
349
CentOS7文件系统是xfs。 mtu,最大传输单元(Maximum Transmission Unit ifconfig,英语全称network interfaces configuring,显示所有正在启动的网卡的详细信息或设定系统中网卡的IP地址。interface,接口。 netmask, ...
分类:
系统相关 时间:
2017-05-27 21:17:15
阅读次数:
192
常用meta标签 H5页面窗口自动调整到设备宽度,并禁止用户缩放页面: <meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scala ...
分类:
移动开发 时间:
2017-05-27 19:58:07
阅读次数:
229
We define a harmonious array is an array where the difference between its maximum value and its minimum value is exactly 1. Now, given an integer arra ...
分类:
其他好文 时间:
2017-05-27 19:09:54
阅读次数:
219
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=n ...
分类:
移动开发 时间:
2017-05-27 12:10:35
阅读次数:
399
https://leetcode.com/problems/longest-harmonious-subsequence ...
分类:
其他好文 时间:
2017-05-26 00:41:48
阅读次数:
156
题目 Given a string S and a string T, count the number of distinct subsequences of T in S. A subsequence of a string is a new string which is formed fro ...
分类:
其他好文 时间:
2017-05-25 15:49:58
阅读次数:
118
近期,公司线上tomcat常常无缘无辜宕机。总结了一下定位问题的方法,仅供參考: 报错信息: Maximum number of threads (200) created for connector with address null and port 9443 # There is insuff ...
分类:
其他好文 时间:
2017-05-25 15:38:46
阅读次数:
271
<html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum ...
分类:
Web程序 时间:
2017-05-25 11:38:52
阅读次数:
1871