# str输出用户通常习惯的格式,repr 输出系统存储格式 >>> print str("Hello World") Hello World >>> print repr("Hello World") 'Hello World' >>> print str(10000L) 10000 >>> print repr(10000L) 10000L >>>
注意到,str表示一种类型,即字符串;repr则是一个函数。
以上就是Python中关于str与repr的使用详解的详细内容,更多请关注Gxl网其它相关文章!
查看更多关于Python中关于str与repr的使用详解的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://haodehen.cn/did84550