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'))
相关文章
- 在python语言中不能作为变量名的是什么_4、 在 Python 中可以使用 if 作为变量名。 (1.0分)_学小易找答案...
- Python 爬虫实战(二):使用 requests-html
- 使用Python在列表中查找值
- Python-模块,以及使用文本中的数据
- Python中模块及和requests的使用区别
- C语言中的 pow 函数 使用方法及注意事项,和常见报错原因,且分享实战中的使用
- python中map(int、input)_使用map(int,raw_input.split)
- python中def main是什么意思_关于python:为什么使用def main?
- Python中,hasattr函数的详细介绍以及使用
- python3使用pip安装pyautogui过程中遇到的几个问题