摘要: python格式化输出,format 它通过{}和:来代替%。通过位置 字符串的format函数可以接受不限个参数,位置可以不按顺序,可以不用或者用多次,不过2.6不能为空{},2.7才可以。通过关键字参数 通过下标 通过对象属性 格式限定符它有着丰富的的“格式限定符”(语法是{}中带:号),比如: 阅读全文
posted @ 2018-01-09 17:09 安迪9468 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 下载mongodb 启动mongodb服务 安装python包 python操作mongodb 阅读全文
posted @ 2018-01-09 16:17 安迪9468 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 直接上代码:(带认证密码的redis连接) # 1、带认证密码。普通方式连接 import redis HOST = '192.168.1.123' PORT = '6379' POOL_NAME = 'redis_pool' PASSWORD = "123456" r = redis.Strict 阅读全文
posted @ 2018-01-09 16:06 安迪9468 阅读(205) 评论(0) 推荐(0) 编辑
摘要: Python Imaging Library(PIL) Home:http://www.pythonware.com/products/pil/ Links:Wikipedia 这是一个很有名气的 Python 图像处理库,支持常见图像文件格式(BMP、JPG、GIF、PNG ...)。 它可以对图 阅读全文
posted @ 2018-01-09 15:25 安迪9468 阅读(166) 评论(0) 推荐(0) 编辑
摘要: import pymysql # 连接数据库 connect = pymysql.Connect( host='localhost', port=3306, user='root', passwd='root', db='python3', charset='utf8' ) # 获取游标 cursor = connect.cursor() # ... 阅读全文
posted @ 2018-01-02 17:38 安迪9468 阅读(125) 评论(0) 推荐(0) 编辑
摘要: amqp==1.4.9anyjson==0.3.3apturl==0.5.2beautifulsoup4==4.4.1billiard==3.3.0.23blinker==1.3Brlapi==0.6.4bs4==0.0.1celery==3.1.25celery-with-redis==3.0ch 阅读全文
posted @ 2017-12-28 08:02 安迪9468 阅读(817) 评论(0) 推荐(0) 编辑
摘要: 输出结果: 小结: 匹配汉字文字: 匹配非汉字字符: 匹配双字节字符(汉字、中文标点符号等): 阅读全文
posted @ 2017-12-20 10:08 安迪9468 阅读(41900) 评论(0) 推荐(2) 编辑
摘要: 运行结果: 输出结果: 阅读全文
posted @ 2017-12-19 18:17 安迪9468 阅读(794) 评论(0) 推荐(0) 编辑
摘要: 参考: https://www.fengerzh.com/git-reset/?utm_source=tool.lu git建库小结 (一)远端:1、在git网站上建设一个远程仓库复制git远程仓库地址,如ssh地址:git@gitee.com:andy/fullspider.git 2、其他,.g 阅读全文
posted @ 2017-12-19 17:12 安迪9468 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 已经总结至 https://www.cnblogs.com/andy9468/p/10144867.html 阅读全文
posted @ 2017-12-19 08:34 安迪9468 阅读(181) 评论(0) 推荐(0) 编辑