没有合适的资源?快使用搜索试试~ 我知道了~
linkedin-pyhon-test.docx
1星 需积分: 50 131 下载量 2 浏览量
2020-04-04
12:52:03
上传
评论 1
收藏 1.37MB DOCX 举报
温馨提示
试读
8页
领英python技能测试,搜集了30道原题,基本上15道里面能遇上一半原题。测试之前看一遍基本上稳过。奥利给!
资源推荐
资源详情
资源评论
1.What is an abstract class?
Abstract classes are classes that contain one or more abstract methods. An abstract method is a method
that is declared, but contains no implementation. Abstract classes cannot be instantiated, and require
subclasses to provide implementations for the abstract methods. It can only be inherited.
抽象类是一个特殊的类,它的特殊之处在于只能被继承,不能被实例化。如果说类是从一堆对象
中抽取相同的内容而来的,那么抽象类就是从一堆类中抽取相同的内容而来的,内容包括数据属
性和函数属性。
An abstract class exists only so that other concrete class can inherit from the abstract class.
2. What happens when you use built-in function “any()” on a list?
any() 函数用于判断给定的可迭代参数 iterable 是否全部为 False,如果是则返回 False,如果有一
个为 True,则返回 True。
3. What data structure does a binary tree degenerate to if it isn’t balanced properly?
A degenerate tree is a tree where for each parent node, there is only one associated child node. It is
unbalanced and, in the worst case, performance degrades to that of a linked list.
4. What is a static method?
A static method does not receive an implicit first argument.
A static method is also a method which is bound to the class and not the object of the class.
A static method can’t access or modify class state.
It is present in a class because it makes sense for the method to be present in class.
静态方法,通过类直接调用,不需要创建对象,不会隐式传递 self,和类本身没有交互,即在静
态方法中,不会涉及到类中的方法和属性的操作。
5. What are attributes?
Class attributes belong to the class itself they will be shared by all the instances. Such attributes are
defined in the class body parts usually at the top, for legibility.
资源评论
- 小柚子不酸2021-06-09题库改了,基本不一样
叫我咸鱼就好
- 粉丝: 30
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 清明节班会课课件重置版更新
- mqtt客户端,适合初学者参考,使用的是mqttnet三方包
- 戴尔 latitude 5400 chromebook
- 基于单片机数显照度计的设计
- 全文检索使用国产达梦数据库实现全文检索的详细说明和实践探索
- SRS-CentOS7-x86-64-5.0-r1.zip
- 全文检索使用ElasticSearch实现全文检索的详细说明和实践探索
- Python《基于TensorFlow的人脸识别(面部表情识别)卷积神经网络 》+源代码+文档说明
- Python《利用bert预训练的中文模型进行文本分类 数据集中文情感分析语料》+源代码+文档说明
- Keil MDK主题美化和代码美化
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功