Vue中子组件调用父组件的方法,这里有三种方法提供参考 第一种方法是直接在子组件中通过this.$parent.event来调用父组件的方法 父组件 <template> <div> <child></child> </div> </template> <script> import child f ...
分类:
其他好文 时间:
2020-07-29 14:36:02
阅读次数:
60
首先打开Elasticsearch官网了解对应编程语言的API https://www.elastic.co/guide/en/elasticsearch/client/index.html 点击 PHP API即可查看当前7.X版本的文档内容了 安装操作Elasticsearch的PHP库 我们使 ...
分类:
Web程序 时间:
2020-07-29 00:39:56
阅读次数:
226
1、说一下Python的数据类型有几种? 答:有六种,分别为, Number(数字) String(字符串) List(列表) Tuple(元组) Set(集合) Dictionary(字典) 2、Pandas关于空值的处理 参考下面的链接 https://www.cnblogs.com/louyi ...
分类:
编程语言 时间:
2020-07-28 22:06:18
阅读次数:
68
转自:https://www.cnblogs.com/chaosimple/p/4153167.html 一、标准化(Z-Score),或者去除均值和方差缩放 公式为:(X-mean)/std 计算时对每个属性/每列分别进行。 将数据按期属性(按列进行)减去其均值,并处以其方差。得到的结果是,对于每 ...
分类:
其他好文 时间:
2020-07-28 17:09:32
阅读次数:
72
Leetcode.283 Move Zeroes Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero e ...
分类:
编程语言 时间:
2020-07-28 14:38:35
阅读次数:
91
Given two words word1 and word2, find the minimum number of steps required to make word1 and word2 the same, where in each step you can delete one cha ...
分类:
其他好文 时间:
2020-07-28 14:04:15
阅读次数:
77
硬件条件:Thinkpad P52 + SAMSUNG 1T M.2新硬盘 Step1:安装ubuntu Bugs: 首先需要disable security boot! Magic Number void!(找个新优盘,装ubuntu) 安装过程到选择硬盘空间时卡死(不支持P1000显卡驱动,在b ...
分类:
系统相关 时间:
2020-07-28 10:08:38
阅读次数:
109
这篇文章是关于SOLID设计原则的系列文章的一部分(关于D的部分)。你可以从这里开始进行学习,也可以使用下面的链接跳转到相应的页面: S – Single ResponsibilityO – Open/Closed PrincipleL – Liskov Substitution Principle ...
代理模式的目地是为对象提供一种代理以控制对这个对象的访问。为什么会出现“通过一个代理对象,控制其他对象访问目标对象”这种场景,而不知直接new()出一个对象直接使用呢?这是因为在有些场景下对象的访问比较复杂,且需要一些额外的控制,这时如果直接new()出实例,并在调用端处理这些繁杂的细节,会增加系统 ...
分类:
其他好文 时间:
2020-07-27 17:56:33
阅读次数:
93
Additive Number Additive number is a string whose digits can form additive sequence. A valid additive sequence should contain at least three numbers. ...
分类:
其他好文 时间:
2020-07-27 17:46:30
阅读次数:
60