题目描述Elenore has a list of strings that she wants to
put in a file. She could just put them all into a file in order, but she wants
to minimize the siz...
分类:
其他好文 时间:
2014-05-17 01:33:55
阅读次数:
257
一直认为在加载outer class 的同时也会加载inner class
并且完成静态变量和代码块的初始化,今天在维基百科上面看到“The static class definitionLazyHolderwithin it
isnotinitialized until the JVM deter...
分类:
其他好文 时间:
2014-05-16 19:57:41
阅读次数:
316
$\bf命题:$设$\int_a^{ + \infty } {f\left( x \right)dx}
$收敛,若$\lim \limits_{x \to \begin{array}{*{20}{c}} {{\rm{ + }}\infty }
\end{array}} f\left( x \righ...
分类:
其他好文 时间:
2014-05-14 09:49:48
阅读次数:
341
设\[\mathop {\lim }\limits_{x \to
\begin{array}{*{20}{c}}{{a^ + }}\end{array}} f\left( x \right) = \mathop {\lim
}\limits_{x \to \begin{array}{*{20}{c}...
分类:
其他好文 时间:
2014-05-14 08:33:45
阅读次数:
310
设\[\mathop {\lim }\limits_{x \to
\begin{array}{*{20}{c}}{{a^ + }}\end{array}} f\left( x \right) = \mathop {\lim
}\limits_{x \to \begin{array}{*{20}{c}...
分类:
其他好文 时间:
2014-05-14 08:32:48
阅读次数:
245
1 #include 2 3 using namespace std; 4 long long p;
5 long long a[20]; 6 long long solve(long long n){ 7 long long left,m,sum =0; 8
for(i...
分类:
其他好文 时间:
2014-05-13 21:29:55
阅读次数:
369
前一个元素设置浮动了紧挨着的元素就浮动在上个元素的下面被上个元素给覆盖要不想被覆盖
要清除浮动clear:left clear:right左浮元素不覆盖 右边元素不覆盖clear:both; Document Header Content
...
分类:
Web程序 时间:
2014-05-13 19:12:13
阅读次数:
357
#!/usr/bin/envpython#coding:utf8#此脚本为查找递归目录下所有文件匹配的内容importos,sys,tabdefpaths(path):list_path=os.walk(path)all_file=[]forp,d,flinlist_path:forfinfl:pfile=os.path.join(p,f)ifos.path.isdir(pfile):paths(pfile)all_file.append(pfile)returnall..
分类:
编程语言 时间:
2014-05-13 03:49:34
阅读次数:
426
#!/usr/bin/envpython#coding:utf8importos,sys,glob,time,MySQLdb,reDIRNAME=os.path.dirname(__file__)OPSTOOLS_DIR=os.path.abspath(os.path.join(DIRNAME,‘..‘))sys.path.append(OPSTOOLS_DIR)fromlibrary.mysqlconfigimportMySQLDConfig,getMyVariablesfromoptparseimport..
分类:
数据库 时间:
2014-05-13 02:46:59
阅读次数:
809
#!/usr/bin/envpython#coding:utf8#随机生成自定义长度密码fromrandomimportchoiceimportstring,pickledefGenPassword(length=8,chars=string.ascii_letters+string.digits):return‘‘.join([choice(chars)foriinrange(length)])defpasslist(r_user,c_user,ip_list,web_list):di..
分类:
编程语言 时间:
2014-05-13 01:25:56
阅读次数:
505