码迷,mamicode.com
首页 >  
搜索关键字:has-a    ( 11077个结果
面向对象——继承与组合
1、组合的特点 2、继承带来最大的坏处 3、设计父类遵循的规则 4、何时使用继承 4、何时使用组合 1、组合的特点 提高代码复用性,增加has-a关系,增强理解 2、继承带来最大的坏处 破坏父类的封装性(每个类都应该封装它内部信息和实现细节,而只暴露必要的方法给其他类使用。但继承关系中,子类可以直接 ...
分类:其他好文   时间:2020-06-14 18:58:38    阅读次数:56
httprunner 2.x学习9-生成测试报告ExtentReport('dict object' has no attribute 'meta_data'问题已解决)
前言 httprunner 可以自定义生成测试报告的模板,1.x版本里面有个 extent_report_template.html 模块非常美观。 但是生成报告的时候会报错:jinja2.exceptions.UndefinedError: 'dict object' has no attribu ...
分类:Web程序   时间:2020-06-13 19:23:29    阅读次数:147
ssh 远程登录 REMOTE HOST IDENTIFICATION HAS CHANGED 问题
ssh 远程登录 REMOTE HOST IDENTIFICATION HAS CHANGED 问题 问题: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATI ...
分类:其他好文   时间:2020-06-12 20:36:07    阅读次数:72
[LeetCode] 948. Bag of Tokens 令牌包
You have an initial power P, an initial score of 0 points, and a bag of tokens. Each token can be used at most once, has a value token[i], and has pot ...
分类:其他好文   时间:2020-06-11 13:37:23    阅读次数:68
[Intro to Deep Learning with PyTorch -- L2 -- N14] Sigmoid function
The sigmoid function is defined as sigmoid(x) = 1/(1+e-x). If the score is defined by 4x1 + 5x2 - 9 = score, then which of the following points has ex ...
分类:其他好文   时间:2020-06-11 09:12:55    阅读次数:56
PAT 1039 Course List for Student (25分) 使用map<string, vector<int>>
题目 Zhejiang University has 40000 students and provides 2500 courses. Now given the student name lists of all the courses, you are supposed to output t ...
分类:其他好文   时间:2020-06-10 23:00:04    阅读次数:85
详解 Flink DataStream中min(),minBy(),max(),max()之间的区别
解释 官方文档中: The difference between min and minBy is that min returns the minimum value, whereas minBy returns the element that has the minimum value in ...
分类:其他好文   时间:2020-06-10 12:58:08    阅读次数:127
ORA-28001 has expired错误密码过期问题
遇到这个错误就是密码过期问题,Oracle数据库默认密码时间是180天,首先你遇到这个问题时,你已经登不上去了,首先你要先登上去修改密码吧先,不然怎么进行后面的操作,对吧。 前置操作: 1.Oracle无密码登陆: 打开SQLplus输入:/ as sysdba 2.修改用户的密码: alter u ...
分类:其他好文   时间:2020-06-09 18:26:23    阅读次数:99
The Anatomy of a Large-Scale Hypertextual Web Search Engine
The Google search engine has two important features that help it produce high precision results. First, it makes use of the link structure of the Web ...
分类:Web程序   时间:2020-06-09 14:21:52    阅读次数:82
[LeetCode] 881. Boats to Save People
The i-th person has weight people[i], and each boat can carry a maximum weight of limit. Each boat carries at most 2 people at the same time, provided ...
分类:其他好文   时间:2020-06-09 09:54:47    阅读次数:67
11077条   上一页 1 ... 20 21 22 23 24 ... 1108 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!