会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Howhy Blogs
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
18
19
20
21
22
23
24
25
26
···
42
下一页
2017年10月28日
scrapy
摘要: response.selector.xpath('//')#//从根开始匹配 .xpath('//img[@*])#找出所有img的所有属性 .xpath('//img/@src').extract()#找出所有img的src属性 .xpath('//a[@href='index.html']').
阅读全文
posted @ 2017-10-28 21:09 howhy
阅读(165)
评论(0)
推荐(0)
2017年10月27日
python 虚拟环境
摘要: 用pyenv 和 virtualenv 搭建单机多版本python 虚拟开发环境 作为主流开发语言, 用python 开发的程序越来越多。 方便的是大多linux系统里面都默认集成了python, 开发可以随时随地开始。 但有时候这也成为了一个短板, 比如说有时候我们需要开发和调试一些需要安装在默认
阅读全文
posted @ 2017-10-27 18:58 howhy
阅读(271)
评论(0)
推荐(0)
celery使用
摘要: linux shell启动:celery -A celery_study worker --loglevel=info linux shell#cd 到celery_study.py的目录 执行python >>from celery_study import add >>add.delay(3,4
阅读全文
posted @ 2017-10-27 13:33 howhy
阅读(273)
评论(1)
推荐(0)
2017年10月26日
redis install
摘要: yum install -y epel-release yum install -y redis vim /etc/redis.conf 修改:bind 0.0.0.0 requirepass foobared123 systemctl restart redis redis-cli >>auth
阅读全文
posted @ 2017-10-26 18:20 howhy
阅读(297)
评论(0)
推荐(0)
mongodb install
摘要: 操作: 后台shell命令: 执行mongo进入 help查看帮助命令 use test数据库 然后插入一条数据 数据库test才会创建 db.help;查看db命令 db.createUser({user:'dba',pwd:'123456',roles: [ { role: "userAdmin
阅读全文
posted @ 2017-10-26 09:50 howhy
阅读(180)
评论(0)
推荐(0)
2017年10月25日
python可hash 不可hash类型
摘要: 不可变类型是可hash #tuple str freezeset 可变类型是不可hash ##list set
阅读全文
posted @ 2017-10-25 22:51 howhy
阅读(2213)
评论(0)
推荐(0)
python函数作用域
摘要: l:local e:enclosing g:global b:buitl-in 函数变量有作用域 if else while 变量没有作用域 不能修改全局变量 若要修改需加global
阅读全文
posted @ 2017-10-25 22:36 howhy
阅读(223)
评论(0)
推荐(0)
2017年10月23日
centos 6.x Python2.7x安装
摘要: centos 6.x Python2.7x安装 yum install -y gcc gcc-develwget https://www.python.org/ftp/python/2.7.14/Python-2.7.14.tgztar xf Python-2.7.14.tgzcd /root/Py
阅读全文
posted @ 2017-10-23 13:34 howhy
阅读(177)
评论(0)
推荐(0)
2017年10月21日
logging 模块
摘要: import logging #logging.basicConfig(level=logging.DEBUG, # format='[line:%(lineno)d] %(asctime)s %(levelname)s %(message)s', # datefmt='%a,%Y %b %d %H:%M:%S', ...
阅读全文
posted @ 2017-10-21 11:16 howhy
阅读(212)
评论(0)
推荐(0)
2017年10月19日
windows pip源
摘要: 首先在window的文件夹窗口输入 : %APPDATA% 然后在底下新建pip文件夹,然后到pip文件夹里面去新建个pip.ini,然后再里面输入内容 [global] timeout = 6000 index-url = http://pypi.douban.com/simple trusted
阅读全文
posted @ 2017-10-19 09:39 howhy
阅读(770)
评论(0)
推荐(0)
上一页
1
···
18
19
20
21
22
23
24
25
26
···
42
下一页
公告