Python标准库:内置函数repr(object)
2016-01-31 17:31
477 查看
本函数是返回对象object的具体说明字符串。
样例:
结果输出例如以下:
range(0, 5)
Type help() for interactive help, or help(object) for help about object.
512
[2, 4, 5]
蔡军生 QQ:9073204 深圳
样例:
#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 深圳
相关文章推荐
- iOS开发之Objective-c的MD5/SHA1加密算法的实现
- CC150 chapter 8 OOD object-oriented design
- P26 (**) Generate the combinations of K distinct objects chosen from the N elements of a list.
- P26 (**) Generate the combinations of K distinct objects chosen from the N elements of a list.
- JSONException: Value of type java.lang.String cannot be converted to JSONObject
- [object-c]头文件相互引用
- iOS 代码触发button点击事件 objective-c怎么代码触发按钮点击事件
- Swift和Objective-C混编
- Neither BindingResult nor plain target object for bean
- Object-C--->Swift之(十)存储属性
- Objective-c打僵尸小游戏练习源码
- android 属性动画之 ObjectAnimator
- Swift 类型的检査与转换(is,as,AnyObject,Any)
- 如果有两个list<Object>只取出两个中不重复的(还可以优化,这里计数器没做好,暂时使用第三变量)
- 160129关于xcode 7中object c与swift相互引用的问题。
- UiObject2 API的简单译文
- json_decode() expects parameter 1 to be string, object given
- 查询表达式和LINQ to Objects
- Animation动画详解(七)——ObjectAnimator基本使用
- 15.Object Manager