import etcd3
import json
etcd = etcd3.client(host='127.0.0.1', port=2379)
# 修改key的value
print(etcd.replace('key', initial_value = '1', new_value='1'))
# print(etcd.put('key', 'hello'))
# print(etcd.delete('key'))
# print(etcd.get('key'))
etcd.close()
watch_replace
Comments 0
Sign in to comment and like
← More postsThat’s all for now. Thanks for reading.
No comments yet.