摘要:
一、默认日志配置在django 1.4中默认有一个简单的日志配置,如下# A sample logging configuration. The only tangible logging# performed by this configuration is to send an email to... 阅读全文
posted @ 2015-08-05 19:49
starof
阅读(2501)
评论(0)
推荐(0)
摘要:
一、chmod及文件权限1、了解文件权限root账户新建一个目录permission,在该目录新建一个文件file,通过ll就可以查看其权限。root@development:~# cd permission/root@development:~/permission# touch fileroot... 阅读全文
posted @ 2015-08-05 17:28
starof
阅读(12034)
评论(0)
推荐(1)
摘要:
python的日志模块为logging,它可以将我们想要的信息输出保存到一个日志文件中。# cat log import logginglogging.debug('This is debug message')logging.info('This is info message')logging.... 阅读全文
posted @ 2015-08-05 17:28
starof
阅读(1531)
评论(0)
推荐(0)
摘要:
python 中curses封装了c语言的curses,把c中复杂部分简单化,比如addstr(),mvaddstr(),mvwaddstr()合并成了一个addstr()方法。一、语法入门1、打开和关闭一个curses 应用程序在任何代码执行前都先要初始化curses。初始化操作就是调用inits... 阅读全文
posted @ 2015-08-05 13:48
starof
阅读(41432)
评论(4)
推荐(2)

浙公网安备 33010602011771号