python2.x, 用 urllib.request 库 发请求;
python3.x, 安装第三方模块 requests (pip install equests) 发请求.
python有个etcd的库,可以网上搜下看下这个库的使用以及它开发的api接口,不过之前go使用etcd的时候,是调用etcd本身的rest api,没有使用第三方的etcd的库
etcd的api文档github上有的,搜下这个coreos/etcd
你可以选择自己喜欢的方式
python2.x, 用 urllib.request 库 发请求;
python3.x, 安装第三方模块 requests (pip install equests) 发请求.
python有个etcd的库,可以网上搜下看下这个库的使用以及它开发的api接口,不过之前go使用etcd的时候,是调用etcd本身的rest api,没有使用第三方的etcd的库
etcd的api文档github上有的,搜下这个coreos/etcd
你可以选择自己喜欢的方式