查看etcd中间件版本 etcd --version etcd Version: 3.4.7 Git SHA: e694b7bb0 Go Version: go1.12.17 Go OS/Arch: windows/amd64 3.0以上的版本,需要etcd3模块支持连接(测试python-etcd,etcd不行) ##coding import etcd3 client = etcd3.client(host='127.0.0.1', port=2379) client.put("name","egon") //设置 client.get("name") //获取vents_iterator, cancel = client.watch('aaa') #监听etcd中aaa键 是否发生改变,
print(event).value