3.11 列表选择控件 (ListBox)列表选择控件列出所有供用户选择的选项,用户可从选项中选择一个或多个选项。 1. 列表选择控件的常用属性、事件和方法 ? 属性 Items:存储 ListBox 中的列表内容,是 ArrayList 类对象,元素是字符串。 ? 属性 SelectedIndex ...
原题链接在这里:https://leetcode.com/problems/number-of-dice-rolls-with-target-sum/ 题目: You have d dice, and each die has f faces numbered 1, 2, ..., f. Retur ...
分类:
其他好文 时间:
2020-01-15 13:57:57
阅读次数:
74
一、查找图像轮廓 opencv python中查找图像轮廓的API为:findContours函数 该函数接受二值图作为参数,根据参数,可查找物体外轮廓、内外轮廓,保存轮廓点、压缩等等... 如:contours, hierarchy = cv2.findContours(binary,cv2.RE ...
分类:
编程语言 时间:
2020-01-11 09:22:00
阅读次数:
1128
一、Broadcast自动扩展 Expand和unsquee的结合,习惯性行是高维度,列是低维度 example: 小维度指定,大维度随意 二、拼接与拆分 Cat Stack:增加新的维度 Split(按照长度进行拆分) Chunk(按照数量进行拆分) torch.stack torch.stack ...
分类:
其他好文 时间:
2020-01-07 16:23:58
阅读次数:
106
1、在Elasticsearch中,文档归属于一种类型(type),而这些类型存在于索引(index)中,我们可以画一些简单的对比图来类比传统关系型数据库: Relational DB -> Databases -> Tables -> Rows -> Columns Elasticsearch - ...
分类:
数据库 时间:
2019-12-18 15:04:32
阅读次数:
221
pairwise_distance在sklearn的官网中解释为“从X向量数组中计算距离矩阵”,对不懂的人来说过于简单,不甚了了。 实际上,pairwise的意思是每个元素分别对应。因此pairwise_distance就是指计算两个输入矩阵X、Y之间对应元素的距离。 pairwise_distan ...
分类:
其他好文 时间:
2019-12-18 00:12:23
阅读次数:
298
Given an integer array nums, find the sum of the elements between indices i and j (i ≤ j), inclusive. Example: Given nums = [-2, 0, 3, -5, 2, -1] sumR ...
分类:
其他好文 时间:
2019-12-09 01:19:59
阅读次数:
86
1,查看es集群状态 http://ip:port/_cat/health?v 2,集群节点健康查看 http://ip:port/_cat/nodes?v 3,列出集群索引 http://ip:port/_cat/indices?v 索引相关 URL 说明/index/_search 不解释/_a ...
分类:
Web程序 时间:
2019-12-01 16:58:16
阅读次数:
120
1 分布分析 1 极差 写个函数就行 def d_range(df,*args) 2 定量用直方图 1)直接用plot.hist() 2)s = pd.cut() return indices of half-open bins to which each value of `x` belongs. ...
分类:
其他好文 时间:
2019-11-22 13:30:14
阅读次数:
77
一、简介 在Random类用于创建随机数。(当然是伪随机的。) 二、Random用法 例: Random 类中提供的 Next、NextBytes 以及 NextDouble 方法可以生成整数类型、byte 数组类型以及双精度浮点型的随机数,详细说明如下表所示。 ...