from redis import StrictRedis

try:
    sr = StrictRedis(host='localhost', port=6379, db=0, password='sunck')
    # res = sr.set("name", "itheima")
    # print(res)
    res = sr.get("name").decode("utf8")
    print(res)
except Exception as e:
    print(e)

42e9a3d898624b41f5bc44fdef0c26c7f65423c3
<mask token>

<mask token>
try:
    sr = StrictRedis(host='localhost', port=6379, db=0, password='sunck')
    res = sr.get('name').decode('utf8')
    print(res)
except Exception as e:
    print(e)

from redis import StrictRedis
try:
    sr = StrictRedis(host='localhost', port=6379, db=0, password='sunck')
    res = sr.get('name').decode('utf8')
    print(res)
except Exception as e:
    print(e)

from redis import StrictRedis

try:
    sr = StrictRedis(host='localhost', port=6379, db=0, password='sunck')
    # res = sr.set("name", "itheima")
    # print(res)
    res = sr.get("name").decode("utf8")
    print(res)
except Exception as e:
    print(e)
