![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
Jackieyangyyx
这个作者很懒,什么都没留下…
展开
-
Python-learning python the hard way 学习笔记 ——类方法跨类调用以及类方法类中调用
笔者最近在学习Learning python the hard way ,学习了一段时间,感觉类的灵活运用是python学习的难点。编了一段小程序,增加对类使用的理解,也算是完成exercise45的课后作业。 classlist.py # -*-coding:utf-8 -*- ## Animal is a object class Animal(object): pass #原创 2018-01-31 17:02:17 · 348 阅读 · 0 评论 -
Python 跨类传参与跨模块传参
笔者初学python,编写了一个小游戏进行参数传递练习,文字描述部分稍显简陋,还请见谅,现将代码贴上。 Map.py class master_bedroom(): def __init__(): print 'The masterbedroom is large and beautiful. It is my mother\'s room,'原创 2018-01-27 20:59:50 · 4430 阅读 · 0 评论