help()
获取指定对象的帮助信息
help(list)
dir()
获取指定对象的属性和方法
dir(list)
id()
获取指定对象的内存地址
a,b = 12,12
print id(a) == id(b)
type()
获取指定对象的属性
a = range(10)
type(a)
获取指定对象的帮助信息
help(list)
获取指定对象的属性和方法
dir(list)
获取指定对象的内存地址
a,b = 12,12
print id(a) == id(b)
获取指定对象的属性
a = range(10)
type(a)
本文标题:python基础: 使用频繁的内建帮助函数
本文链接:https://www.haomeiwen.com/subject/djmsmttx.html
网友评论