版本 es 7.10 代码 pip install --upgrade elasticsearch==7.16.3 from datetime import datetime, timedelta from elasticsearch import Elasticsearch import time import logging im