会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
恐水的鱼
CnBlogs
Home
New Post
Contact
Admin
Subscription
2018年11月8日
python摸爬滚打之day17----类与类之间的关系
1、类与类之间的联系 1.1 依赖关系 类A中使用了类B, 类B作为参数传进类A的方法中被使用. 这种关系中类与类之间的联系是最轻的. 1 class Elephant: 2 3 def open(self,ele): # ele 接收的是一个BingXiang的对象 4 print("我是大象,我
Read More
posted @ 2018-11-08 19:53 恐水的鱼
Views(152)
Comments(0)
Diggs(0)
Edit
公告