06 2022 档案

摘要:# 根据索引和条件查找 GET lc_auth_user/_search { "query": { "bool": { "must": [ {"term": { "username.keyword": { "value": "admin" } }}, { "term": { "client_id.k 阅读全文
posted @ 2022-06-25 00:19 NAVYSUMMER 阅读(90) 评论(0) 推荐(0)
摘要:#coding=utf-8 import datetime from datetime import timedelta now = datetime.datetime.now() #今天 today = now #昨天 yesterday = now - timedelta(days=1) #明天 阅读全文
posted @ 2022-06-14 22:05 NAVYSUMMER 阅读(43) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2022-06-06 18:45 NAVYSUMMER 阅读(289) 评论(0) 推荐(0)
摘要: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 阅读全文
posted @ 2022-06-04 16:29 NAVYSUMMER 阅读(53) 评论(0) 推荐(0)
摘要:main.cpp #include <istream> #include <opencv2/opencv.hpp> using namespace cv; using namespace std; Mat src, gray_src, dst; int threshold_value = 127; 阅读全文
posted @ 2022-06-04 13:00 NAVYSUMMER 阅读(48) 评论(0) 推荐(0)

交流群 编程书籍