摘要: from __future__ import division class Student: def __init__(self,name,weight,height): self.name=name self.weight=weight self.height=height @property def bmi(self):... 阅读全文
posted @ 2017-11-03 21:04 TAMAYURA 阅读(384) 评论(0) 推荐(0)
摘要: def auth(func): '''制作登录认证的装饰器''' def inner(request,*args,**kwargs): user_info=request.session.get(settings.SJF) if not user_info: return redirect('/login/') ... 阅读全文
posted @ 2017-11-03 19:23 TAMAYURA 阅读(379) 评论(0) 推荐(0)