先贴代码吧,运行一下,看看效果,然后看看注释,再看看代码后面的基础介绍
创建一个新excel并写入数据:
public static void myExcel2() throws IOException, WriteException {
WritableWorkbook wwb = Workbook.createWorkbook(new File("F:"
+ File.sepa...
分类:
编程语言 时间:
2014-08-17 02:36:31
阅读次数:
320
列表推导与生成器表达式当我们创建了一个列表的时候,就创建了一个可以迭代的对象:>>> 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
先决条件请不要把任何相关的开发工具和扩展程序,放到有空格的目录(如Progaram Files\Python),会导致意想不到的错误,无法进行后续操作。开发 Add-on SDK,你需要:Python 2.5,2.6 或 2.7。 需要注意的是在任何平台都是不支持 Python3.x版本的 。确保你...
分类:
其他好文 时间:
2014-08-16 23:40:51
阅读次数:
214
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