摘要: 18. Python如何实现单例模式?其他23种设计模式python如何实现? Python有两种方式可以实现单例模式,下面两个例子使用了不同的方式实现单例模式:1.class Singleton(type):def __init__(cls, name, bases, dict):super(Si 阅读全文
posted @ 2017-12-19 10:42 py小蟒蛇 阅读(171) 评论(0) 推荐(0) 编辑
摘要: 均匀大小的块 1 2 3 4 1 2 3 4 5 6 7 8 9 阅读全文
posted @ 2017-12-19 10:38 py小蟒蛇 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 一、介绍 qqbot 是一个用 python 实现的、基于腾讯 SmartQQ 协议的 QQ 机器人,可运行在 Linux 、 Windows 和 Mac OSX 平台下。 本项目 github 地址: https://github.com/pandolia/qqbot 你可以通过扩展 qqbot 阅读全文
posted @ 2017-12-19 09:17 py小蟒蛇 阅读(5515) 评论(0) 推荐(0) 编辑