Python 之 str 、 repr 、 反引号(``)的区别
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
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。