Python标准库:内置函数repr(object)
来源:互联网 发布:淘宝频道退货 编辑:程序博客网 时间:2024/04/29 15:35
本函数是返回对象object的详细说明字符串。
例子:
#repr()print(repr(range(5)))print(repr(help))print(repr(0x200))print(repr([2,4,5]))
结果输出如下:
range(0, 5)
Type help() for interactive help, or help(object) for help about object.
512
[2, 4, 5]
蔡军生 QQ:9073204 深圳
0 0
- Python标准库:内置函数repr(object)
- Python标准库:内置函数ascii(object)
- Python标准库:内置函数callable(object)
- Python标准库:内置函数dir([object])
- Python标准库:内置函数hash(object)
- Python标准库:内置函数help([object])
- Python标准库:内置函数id(object)
- Python标准库:内置函数object()
- Python标准库:内置函数type(object)
- Python标准库:内置函数vars([object])
- Python标准库:内置函数vars([object])
- Python标准库:内置函数vars([object])
- Python标准库:内置函数delattr(object, name)
- Python标准库:内置函数exec(object[, globals[, locals]])
- Python标准库:内置函数getattr(object, name[, default])
- Python标准库:内置函数hasattr(object, name)
- Python标准库:内置函数isinstance(object, classinfo)
- Python标准库:内置函数iter(object[, sentinel])
- OJ 21之Mincost(
- 十、oc中@property参数的学习
- Linux的文件权限
- windows常用运行命令
- 使用Unity3D的50个技巧:Unity3D最佳实践
- Python标准库:内置函数repr(object)
- 用HTML代码加载Unity内容 HTML code to load Unity content
- Windows下PHP版本选取
- Fastsocket学习笔记之小结篇
- 【Java集合源码剖析】TreeMap源码剖析
- OJ 22之T和Y的计划
- 1>LINK : fatal error LNK1104: 无法打开文件“libbox2d.lib”
- paypal,同一个交易号多次下单。开启
- (大总结)从寻找fragment静态导入activity总是失败的解决方法中了解android应用的系统启动过程