- 博客(5)
- 收藏
- 关注
原创 django的标签
{% if %}标签可以没有else标签:{% if today_is_weekend %} <p>Welcome to the weekend!</p>{% endif %}可以有else标签:{% if today_is_weekend %} <p>Welcome to the weekend!</p>{% else %} <p>Get back to work.<
2016-05-08 11:43:13 290
转载 python中的继承
##python中继承的三种方式##这里面包含两种关系:is-a,has-a。###完全继承###这是is-a的关系,就是子类直接继承于父类。 class Parent(object): def implicit(self): print "PARENT implicit()" class
2016-05-05 11:22:30 415
原创 print函数中%r和%s
%r用rper()方法处理对象%s用str()方法处理对象repr(object)Return a string containing a printable representation of an object. This is the same value yielded by conversions (reverse quotes). It is sometim
2016-05-03 13:51:42 641
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人