上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 55 下一页
摘要: # 指定 _id 查询 get wares/_doc/1 # 查询所有 get wares/_search { "query":{ "match_all": {} } } # 指定 term get wares/_search { "query":{ "term":{ "description":{ 阅读全文
posted @ 2022-03-20 19:01 ascertain 阅读(36) 评论(0) 推荐(0) 编辑
摘要: # tokenizer put /orders { "settings":{}, "mappings":{ "properties":{ "title":{ "type":"text", "analyzer":"standard" } } } } put /orders/_doc/1 { "titl 阅读全文
posted @ 2022-03-20 18:56 ascertain 阅读(27) 评论(0) 推荐(0) 编辑
摘要: Aggregation可不指定查询条件, 默认查询所有 求和: 以price进行分组 # 以price进行分组 get vanilla/_search { "query":{ "match_all": {} }, "aggs":{ "group_price":{ "terms": { "field" 阅读全文
posted @ 2022-03-20 18:50 ascertain 阅读(103) 评论(0) 推荐(0) 编辑
摘要: from fastapi import FastAPI, Request, Response, Header, Body, Form, Cookie from fastapi.responses import JSONResponse, ORJSONResponse, FileResponse, H 阅读全文
posted @ 2022-03-20 16:06 ascertain 阅读(709) 评论(0) 推荐(0) 编辑
摘要: const arr = ['a', 'a', 'a', 'd', 'e', 'f'] for (let i = 0; i < arr.length; ++i) { console.log(`arr.length = ${arr.length}, i = ${i}`) if (arr[i] 'a') 阅读全文
posted @ 2022-03-19 13:52 ascertain 阅读(200) 评论(0) 推荐(0) 编辑
摘要: put wares { "settings":{ "number_of_shards": 1, "number_of_replicas":0 }, "mappings":{ "properties":{ "id":{ "type":"integer" }, "title":{ "type": "ke 阅读全文
posted @ 2022-03-19 10:15 ascertain 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 以下测不出效果, 因为程序逻辑是在function two中执行 <script> function one () { console.info('one') } function two () { setTimeout(() => { console.info('two') }, 1) } fun 阅读全文
posted @ 2022-03-19 08:44 ascertain 阅读(22) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi 阅读全文
posted @ 2022-03-19 08:18 ascertain 阅读(29) 评论(0) 推荐(0) 编辑
摘要: BFC: block formatting context <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <me 阅读全文
posted @ 2022-03-19 07:50 ascertain 阅读(67) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="description" content=""> <meta name="keywords" content="bait bark"> <meta h 阅读全文
posted @ 2022-03-15 16:01 ascertain 阅读(24) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="description" content=""> <meta name="keywords" content="bait bark"> <meta h 阅读全文
posted @ 2022-03-15 13:34 ascertain 阅读(17) 评论(0) 推荐(0) 编辑
摘要: let b = { n1: 11, n2: 22, n3: 44, n4: 55, ns: { n1, n2 } } n1 n2 不是变量, 是b的key let t={22,33} let b = { n1: 11, n2: 22, n3: 44, n4: 55, ns: { this.n1, t 阅读全文
posted @ 2022-03-15 13:08 ascertain 阅读(19) 评论(0) 推荐(0) 编辑
摘要: let i = 0 setTimeout(function (n) { console.log(55, n) }, 1000, setTimeout(function () { console.log(44, i) i++ return i+2 })) 先计算第三参数, 返回值为Timeout对象, 阅读全文
posted @ 2022-03-15 11:10 ascertain 阅读(18) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="description" content=""> <meta name="keywords" content="bait bark"> <meta h 阅读全文
posted @ 2022-03-14 22:27 ascertain 阅读(21) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="description" content=""> <meta name="keywords" content="bait bark"> <meta h 阅读全文
posted @ 2022-03-13 22:36 ascertain 阅读(49) 评论(0) 推荐(0) 编辑
摘要: random() 返回一个介于左闭右开[0.0, 1.0)区间的浮点数 基本方法 random.seed(a=None, version=2)初始化伪随机数生成器。如果未提供a或者a=None,则使用系统时间为种子。如果a是一个整数,则作为种子。 random.getstate()返回一个当前生成器 阅读全文
posted @ 2022-03-05 18:51 ascertain 阅读(156) 评论(0) 推荐(0) 编辑
摘要: https://superuser.com/questions/867728/user-vs-system-environment-variables-do-system-variables-override-user-variabl 除了Path变量外, User Variables 优先级高, 阅读全文
posted @ 2022-03-04 12:37 ascertain 阅读(53) 评论(0) 推荐(0) 编辑
摘要: tk(toolkit)是用来做图形用户界面(GUI graphical user interface)的工具,与tcl命令结合可以创建和操作GUI的窗口组件,Python里面也有一个叫Tkinter的模块作为Tk GUI的接口。 Tcl/Tk快速入门_最实用的Linux博客-CSDN博客 阅读全文
posted @ 2022-03-04 12:35 ascertain 阅读(433) 评论(0) 推荐(0) 编辑
摘要: with open(file) as f: for line in f: for field in line.split(): print(filed) import re from collections import defaultdict valve = '''51.222.253.18 - 阅读全文
posted @ 2022-03-03 21:02 ascertain 阅读(37) 评论(0) 推荐(0) 编辑
摘要: Named Capturing Groups: Backreferences: \number \1 匹配结果的第一个分组 \g<number> \g<1> 匹配结果的第一个分组, 避免歧义 \g<named_group> \g<valor> 匹配命名分组 valor (?P<valor>expre 阅读全文
posted @ 2022-03-03 10:39 ascertain 阅读(31) 评论(0) 推荐(0) 编辑
上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 55 下一页