Python redis 2018-12-06 python python, redis Comments Python redis1234import redisr = redis.Redis(host='localhost', port=6379, db=0)r.set('foo', 'bar123123132')print(r.get('foo')) 參考 https://pypi.org/project/redis/