Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
目前我正在使用主机名和端口访问 Redis。
像
r = redis.Redis(主机=redisHost,端口=redisPort)
谢谢
您可以选择要连接的特定数据库:
r = redis.Redis(host=redisHost, port=redisPort, db=N)
其中 N 是分贝数