class类python程序_程序员的英语——Python Class 类(1)

Time is the onle true unit of measure

时间是衡量一切的标准unit:单位,单元,标准

measure:测量,衡量

Python Class 类Compared with other promgramming languages, Python's class mechanism adds classes with a minimum of new syntax and semantics

Python类机制利用最少的新的语法和语义引入类mechanism:机制

syntax:语法

semantic:语义It's a mixture of the class mechanisms found in C++ and Module-3

它是C++和Module-3类机制的混合Python classes provide all standard features of Object Oriented Programming:

Python类机制提供了所有的面向对象编程的基本功能The class inheritance mechanism allows mutiple base classes, a derived class can overrideany methods of its base class or classes, and a method of a base class with the same name

类继承机制允许多重继承,派生类可以覆盖其基类的任意方法/嵌套类,方法能够以相同的名称调用基类中的方法inheritence:继承

derive:衍生

override:覆盖Objects can contain arbitrary amounts and kinds of data

对象可以包含任意的数量和种类的数据arbitrary:任意的As is true for modules, classes partake of the dynamic nature of Python

就像模块一样,类也具有Python的动态特性be true for:适用于

partake:吃、喝、带有某种属性

nature:特征They are created at runtime, and can be modified futher after creation

运行时创建,创建后修改

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值