摘要: Python从设计之初就已经是一门面向对象的语言 Python类: 1)类定义: class 类名: def __init__(self, 参数, ...): # 构造函数,只在生成类的实例时被调用一次 ... def 方法名1(self, 参数, ...): # 方法1,方法的第一个参数是self 阅读全文
posted @ 2022-01-10 23:19 杨岂 阅读(53) 评论(0) 推荐(0) 编辑
摘要: 安装go-elasticsearch包 go get -u github.com/elastic/go-elasticsearch elasticsearch 包将两个单独的包联系在一起:esapi 和 estransport,分别用于调用 Elasticsearch API 和通过 HTTP 传输 阅读全文
posted @ 2022-01-10 11:18 杨岂 阅读(602) 评论(0) 推荐(0) 编辑