2018年4月26日
摘要: __new__,__init__方法在单例模式中的应用 阅读全文
posted @ 2018-04-26 21:24 Xiao马 阅读(125) 评论(0) 推荐(0) 编辑
  2018年4月20日
摘要: 虚拟环境其实就是对真实pyhton环境的复制,这样我们在复制的python环境中安装包就不会影响到真实的python环境。通过建立多个虚拟环境,在不同的虚拟环境中开发项目就实现了项目之间的隔离。 阅读全文
posted @ 2018-04-20 16:41 Xiao马 阅读(872) 评论(0) 推荐(0) 编辑
  2018年4月15日
摘要: MongoDB的linux终端命令的使用 阅读全文
posted @ 2018-04-15 19:06 Xiao马 阅读(2197) 评论(0) 推荐(0) 编辑
摘要: [initandlisten] exception in initAndListen: 29 Data directory /data/db not found., terminating 阅读全文
posted @ 2018-04-15 15:45 Xiao马 阅读(5411) 评论(0) 推荐(0) 编辑
  2018年4月9日
摘要: UnicodeEncodeError: 'gbk' codec can't encode character '\xbb' in position 28319: illegal multibyte sequence 阅读全文
posted @ 2018-04-09 16:24 Xiao马 阅读(467) 评论(0) 推荐(0) 编辑
  2018年4月8日
摘要: 理解语法糖 用好装饰器 依据代码块的‘封闭开放’原则 实现重复利用 提高编程效率 阅读全文
posted @ 2018-04-08 19:11 Xiao马 阅读(294) 评论(0) 推荐(0) 编辑
  2018年4月2日
摘要: Python与Redis的交互 关键点:StrictRedis的引用 阅读全文
posted @ 2018-04-02 00:29 Xiao马 阅读(1096) 评论(0) 推荐(0) 编辑
  2018年3月30日
摘要: def get_image_code(image_code_id): # 1 实用工具类生成验证码 name, text, image_data = captcha.generate_captcha() #将验证码的数据和编号存储到 redis 中 try: #redis_store.set() 设 阅读全文
posted @ 2018-03-30 22:28 Xiao马 阅读(623) 评论(0) 推荐(0) 编辑