摘要:
下载依赖包:pip3 install pika 封装公共方法 import pika import json class RaMqStart(object): def __init__(self,url,user,pwd,vhost,queue,key,exchange): # 初始化数据 ''' 阅读全文
摘要:
首先需要下载依赖包:pip3 install redis import redis conn = redis.Redis(host="配置的host", port=配置的端口) print(conn.set('key','111')) #写入数据 print(conn.get('local_key' 阅读全文