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()