会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
蒲公英的翅膀
Python当歌
博客园
首页
新随笔
联系
管理
订阅
2018年4月26日
单例模式
摘要: __new__,__init__方法在单例模式中的应用
阅读全文
posted @ 2018-04-26 21:24 Xiao马
阅读(132)
评论(0)
推荐(0)
2018年4月20日
虚拟环境的搭建
摘要: 虚拟环境其实就是对真实pyhton环境的复制,这样我们在复制的python环境中安装包就不会影响到真实的python环境。通过建立多个虚拟环境,在不同的虚拟环境中开发项目就实现了项目之间的隔离。
阅读全文
posted @ 2018-04-20 16:41 Xiao马
阅读(883)
评论(0)
推荐(0)
2018年4月15日
MongoDb数据库操作命令集锦
摘要: MongoDB的linux终端命令的使用
阅读全文
posted @ 2018-04-15 19:06 Xiao马
阅读(2241)
评论(0)
推荐(0)
MongoDb服务器启动失败解决方案
摘要: [initandlisten] exception in initAndListen: 29 Data directory /data/db not found., terminating
阅读全文
posted @ 2018-04-15 15:45 Xiao马
阅读(5571)
评论(0)
推荐(0)
2018年4月9日
windows下使用python3.6 遇到的编码问题
摘要: UnicodeEncodeError: 'gbk' codec can't encode character '\xbb' in position 28319: illegal multibyte sequence
阅读全文
posted @ 2018-04-09 16:24 Xiao马
阅读(477)
评论(0)
推荐(0)
2018年4月8日
从闭包到 语法糖 装饰器
摘要: 理解语法糖 用好装饰器 依据代码块的‘封闭开放’原则 实现重复利用 提高编程效率
阅读全文
posted @ 2018-04-08 19:11 Xiao马
阅读(309)
评论(0)
推荐(0)
2018年4月2日
Redis与Python在项目中的交互
摘要:
Python与Redis的交互 关键点:StrictRedis的引用
阅读全文
posted @ 2018-04-02 00:29 Xiao马
阅读(1124)
评论(0)
推荐(0)
2018年3月30日
保存图片验证码到redis数据库
摘要: 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马
阅读(670)
评论(0)
推荐(0)
公告