import csv
f_w = csv.writer(open('ret.csv','wb'))
f_w.writerow([t1,t2,uid,t4,last_date,reg_date])
我使用的是 生成CSV文件的功能。
首先 import csv 模块
既然是生成文件 ,先用open()打开一个文件 。 就是这一句
f_w = csv.writer(open(...
分类:
编程语言 时间:
2015-02-05 13:37:38
阅读次数:
243
[ref:http://blog.51yip.com/server/1382.html][http://blog.chinaunix.net/uid-174325-id-1744019.html][http://mba.shengwushibie.com/itbook/BookChapter.asp...
分类:
其他好文 时间:
2015-02-04 00:18:12
阅读次数:
293
使用getpwuid()函数
#include #include
#include
main()
{
struct passwd *user;
user = getpwuid(1);
printf("name :%s\n",user->pw_name);
printf("uid: %d\n",user->pw_uid);
...
分类:
其他好文 时间:
2015-02-03 17:17:31
阅读次数:
165
转载:http://blog.chinaunix.net/uid-20682890-id-3180911.html一、使用shell 的 echo 命令实现。echo -ne [?25l&[?25h&是按下ctrl键不放,然后按下V, 就是按一下键盘上的ESC键在终端回显的情况如下:echo -ne...
分类:
系统相关 时间:
2015-02-03 16:49:18
阅读次数:
150
参考博客:http://blog.chinaunix.net/uid-27164517-id-3299073.html;原文比较乱,整理一下 1、ls ?== list(列出目录内容) ? ? ? ? ? ? ? cd == change directory(改变目录) ? ? su ?== switch use...
分类:
系统相关 时间:
2015-02-03 15:26:58
阅读次数:
277
Android UID and PID 我们经常在一个activity中去start另一个activity,或者与另一个acitivity的结果进行交互 (startActivityForResult)。但有没有想过可能会出现的permission问题呢?如果你遇到了permission deni....
分类:
移动开发 时间:
2015-02-03 13:00:46
阅读次数:
218
PID:为Process Identifier, PID就是各进程的身份标识。程序一运行系统就会自动分配给进程一个独一无二的PID。进程中止后PID被系统回收,可能会被继续分配给新运行的程序,但是在android系统中一般不会把已经kill掉的进程ID重新分配给新的进程,新产生进程的进程号,一般比产...
分类:
移动开发 时间:
2015-02-03 00:32:05
阅读次数:
231
转自:http://blog.chinaunix.net/uid-20384269-id-1954602.html首先,内存访问和管理是一个跨越应用程序,操作系统,硬件平台的一个复杂过程,不能单纯的讲32bit系统就支持4G内存,从而认为这个过程只是OS和内存两者之间的关系理论上:32位系统,32b...
分类:
其他好文 时间:
2015-02-02 22:57:44
阅读次数:
247
http://blog.sina.com.cn/s/blog_75b0e2ad01013afr.htmlhttp://blog.csdn.net/qingtingchen1987/article/details/7698415http://blog.chinaunix.net/uid-1195932...
分类:
编程语言 时间:
2015-02-02 19:26:08
阅读次数:
184
linux下svn命令使用大全(share)转自:http://blog.chinaunix.net/uid-22566367-id-1965771.html1、将文件checkout到本地目录svn checkout path(path是服务器上的目录)例如:svn checkout svn://...
分类:
系统相关 时间:
2015-02-02 12:15:06
阅读次数:
209