from redis import StrictRedis rds = StrictRedis(host=‘127.0.0.1‘, port=6379, db=0, decode_responses=True) input_output={‘inputKey‘:‘factor_input‘,‘outputKey‘:‘factor_output‘} rds.set(input_output.get(‘input‘),result) result = rds.get(input_output.get(‘input‘))
时间: 2024-10-19 12:20:22