Mysql(pymysql)
- 从数据库取出字典类型的数据
cursor = conn.cursor(cursor=pymysql.cursors.DictCursor)
Redis
- 存进去的时候存decode之后的数据 ->
r = redis.StrictRedis(decode_responses=True)
cursor = conn.cursor(cursor=pymysql.cursors.DictCursor)
r = redis.StrictRedis(decode_responses=True)