python类
来源:互联网 发布:华师大网络教育好不好 编辑:程序博客网 时间:2024/05/16 08:26
转自我的博客园:http://www.cnblogs.com/vickey-wu/p/6591622.html
class MyClass(object): def __init__(self,name,age): self.name = name self.age = age def print_func(self): print '%s : %d years old ' % (self.name, self.age)f = MyClass('Vickey_Wu',23)f.print_func()
0 0
- python类
- Python 类
- PYTHON类
- Python类
- python类
- python 类
- Python类
- python 类
- python 类
- Python 类
- python 类
- python类
- Python-类
- Python类
- python 类
- python 类
- python 类
- python类
- Eclipse中Android项目SVN过滤的目录
- 数组
- 设计模式(七)桥接模式
- java文件路径问题
- YUV420转换成RGB24
- python类
- spark Exception in thread "main" java.lang.IllegalArgumentException: java.net.URISyntaxException: Re
- HDU 3466 Proud Merchants(变种01背包 + 无后效性)
- L1-016. 查验身份证
- 《剑指offer》005-从尾到头打印链表
- 分金子
- EL表达式
- xsocket死锁问题排查
- rails创建项目报"please update your path to include build tools...."