Python type(anyObj) 函数与 types 模块
来源:互联网 发布:淘宝上的水晶是真的吗 编辑:程序博客网 时间:2024/05/21 09:08
示例:
>>> import types
>>> type([])
<type 'list'>
>>> type([]) is types.ListType
True
>>> print type.__doc__
type(object) -> the object's type
type(name, bases, dict) -> a new type
>>> print types.__doc__
Define names for all type symbols known in the standard interpreter.
Types that are part of optional modules (e.g. array) are not listed.
>>> print ''.join("%s /n" % e for e in dir(types) if e[:2]!='__')
BooleanType
BufferType
BuiltinFunctionType
BuiltinMethodType
ClassType
CodeType
ComplexType
DictProxyType
DictType
DictionaryType
EllipsisType
FileType
FloatType
FrameType
FunctionType
GeneratorType
GetSetDescriptorType
InstanceType
IntType
LambdaType
ListType
LongType
MemberDescriptorType
MethodType
ModuleType
NoneType
NotImplementedType
ObjectType
SliceType
StringType
StringTypes
TracebackType
TupleType
TypeType
UnboundMethodType
UnicodeType
XRangeType
- Python type(anyObj) 函数与 types 模块
- type(anyObj) 函数与 types 模块
- TYPES与DATA TYPE与LIKE 区别
- Python 函数、文件与模块
- python:type语句与列表操作函数
- python types模块MethodType的一个例子
- types 模块
- TYPES与DATA TYPE与LIKE 区别(转)
- (zt)ABAP中TYPES与DATA TYPE与LIKE 区别
- ABAP中TYPES与DATA、TYPE与LIKE 区别
- abap type 与 like 的区别/ TYPES与DATA区别
- ABAP中TYPES与DATA、TYPE与LIKE 区别
- Python笔记3:模块与函数
- Python函数与模块(二)
- Python urllib模块与urlopen()函数解析
- python 第十三周 模块与函数
- Python基础教程之函数与模块
- Python程序设计基础 函数与模块习题
- 一款小巧精致的编辑和编译工具--TextPad
- iframe—网页中嵌入其他网页
- 手机wap网站首页宽度和长度统计分析
- He does everything without aim.
- eclipse中static web和dynamic web的区别
- Python type(anyObj) 函数与 types 模块
- type(anyObj) 函数与 types 模块
- 心灵的SPA
- oracle、sybase、informix数据库运行状态监控
- spark的sip plugin会定时的进行刷新状态,标注一下
- QT与MFC图形文件转换
- autocad2008ppt教案
- autocad2008ppt教案
- 匈牙利命名规范 WIN32开发常识