未验证 提交 d1808833 编写于 作者: Z zhuwenxing 提交者: GitHub

[skip e2e]Format code style (#15042)

Signed-off-by: Nzhuwenxing <wenxing.zhu@zilliz.com>
上级 e2bf0ce7
......@@ -11,7 +11,8 @@
import random
import time
import argparse
from pymilvus import (
connections, list_collections,
FieldSchema, CollectionSchema, DataType,
......@@ -19,6 +20,7 @@ from pymilvus import (
)
TIMEOUT = 120
def hello_milvus(host="127.0.0.1"):
import time
# create connection
......@@ -93,7 +95,6 @@ def hello_milvus(host="127.0.0.1"):
# Get value of the random value field for search result
print(hit, hit.entity.get("random_value"))
# query
expr = "count in [2,4,6,8]"
output_fields = ["count", "random_value"]
......@@ -104,14 +105,9 @@ def hello_milvus(host="127.0.0.1"):
# collection.release()
import argparse
parser = argparse.ArgumentParser(description='host ip')
parser.add_argument('--host', type=str, default='127.0.0.1', help='host ip')
args = parser.parse_args()
# add time stamp
import time
print(f"\nStart time: {time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(time.time()))}")
hello_milvus(args.host)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册