本函数是返回对象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 深圳
原文:http://www.cnblogs.com/yxwkf/p/5173579.html