属性名的点号运算

# -*- coding: utf-8 -*-
#python 27
#xiaodeng
#属性名的点号运算
#在python中,可以使用点号运算语法object.attribute来获取任意的object的attribute属性

#eg:
    #obj.name       #属性
    #obj.func()     #方法

 

posted @ 2015-10-29 20:54  Xiao|Deng  阅读(420)  评论(0编辑  收藏  举报