上一页 1 ··· 42 43 44 45 46 47 48 49 50 ··· 87 下一页
摘要: 简要步骤:1.编辑一个函数:def media_url(request): from django.conf import settings return {'media_url': settings.MEDIA_URL}2.配置settings:TEMPLATE_CONTEXT_PRO... 阅读全文
posted @ 2013-08-07 16:22 jianhong 阅读(251) 评论(0) 推荐(0)
摘要: 简要步骤:1.编辑一个函数:def media_url(request): from django.conf import settings return {'media_url': settings.MEDIA_URL}2.配置settings:TEMPLATE_CONTEXT_PRO... 阅读全文
posted @ 2013-08-07 16:22 jianhong 阅读(226) 评论(0) 推荐(0)
摘要: Python中使用线程有两种方式:函数或者用类来包装线程对象。1、 函数式:调用thread模块中的start_new_thread()函数来产生新线程。如下例:import thread def timer(no, interval): cnt = 0 while cnt<... 阅读全文
posted @ 2013-08-05 16:34 jianhong 阅读(183) 评论(0) 推荐(0)
摘要: Python中使用线程有两种方式:函数或者用类来包装线程对象。1、 函数式:调用thread模块中的start_new_thread()函数来产生新线程。如下例:import thread def timer(no, interval): cnt = 0 while cnt<... 阅读全文
posted @ 2013-08-05 16:34 jianhong 阅读(185) 评论(0) 推荐(0)
摘要: Python的reportlab专门将数据使用生成PDF中的图形和文档功能,下载ReportLabhttps://pypi.python.org/simple/reportlab/http://www.reportlab.com/software/opensource/rl-toolkit/down... 阅读全文
posted @ 2013-07-30 18:23 jianhong 阅读(3615) 评论(0) 推荐(0)
摘要: Python的reportlab专门将数据使用生成PDF中的图形和文档功能,下载ReportLabhttps://pypi.python.org/simple/reportlab/http://www.reportlab.com/software/opensource/rl-toolkit/down... 阅读全文
posted @ 2013-07-30 18:23 jianhong 阅读(583) 评论(0) 推荐(0)
摘要: 一,为什么不要用for in语句 jqModal这个jquery插件估计很多人都使用过,在jqModal源码内部,有一个函数为hs,其中有个嵌套循环如下,for(var i in {jqmShow:1,jqmHide:1}) for(var s in this[i]) if(H[this[i][s]... 阅读全文
posted @ 2013-07-25 14:25 jianhong 阅读(248) 评论(0) 推荐(0)
摘要: 一,为什么不要用for in语句 jqModal这个jquery插件估计很多人都使用过,在jqModal源码内部,有一个函数为hs,其中有个嵌套循环如下,for(var i in {jqmShow:1,jqmHide:1}) for(var s in this[i]) if(H[this[i][s]... 阅读全文
posted @ 2013-07-25 14:25 jianhong 阅读(198) 评论(0) 推荐(0)
摘要: Linux操作系统PS命令详细解析要对系统中进程进行监测控制,用 ps 命令满足你。/bin/psps 是显示瞬间行程的状态,并不动态连续;如果想对进程运行时间监控,应该用 top 工具。kill 用于杀死进程。==============ps 的参数说明======================... 阅读全文
posted @ 2013-07-18 11:22 jianhong 阅读(764) 评论(0) 推荐(0)
摘要: Linux操作系统PS命令详细解析要对系统中进程进行监测控制,用 ps 命令满足你。/bin/psps 是显示瞬间行程的状态,并不动态连续;如果想对进程运行时间监控,应该用 top 工具。kill 用于杀死进程。==============ps 的参数说明======================... 阅读全文
posted @ 2013-07-18 11:22 jianhong 阅读(987) 评论(0) 推荐(0)
上一页 1 ··· 42 43 44 45 46 47 48 49 50 ··· 87 下一页