在python3中redis读取数据默认返回byte类型,假如是中文数据,则需要 .decode('utf-8') 转换,那怎么更方便读取直接是utf-8格式呢?
设置decode_responses=True即可