标签:get red rgba lin import pip rgb imp print
安装redis模块
pip install redis
redis的使用:
import redis rs = redis.Redis(host=‘192.168.1.109‘, port=6379) rs.set("name", ‘liuxuelin‘) print(rs.get("name")) # b‘liuxuelin‘ print(rs.get("name").decode("utf-8")) # liuxuelin
说明:
标签:get red rgba lin import pip rgb imp print
原文地址:https://www.cnblogs.com/liuxuelin/p/14254956.html