• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • YouClaw
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
孙龙 程序员
少时总觉为人易,华年方知立业难
博客园    首页    新随笔    联系   管理    订阅  订阅
上一页 1 ··· 59 60 61 62 63 64 65 66 67 ··· 75 下一页
2018年4月2日
Django多对多模型
摘要: 总结: 其他: 阅读全文
posted @ 2018-04-02 11:22 孙龙-程序员 阅读(123) 评论(0) 推荐(0)
python进程池高级版本
摘要: C:\Python31\python.exe D:/pythoncode/a8.py 1 0 2 4 3 7 6 6 5 9 8 10 11 12 13 14 15 18 16 17 19 5 0 5 0 20 21 20 24 23 22 25 26 29 29 28 29 28 27 30 31 阅读全文
posted @ 2018-04-02 11:21 孙龙-程序员 阅读(109) 评论(0) 推荐(0)
python多线程low版本
摘要: #!/usr/bin/env python# -*- coding: utf-8 -*-import queueimport threadingclass threadpool(): def __init__(self,max_num): self.q = queue.Queue(max_num) for i in range(max_num): ... 阅读全文
posted @ 2018-04-02 11:20 孙龙-程序员 阅读(127) 评论(0) 推荐(0)
python中上下文管理with用法
摘要: C:\Python31\python.exe D:/pythoncode/a6.py[1][]Process finished with exit code 0 C:\Python31\python.exe D:/pythoncode/a7.py123456789Process finished w 阅读全文
posted @ 2018-04-02 11:17 孙龙-程序员 阅读(116) 评论(0) 推荐(0)
策略模式
摘要: 策略模式 阅读全文
posted @ 2018-04-02 11:13 孙龙-程序员 阅读(160) 评论(0) 推荐(0)
装饰器模式
摘要: <?php class baseart{ public $content; protected $art = null; public function __construct($content){ $this->content = $content; } public function decor 阅读全文
posted @ 2018-04-02 11:13 孙龙-程序员 阅读(174) 评论(0) 推荐(0)
php单例模式
摘要: <?php <?php class sigle{ protected static $ins = null; public static function getins(){ if(self::$ins null){ self::$ins = new self(); } return self::$ 阅读全文
posted @ 2018-04-02 11:13 孙龙-程序员 阅读(119) 评论(0) 推荐(0)
php设计模式之工厂模式
摘要: 工厂模式 阅读全文
posted @ 2018-04-02 11:13 孙龙-程序员 阅读(286) 评论(0) 推荐(0)
观察者模式
摘要: <?php #观察者模式 /** 观察者模式属于行为模式,是定义对象间的一种一对多的依赖关系,以便当一个对象的状态发生改变时,所有依 赖于它的对象都得到通知并自动刷新。 它完美的将观察者对象和被观察者对象分离。 可以在独立的对象(主体)中维护一个对主体感兴趣的依赖项(观察器)列表。 让所有观察器各自 阅读全文
posted @ 2018-04-02 11:12 孙龙-程序员 阅读(226) 评论(0) 推荐(0)
责任链模式
摘要: <?php class board{ protected $power = 1; protected $top = "admin"; public function process($lev){ if($lev <= $this->power){ echo "版主删帖"; }else{ $top = 阅读全文
posted @ 2018-04-02 11:12 孙龙-程序员 阅读(144) 评论(0) 推荐(0)
上一页 1 ··· 59 60 61 62 63 64 65 66 67 ··· 75 下一页
博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3