DB_REDIS = {
'host': localhost,
'port': 6379,
'password': 'pwd&&1',
'db': 1,
'decode_responses': True
}
python3使用时,给客户端配置'decode_responses': True
就能保证存取的都是string,而不是想存string,结果却是bytes!!!
DB_REDIS = {
'host': localhost,
'port': 6379,
'password': 'pwd&&1',
'db': 1,
'decode_responses': True
}
python3使用时,给客户端配置'decode_responses': True
就能保证存取的都是string,而不是想存string,结果却是bytes!!!