列表推导与生成器表达式当我们创建了一个列表的时候,就创建了一个可以迭代的对象:>>> squares=[n*n for n in range(3)]>>> for i in squares: print i 014这种创建列表的操作很常见,称为列表推导。但是像列表这样的迭代器,比如str、file等...
分类:
编程语言 时间:
2014-08-17 01:05:01
阅读次数:
330
题意:问你 l- r 所有费马数两两不互质的对数,解题思路:费马数两两不互质。解题代码: 1 // File Name: 12904.cpp 2 // Author: darkdream 3 // Created Time: 2014年08月16日 星期六 13时34分26秒 4 5 #inclu....
分类:
其他好文 时间:
2014-08-17 00:58:21
阅读次数:
281
一般想要批量下载rtf模板我们都是用fndload来实现或者 perl download.pl来实现,今天看到一个比较有趣的方法
Hi,
Blob column 'template file data' below is just what you want, open it in PLSQL-DEVELOPER and save it as a rtf file or...
分类:
其他好文 时间:
2014-08-16 23:53:31
阅读次数:
540
#include
#include
#include
void fun(int *a,int *n)
{
int i,j=0;
for(i=0;i<1000;i++)
if((i%7==0||i%11==0)&&i%77!=0)
a[j++]=i;
*n=j;
}
void main()
{
int aa[1000],n,k;
system("CLS");
fun(aa,&n);...
分类:
其他好文 时间:
2014-08-16 23:52:41
阅读次数:
373
git add [commit file list]将已经修改的代码添加索引git commit -m [commit message]将已经索引的代码修改提交至本地的库git push origin [branch_name]将分支 branch_name 的代码推送至服务器git pull or...
分类:
其他好文 时间:
2014-08-16 22:24:31
阅读次数:
269
CommandActionNotesvim file +54open file and go to line 54any : command can be run using + on command linevim -O file1 file2open file1 and file2 side b...
分类:
其他好文 时间:
2014-08-16 22:23:41
阅读次数:
297
A:给你一个正方形的两点,让你求其余亮点解法:乱搞解题代码: 1 // File Name: a.cpp 2 // Author: darkdream 3 // Created Time: 2014年08月15日 星期五 23时24分04秒 4 5 #include 6 #include 7 #i....
分类:
其他好文 时间:
2014-08-16 21:02:31
阅读次数:
215
1. 打开动态链接库: #include void *dlopen(const char *filename, int flag); 该函数返回操作句柄,如: void *pHandle = dlopen(strSoFilePath, RTLD_LAZY);2. 取动态对象地址: #include....
分类:
其他好文 时间:
2014-08-16 19:42:30
阅读次数:
155
Linux 命令大全
Linux 命令大全
1、文件管理
cat
chattr
chgrp
chmod
chown
cksum
cmp
diff
diffstat
file
find
git
gitview
indent
cut
ln
...
分类:
系统相关 时间:
2014-08-16 18:34:21
阅读次数:
547
环境:web服务器:ip:192.168.1.32 ,安装有Visual Studio Premium 2013操作系统: Microsoft Server 2008 r2+sp1数据库服务器:ip:192.168.1.33,安装有Microsoft SQL Server 2012操作系统: Mic...
分类:
数据库 时间:
2014-08-16 18:29:40
阅读次数:
452