[Chapt2] Python visit Redis based on HiRedis

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了[Chapt2] Python visit Redis based on HiRedis相关的知识,希望对你有一定的参考价值。

  1. [email protected]:~$ wget -q http://peak.telecommunity.com/dist/ez_setup.py

  2. [email protected]:~$ sudo python ez_setup.py

  3. [email protected]:~$ sudo python -m easy_install redis hiredis

  4. [email protected]:~$ python
    Python 2.7.3 (default, Jun 22 2015, 19:33:41)
    [GCC 4.6.3] on linux2
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import redis
    >>> conn = redis.Redis()
    >>> conn.set(‘name‘,"Tom")
    True
    >>> conn.get(‘name‘)
    ‘Tom‘
    >>>


以上是关于[Chapt2] Python visit Redis based on HiRedis的主要内容,如果未能解决你的问题,请参考以下文章

伪类选择器

python之路之css

css

编写高质量Python代码的59个有效方法

编写高质量Python代码的59个有效方法

python - dfs