摘要: # 视图的基础函数——HttpResponse from django.http import HttpResponse def current_datetime(request): now = datetime.datetime.now() html = "<html><body>It is no 阅读全文
posted @ 2020-04-24 15:45 Mars.wang 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 转自:https://blog.51cto.com/ljbaby/2348663 接口类 面向对象中的继承有两种用途:1)可以通过继承做到代码重用,并完成扩展;2)接口继承。所谓的接口继承就是定义一个接口类 Interface,接口类中定义了一些接口(就是函数,但这些函数都没有具体的实现),子类继承 阅读全文
posted @ 2020-04-24 12:01 Mars.wang 阅读(216) 评论(0) 推荐(0) 编辑