摘要:
# 单例模式 # 模式一基于@classmethod class test: _instance = None def __init__(self, name=None): self.name = name @classmethod def singlenton(cls): if not cls._instance: ... 阅读全文
posted @ 2019-07-31 17:19
huikejie
阅读(126)
评论(0)
推荐(0)
摘要:
from django.conf.urls import url from django.contrib import admin from django.shortcuts import HttpResponse # 路由分发的本质 def test1(request): return HttpResponse('text1') def test2(request): ... 阅读全文
posted @ 2019-07-31 16:21
huikejie
阅读(230)
评论(0)
推荐(0)
浙公网安备 33010602011771号