上一页 1 ··· 33 34 35 36 37 38 39 40 41 ··· 73 下一页
case when--then--else--end的最屌的地方应该是它既在普通的字段中使用,也可以在聚合函数中使用。原文:http://blog.itpub.net/26451903/viewspace-733526Case具有两种格式。简单Case函数和Case搜索函数。--Case搜索函数(推... Read More
posted @ 2015-10-28 20:19 奋斗终生 Views(1423) Comments(0) Diggs(0)
相信很多朋友在编程的时候都会想修改一下已经写好的程序行为代码,而最常见的方式就是通过子类来重写父类的一些不满足需求的方法。比如说下面这个例子。class Dog: def bark(self): print 'Woof!' class Husky(Dog): def bar... Read More
posted @ 2015-10-28 08:50 奋斗终生 Views(10058) Comments(0) Diggs(1)
参见http://yun.baidu.com/share/link?shareid=1575530779&uk=1795493794cookie三元组(name,domain,path),它唯一确定一个cookie,三元组相同时,就是同一个cookie,不同时,就是不同的cookie,一般来说,相同... Read More
posted @ 2015-10-23 12:07 奋斗终生 Views(531) Comments(0) Diggs(0)
1. 安装postman app注意要安装postman application(一个应用软件),而不是chrome 插件,打开下面的这个开关2. chrom浏览器给chrom浏览器安装postman interceptor插件,然后在postman中启用这个插件,如下这样,我们在chrome的中访... Read More
posted @ 2015-10-22 20:36 奋斗终生 Views(4067) Comments(0) Diggs(0)
原文:http://blog.csdn.net/lijing198997/article/details/9378047HTTP cookies,通常又称作"cookies",已经存在了很长时间,但是仍旧没有被予以充分的理解。首要的问题是存在了诸多误区,认为cookies是后门程序或病毒,或压根不知... Read More
posted @ 2015-10-22 10:43 奋斗终生 Views(9381) Comments(0) Diggs(3)
原文:http://www.169it.com/article/3217120921.htmlCookie总是保存在客户端中,按在客户端中的存储位置,可分为内存Cookie和硬盘Cookie。内存Cookie由浏览器维护,保存在内存中,浏览器关闭后就消失了,其存在时间是短暂的。硬盘Cookie保存在... Read More
posted @ 2015-10-22 10:36 奋斗终生 Views(2421) Comments(0) Diggs(0)
add by zhj: 客户端通过request header:cookie将cookie发给服务端,而服务端通过response header: set-cookie将cookie传回客户端一条cookie 就有一个 Set-Cookie。 格式是 key=value;Path=/;domain=... Read More
posted @ 2015-10-22 10:19 奋斗终生 Views(1290) Comments(0) Diggs(1)
一、从一个使用场景开始 开发一个日志系统, 既要把日志输出到控制台, 还要写入日志文件 Python代码 import logging # 创建一个logger logger = logging.getLogger('mylogger') logger.setLevel(logging.DEBUG) Read More
posted @ 2015-10-16 08:54 奋斗终生 Views(1085) Comments(0) Diggs(0)
1. 第一行指定解释器路径推荐写法:#!/usr/bin/env python详细说明:#!/usr/bin/python是告诉操作系统执行这个脚本的时候,调用/usr/bin下的python解释器;#!/usr/bin/env python这种用法是为了防止用户没有将python装在默认的/usr... Read More
posted @ 2015-10-16 08:40 奋斗终生 Views(2439) Comments(0) Diggs(0)
原文:http://www.dirk.sh/diary/using-django-smart_str-smart_unicode/Django为字符编码的转换提供了非常简洁的方法:1.django.utils.encoding.smart_unicode2.django.utils.encoding... Read More
posted @ 2015-10-15 19:51 奋斗终生 Views(1589) Comments(0) Diggs(0)
上一页 1 ··· 33 34 35 36 37 38 39 40 41 ··· 73 下一页