06 2022 档案
摘要:# 根据索引和条件查找 GET lc_auth_user/_search { "query": { "bool": { "must": [ {"term": { "username.keyword": { "value": "admin" } }}, { "term": { "client_id.k
阅读全文
摘要:#coding=utf-8 import datetime from datetime import timedelta now = datetime.datetime.now() #今天 today = now #昨天 yesterday = now - timedelta(days=1) #明天
阅读全文
摘要:def convert2tree(data): result = [] obj = {} for x in data: obj[x.get("id", "")] = x for x in data: parent_id = x.get("parent_id") if parent_id: paren
阅读全文
摘要:function CopyTable(tab) function _copy(obj) if type(obj) ~= "table" then return obj end local new_table = {} for k, v in pairs(obj) do new_table[_copy
阅读全文
摘要:main.cpp #include <istream> #include <opencv2/opencv.hpp> using namespace cv; using namespace std; Mat src, gray_src, dst; int threshold_value = 127;
阅读全文