- 博客(9)
- 资源 (5)
- 收藏
- 关注
原创 python source/working/home directory
working_directory = os.getcwd() home_directory = expanduser("~")
2014-11-25 09:07:36 1022
转载 The Linux user login management (/etc/passwd and /etc/shadow files)
原文cHave you ever thought what happens behind the doors when a user login happens in Linux? Where is the login information for a user is kept in Linux and how the validation of user crede
2014-11-13 22:04:54 1802
原创 linux ctime/mtime/atime
linux使用ctime/mtime/atime 来标记文档时间,ctime: c不代表create而是change的意思,比如文件内容的修改权限的修改都会改变ctimemtime: m是modify的意思,和ctime唯一的区别是权限的修改对其没有影响atime: a是文件访问的时间,比如你打开一个文件即使对起没有任何的修改也会对这个时间产生影响为了方便学习
2014-11-12 11:45:06 1477
原创 python: class VS instance
在CPP中我们认为class是一个对象的定义,instance就是这个对象的具体实例,所以class没有任何现实的意义不能提供直接的操作。但是在python里面就是完全不一样的世界,python秉承了部分java的every is object的设计理念,那对class本身当然也不能放过,所以这里的class也同样是一个实例,只不过只此一份,不能随便派生,自然我们联想到了CPP中的singlton
2014-11-06 17:16:02 1632
原创 django 带参数的 url
url就像筋络一样把django这个大框架的各个部分紧紧的连接成一个整体,所以要了解django从url开始是一个不错的方向。一般的view template url的关系这里就不讲了,下面会详细介绍下在url中参数的传递的例子。1. 简单的参数调用url(r’^articles/(\d{4})/(\d{2})/$’,’news.views.month
2014-11-05 19:39:37 13877
转载 django_table2
django-tables2Internal APIs Docs » django-tables2 - An app for creating HTML tables Edit on GitHubdjango-tables2 - An app for creating HTML tablesdjango
2014-11-05 12:22:05 5444
Effective C++
2009-03-19
Programming Windows with MFC
2009-03-18
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人