# coding:utf-8

from redis import StrictRedis
#连接Redis
rs = StrictRedis(host='localhost',port=6379,db= 0,password=None)
#创建键值对
rs.set('name','test')
#打印name键的值
print(rs.get('name'))


f1f7e100cc342173857d4aeb8f6088f599496473
<mask token>

<mask token>
rs.set('name', 'test')
print(rs.get('name'))

<mask token>
rs = StrictRedis(host='localhost', port=6379, db=0, password=None)
rs.set('name', 'test')
print(rs.get('name'))

from redis import StrictRedis
rs = StrictRedis(host='localhost', port=6379, db=0, password=None)
rs.set('name', 'test')
print(rs.get('name'))

# coding:utf-8

from redis import StrictRedis
#连接Redis
rs = StrictRedis(host='localhost',port=6379,db= 0,password=None)
#创建键值对
rs.set('name','test')
#打印name键的值
print(rs.get('name'))

