导航

2017年7月18日

摘要: 转自:http://www.bjhee.com/python-mixin.html 像C或C++这类语言都支持多重继承,一个子类可以有多个父类,这样的设计常被人诟病。因为继承应该是个”is-a”关系。比如轿车类继承交通工具类,因为轿车是一个(“is-a”)交通工具。一个物品不可能是多种不同的东西,因 阅读全文

posted @ 2017-07-18 10:49 网名还没想好 阅读(812) 评论(0) 推荐(0) 编辑

2017年6月29日

摘要: https://stackoverflow.com/questions/34402522/difference-between-hash-and-id There are three concepts to grasp when trying to understand id, hash and t 阅读全文

posted @ 2017-06-29 16:23 网名还没想好 阅读(442) 评论(0) 推荐(0) 编辑

2017年6月23日

摘要: 通过logger命令记录日志 logger是一个shell命令接口,可以通过该接口使用Syslog的系统日志模块,还可以从命令行直接向系统日志文件写入一行信息。 logger 语法logger [options] [messages] **options (选项):** -d, --udp 使用数据 阅读全文

posted @ 2017-06-23 14:55 网名还没想好 阅读(512) 评论(0) 推荐(0) 编辑

2017年2月23日

摘要: 先启动worker:celery -A proj worker -l info -f=test.log (-f指定的是日志输出位置) 然后启动beat:celery -A proj beat beat发起定时任务worker执行定时任务 阅读全文

posted @ 2017-02-23 15:05 网名还没想好 阅读(214) 评论(0) 推荐(0) 编辑

2017年2月20日

摘要: 关于简单工厂模式、工厂方法模式、抽象工厂模式这三种设计模式网上有很多资料,这里不详细说明他们只给出定义. 简单工厂模式(Simple Factory Pattern):又称为静态工厂方法(Static Factory Method)模式,它属于类创建型模式。在简单工厂模式中,可以根据参数的不同返回不 阅读全文

posted @ 2017-02-20 15:55 网名还没想好 阅读(252) 评论(0) 推荐(0) 编辑

2017年1月8日

摘要: 转自:http://www.cnblogs.com/yuyue2014/p/3662005.html 1. MySQL索引实现 在MySQL中,索引属于存储引擎级别的概念,不同存储引擎对索引的实现方式是不同的,下面主要讨论MyISAM和InnoDB两个存储引擎的索引实现方式。 MyISAM索引实现 阅读全文

posted @ 2017-01-08 17:40 网名还没想好 阅读(197) 评论(0) 推荐(0) 编辑

2016年12月13日

摘要: http://blog.csdn.net/xinkexueguanli/article/details/52552123 阅读全文

posted @ 2016-12-13 19:05 网名还没想好 阅读(206) 评论(0) 推荐(0) 编辑

2016年12月3日

摘要: http://www.leeladharan.com/sqlalchemy-query-with-or-and-like-common-filters Some of the most common operators used in filter() method SQLAlchemy equal 阅读全文

posted @ 2016-12-03 13:52 网名还没想好 阅读(1770) 评论(0) 推荐(0) 编辑

2016年10月24日

摘要: http://codingpy.com/article/customizing-the-flask-response-class/ 阅读全文

posted @ 2016-10-24 14:41 网名还没想好 阅读(327) 评论(0) 推荐(0) 编辑

2016年10月23日

摘要: 转自https://blog.tonyseek.com/post/the-context-mechanism-of-flask/ Flask 的 Context 机制 2014 年 07 月 21 日 用过 Flask 做 Web 开发的同学应该不会不记得 App Context 和 Request 阅读全文

posted @ 2016-10-23 13:50 网名还没想好 阅读(397) 评论(0) 推荐(0) 编辑