![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
微风轻轻 起
预则立,不预则废
展开
-
python 操作tablestore查询与删除
import tablestore from tablestore.metadata import * class otsclient(): def __init__(self,end_point=None,access_key_id=None,access_key_secret=None,instance_name=None): ''' 连接写进初始化方法 ''' self.conn_ost = tablestore.OTSCli原创 2021-06-24 15:37:41 · 456 阅读 · 0 评论 -
python 操作云数据库rediscluster
#!/usr/bin/python3 import rediscluster class rediscluster_node(object): ''' :keyword ''' def redis_cluster(self,password=None,host=None,match=None): startup_nodes = [{"host":host,"port":"6379"}] redis_cluster = rediscluster原创 2021-06-15 17:33:24 · 413 阅读 · 4 评论 -
python操作单实例redis
import redis #创建类 class Redisbase(object): def __init__(self,host=None,password=None,db=None,port=None,decode_responses=True): ''' 初始化方法,将连接对象保存到self对象上作为一个属性 :return: ''' try: #连接池连接 普通连接方式为:self....原创 2021-05-25 18:01:33 · 241 阅读 · 0 评论