标签:引号 The print 方式 repr 字符串 str 的区别 python
str 、 repr 、 `` 、是将Python值转换为字符串的3种方式>> print str("Hello, World !")
hello, world !>>print repr("Hello, World !")
‘Hello, World !‘>> temp = 2
>> print "The number is " +temp
The number is 2
Python 之 str 、 repr 、 反引号(``)的区别
标签:引号 The print 方式 repr 字符串 str 的区别 python
原文地址:http://blog.51cto.com/3633188/2162622