随笔分类 - Python
摘要:import psycopg2 from psycopg2 import OperationalError, Error from datetime import datetime class MyPGsql: def init(self, ip, port, password, user): se
阅读全文
摘要:import redis import json class MyRedis: def init(self, ip, port, password, db): self.ip = ip self.port = port self.password =password self.db = db try
阅读全文
摘要:获取CVM数据 其实直接存self.cvm_list更方便,但是为了测试redis,就写了一下 import json from tcecloud.bms.v20180813.models import Instance from tcecloud.common import credential
阅读全文

浙公网安备 33010602011771号