摘要: python-consul import consul c = consul.Consul(host="192.168.111.111") c.kv.put("key","value") a = c.kv.get("key") print a ('107', {u'LockIndex': 0, u' 阅读全文