Python的repr和str有什么不同?
来源:互联网 发布:网络直播土豪是假的 编辑:程序博客网 时间:2024/06/05 04:34
The str() function is meant to return representations of values which are fairly
human-readable, while repr() is meant to generate representations which can be read by
the interpreter (or will force a SyntaxError if there is not equivalent syntax). For
objects which don't have a particular representation for human consumption, str() will
return the same value as repr(). Many values, such as numbers or structures like lists
and dictionaries, have the same representation using either function. Strings and
floating point numbers, in particular, have two distinct representations.
- Python的repr和str有什么不同?
- Python的repr和str有什么不同?
- Python的str()和repr()
- python-str()和 repr()
- 区别python 的str和repr
- python之repr()和str()的区别
- Python 的repr() 和str() 函数
- python 的repr和str以及“”
- python之repr()和str()的区别
- 学习Python:repr和str的区分
- python中repr和 str的异同
- python str和repr 的区别
- python str和repr的区别
- python str和repr的区别
- python str和repr的区别
- Python str 和 repr 的区别
- python的str()和repr()函数比较
- python中的repr和str
- Easy RealMedia Producer使用向导
- quick sort
- C# Word 类库
- 关于 鱼宝宝的一些代码
- 心情周记
- Python的repr和str有什么不同?
- libcurl在vc6下的安装(这个狂赞的,按照以下步骤使用libcurl绝对没有问题)
- InvokeHelper
- Spring:SimpleMappingExceptionResolver异常处理
- 并发测试瓶颈
- 架构师之我见
- netbean 更新至6.8版本
- domain和link的区别详解
- 使用 python 写 COM