读书笔记之python面向对象编程的四大支柱
摘要:
#封装,继承,多态,抽象#封装#1.封装1:在面向对象编程中,对象将变量和方法集中在一个地方,即对象本身class Rectangle(): def __init__(self,w,l): self.width=w self.len=l def area(self): return self.wid 阅读全文
posted @ 2020-05-22 23:29 小肥羊要进步 阅读(404) 评论(1) 推荐(0)
浙公网安备 33010602011771号