![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
倒春寒
这个作者很懒,什么都没留下…
展开
-
linux python升级2.7
wget http://python.org/ftp/python/2.7.4/Python-2.7.4.tgz ls tar xzvf Python-2.7.4.tgz cd Python-2.7.4 ls ./configure --prefix=/usr/local/python2.7.4 make && make install whereis python原创 2015-11-15 22:07:11 · 334 阅读 · 0 评论 -
redhat 默认python2.6 升级到2.7
wget http://python.org/ftp/python/2.7.4/Python-2.7.4.tgz ls tar xzvf Python-2.7.4.tgz cd Python-2.7.4 ls ./configure --prefix=/usr/local/python2.7.4 make && make install whereis python原创 2015-11-15 21:23:40 · 1353 阅读 · 0 评论 -
python django 数据库查询
__exact 精确等于 like 'aaa' __iexact 精确等于 忽略大小写 ilike 'aaa' __contains 包含 like '%aaa%' __icontains 包含 忽略大小写 ilike '%aaa%',但是对于sqlite来说,contains的作用效果等同于icontains。 __gt 大于 __gte 大转载 2015-11-29 23:37:51 · 415 阅读 · 0 评论 -
批量改用户名密码
需要paramiko库和pycrypto #!/usr/bin/env python ''' for change sysname and password write by liwei 20151221 ''' import warnings warnings.filterwarnings("ignore") import paramiko import sys d原创 2015-12-22 23:05:55 · 404 阅读 · 0 评论