- 博客(2)
- 收藏
- 关注
原创 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
原创 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
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人