摘要: @total_ordering class Student: def __eq__(self, other): return ((self.lastname.lower(), self.firstname.lower()) == (other.lastname.lower(), other.firs 阅读全文
posted @ 2017-03-24 09:12 八月的男人 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 源码: 阅读全文
posted @ 2017-03-24 08:54 八月的男人 阅读(972) 评论(0) 推荐(0) 编辑
摘要: 源码: class locked_cached_property(object): """A decorator that converts a function into a lazy property. The function wrapped is called the first time 阅读全文
posted @ 2017-03-24 08:48 八月的男人 阅读(716) 评论(0) 推荐(0) 编辑
摘要: 文件结构 if __name__ == '__main__': from werkzeug.serving import run_simple app = create_app() --这个app,可以是自定义的WSGI程序 ,详情请看 run_simple('127.0.0.1', 5000, a 阅读全文
posted @ 2017-03-23 21:11 八月的男人 阅读(1060) 评论(0) 推荐(0) 编辑
摘要: 待补 阅读全文
posted @ 2017-03-23 14:10 八月的男人 阅读(737) 评论(0) 推荐(0) 编辑
摘要: 一、首先下载对应工具: 1)、mongodb-win32-x86_64-2008plus-ssl-3.4.0-signed 2)、python-2.7.13.amd64 3)、xunfeng https://codeload.github.com/qiyeboy/xunfeng 安装mongodb和 阅读全文
posted @ 2017-03-23 12:45 八月的男人 阅读(8384) 评论(1) 推荐(3) 编辑
摘要: 后补 阅读全文
posted @ 2017-03-23 11:07 八月的男人 阅读(241) 评论(0) 推荐(0) 编辑