>dir(obj) : 返回数据对象方法列表
import string
import math
print dir(string)
print dir(math)
>help(key) : 查看对象使用方法和帮助信息
text = '';
print help(text.find)
>len(obj) : list,dic,string;
arr = [1,2,3,4];
text = 'libai'
obj = {'name':'dufu','timer': 'tang'};
print len(arr), len(text), len(obj)
>type(obj) : 检测类型
text = '';
print type(text) #<type 'int'>
>isinstance(obj,class) : 检测obj是不是class类实例
text = '';
print isinstance(text,str)
>del 删除对象
text ='';
num = 10
arr = [1,2];
persons = {'name':'libai','age':100};
del text,num,arr[0],person[name]